Find Jobs
Hire Freelancers

Databases Assignment

$10-30 CAD

In Bearbeitung
Veröffentlicht vor etwa 8 Jahren

$10-30 CAD

Bezahlt bei Lieferung
workshop instructions Write the SQL command to create the customer and the invoice tables using the InnoDB database engine. Define the PK for each table and a FK constraint on CUS_CODE of the invoice table. Run the following query: select * from INFORMATION_SCHEMA.KEY_COLUMN_USAGE and show the output. Write the SQL command to insert a record in the invoice table with a CUS_CODE that does not exist in the customer table. Show the output message returned by mysql. Drop the FK constraint on CUS_CODE of the invoice table and redefine it with “on HYPERLINK "[login to view URL]"update HYPERLINK "[login to view URL]" HYPERLINK "[login to view URL]"cascade” and “on HYPERLINK "[login to view URL]"delete HYPERLINK "[login to view URL]" HYPERLINK "[login to view URL]"cascade” clauses. Write sql commands to insert one record in the customer table and one record in the invoice table. Check how Foreign keys help guarantee referential integrity within the database. Check the data in both tables and show the output. Write a sql command to change the CUS_CODE in the customer table to any new value. Show what message do you get from the system. Check the data in both tables and show the output. Write a sql command to delete all rows from the customer table. Show what message do you get from the system. Check the data in both tables and show the output. Drop the FK constraint on CUS_CODE of the invoice table and redefine it with “on HYPERLINK "[login to view URL]"update HYPERLINK "[login to view URL]" HYPERLINK "[login to view URL]"restrict” and “on HYPERLINK "[login to view URL]"delete HYPERLINK "[login to view URL]" HYPERLINK "[login to view URL]"restrict” clauses. Check how Foreign keys help guarantee referential integrity within the database. Write a sql command to update the CUS_CODE of any record in the customer table. What message do you get? Write a sql command to delete the records of the customer table. What message do you get? Load the sample data of your assignment for the customer and the invoice tables. Write the SQL query to get the product of the two tables. To get the product of two tables T1 and T2, run the following query: select * from T1, T2. Show the output. Write the SQL query to get the list of all customers and their corresponding invoices when available. Use left Join. As you do not have the super privilege on your mysql account under zenit to create triggers, Use [login to view URL] or your own installation of mysql. Using [login to view URL], provide a username and password and database name as well. You will need to activate your account by clicking on a link sent to your email while the creation of the account. Once you login, create the customer and the invoice table and create the following triggers. Create a trigger before insert on the customer table that checks if the balance is different than zero and if so it sets its value to zero. Write the sql command to insert a customer record with a balance different than zero, then check the data in the table. Create a trigger before insert on the invoice table that sets the value of the invoice total as the sum of invoice subtotal and invoice tax. Write the sql command to insert an invoice record without providing a value for the invoice total, then check the data in the table. more info in attached document.
Projekt-ID: 10008421

Über das Projekt

5 Vorschläge
Remote Projekt
Aktiv vor 8 Jahren

Möchten Sie etwas Geld verdienen?

Vorteile einer Ausschreibung auf Freelancer

Legen Sie Ihr Budget und Ihren Zeitrahmen fest
Für Ihre Arbeit bezahlt werden
Skizzieren Sie Ihren Vorschlag
Sie können sich kostenlos anmelden und auf Aufträge bieten
5 Freelancer bieten im Durchschnitt $72 CAD für diesen Auftrag
Avatar des Nutzers
A proposal has not yet been provided
$111 CAD in 1 Tag
4,8 (16 Bewertungen)
4,4
4,4
Avatar des Nutzers
Hello, I have read your project description about Database Design and I would appreciate if you can open discussion with me and I see how we can work together. Am a graduate in Computer Science and have already designed a School Management System using MySQL and Java. In this project I applied database skills which your project needs. If you award me the project I will work closely with you throughout the whole project life span, communicating continuously at every stage with updates requesting any revisions or additions that need to be made. I will also work with you until the project comes to fruition, in perfect condition, and ready for submission. I realize that each academic project is unique and requires thoughtful research. With care and planning we can work together to create something which can fulfill your expectations. Hope to work with you soon! Looking forward to hear from you Thanks Nyaronyari
$30 CAD in 1 Tag
5,0 (3 Bewertungen)
2,1
2,1
Avatar des Nutzers
I am expert in databases and can do the task as per your requirements. .
$25 CAD in 1 Tag
3,0 (3 Bewertungen)
1,9
1,9
Avatar des Nutzers
A proposal has not yet been provided
$35 CAD in 1 Tag
0,0 (0 Bewertungen)
0,0
0,0

Über den Kunden

Flagge von CANADA
Hamilton, Canada
5,0
27
Zahlungsmethode verifiziert
Mitglied seit Feb. 22, 2016

Kundenüberprüfung

Danke! Wir haben Ihnen per E-Mail einen Link geschickt, über den Sie Ihr kostenloses Guthaben anfordern können.
Beim Senden Ihrer E-Mail ist ein Fehler aufgetreten. Bitte versuchen Sie es erneut.
Registrierte Benutzer Veröffentlichte Jobs
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Vorschau wird geladen
Erlaubnis zur Geolokalisierung erteilt.
Ihre Anmeldesitzung ist abgelaufen und Sie wurden abgemeldet. Bitte melden Sie sich erneut an.