Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

I really need help with this project. I need to create table,

I really need help with this project. I need to create table, add constraint and foreign key.

CMIS 320 Project 3In this assignment you will perform thephysicaldesign and implementation using SQL Data DefinitionLanguage (DDL) and proceed withpopulatingthe Mom and Pop Johnson Video Store database via DataManipulation Language (DML) SQL commands.For each of the steps below you may create a separate SQL script file and SPOOL file or you may wantto put the SPOOL output for several steps, from the same SQL script file, in the same file. Be sure yourSPOOL file(s) contains your SQL statements along with the Oracle responses and/or displayedresults. Do NOT submit your SQL script files. Only submit your output SPOOL files.Assignment Details:1)Create Oracle database tablesusing SQL Data Definition Language (DDL) for each table listedin the metadata of Assignment 1. You may need to use a combination of DROP TABLE,CREATE TABLE, and ALTER TABLE SQL statements.Make sure that entity and referentialintegrity are enforced by declaring aprimarykey foreachtable (these may be composite keys)and declaringallappropriateforeignkeys. Your CREATE TABLE and ALTER TABLEstatements (if desired) must show integrity constraints, as appropriate, for NOT NULL, UNIQUE,PRIMARY KEY, FOREIGN KEY, REFERENCES, and CHECK constraints. Be sure to save yourSQL script file used to create these tables with a .sql extension and your output SPOOL file with a.lst or .txt extension.You should rerun and test your SQL script file until it runs without any errors(this is why you’ll want to include DROP TABLE statements). Submit your SPOOL file showingthat all SQL in your SQL script file worked properly.2) Populate each of your tables with at least fivevalidrows of data each and show the SQLINSERT statements as you executed them. Populate other tables in your database, asnecessary, to satisfy referential integrity. Save your SQL script file and SPOOL file with thecorrect extensions.You should test and rerun your SQL script file until it runs without any error.Submit your SPOOL file showing that all SQL in your SQL script file worked properly.3) Develop an SQL script file to perform the following queries and updates. You should test yourSQL script file until it runs without any errors.oRetrieve all of your customers’ names, account numbers, and addresses (street and zipcode only), sorted by account number.oRetrieve all of the videos rented in the last 30 days and sort in chronological rental dateorder.oProduce a list of your distributors and all their information sorted in order by companyname.oUpdate a customer name to change their maiden name to a married name. You canchoose which row to update. Make sure that you use the primary key column in yourWHERE clause to affect only a specific row.You may want to include a ROLLBACKstatement to undo your data update.oDelete a customer from the database. You can choose which row to delete. Make surethat you use the primary key column in your WHERE clause to affect only a specific row.You may want to include a ROLLBACK statement to undo your data deletion.Submit your SPOOL file(s) showing that all SQL in your SQL script file worked properly. Show the actualSQL statements executed and the results the SQL produced below the code by making sure that youhave a SET ECHO STATEMENT in your SQL script file(s).Do NOT submit your .sql SQL script files.
Background image of page 1
Grading rubricAttributeMeetsDoes Not Meet ExpectationsCREATE TABLE andALTER TABLE SQLstatements30 pointsAll SQL statements aresyntactically correct andexecute without error; allintegrity constraints areproperly declared;0 pointsMany SQL statements fail due to syntaxerrors or SQL is missingINSERT SQL statements25 pointsAll SQL statements aresyntactically correct andexecute without error0 pointsMany SQL statements fail due to syntaxerrors and/or integrity constraint violationsor SQL is missingSELECT SQL statements20 pointsAll SQL statements aresyntactically correct andexecute without error0 pointsMany SQL statements fail due to syntaxerrors or SQL is missingUPDATE and DELETESQL statements10 pointsStatements execute withouterror based on primary keycolumn in WHERE clause0 pointsStatements fail due to syntax or other errorsSQL script file andSPOOL file15 pointsDemonstrates full ability tocreate and use an Oracle SQLscript file and output SPOOLfile0 pointsMany errors setting up and using an SQLscript file with SPOOL file or no attemptmade at all
Background image of page 2

Step-

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"