develop various database capabilities
[ad_1]
1
Project 1
You are part of a development team with Ace Software, Inc. who has recently been contracted to
develop various database capabilities for Online Vehicle Sales, Inc. (OVS). OVS is a startup “dotcom”
with about 10 dealership locations in Maryland, Virginia and Washington, D.C. They sell new and used
cars (compacts, midsizes and full-sizes), sport utility vehicles (SUVs) and light trucks. Currently their
business is just based on customers visiting one of the 10 dealership locations in person, but soon they
plan to move the bulk of their business the Internet. Initially they have expressed a desire to have a
custom OLTP database, and a custom DSS database, designed and built by your company. Each
dealership has a staff of salespersons who assist customers in the purchase of different types of vehicles
for which various financing plans are available. New and used vehicles are provided to each dealership
based on sales and inventory needs.
An ERD for a 3NF normalized online transaction processing (OLTP) relational database for this
application is provided.
Using an SQL script file, create Oracle tables for the CUSTOMER, VEHICLE (i.e. SALE_VEHICLE), and SALE
entities shown in the ERD. Use the plural form of the entity name for your table names (i.e.
CUSTOMERS, VEHICLES, and SALES). Note that you are using the SALE_VEHICLE entity to create a
2
VEHICLES table. Ignore the TRADE_IN_VEHICLE entity. You will create tables for some of the other
entities in upcoming assignments.
You must include all necessary integrity constraints including primary keys, foreign keys, CHECK
constraints, UNIQUE constraints, and NOT NULL constraints. It is a good practice, but not required, to
explicitly name your constraints.
You can create your database on Nova or any other Oracle system you wish, but you must use the
Oracle RDBMS.
Populate the VEHICLES and CUSTOMERS tables with at least 10 (ten) rows each.
Populate your SALES table with at least 10 (ten) rows.
Run SELECT * statements on all three tables after they are populated to show their contents. To prevent
excessive wrapping you might consider using the SQL*Plus LINESIZE and COLUMN commands.
Submit the following in either an SQL*Plus SPOOL file or screen snapshots of the output if using SQL
Developer or another GUI.:
1) All of your DROP TABLE, CREATE TABLE, and ALTER TABLE SQL statements as they executed and the
Oracle responses.
2) All of your INSERT SQL statements as they executed and the Oracle responses.
3) The contents of all tables from SELECT * FROM tablename; statements.
Do NOT submit your SQL script files. Only submit the output specified in Steps #1 though #3 above in a
single SPOOL file or Word file.
You must include a SET ECHO ON SQL*Plus statement in your SQL script file to ensure that all the SQL
that is executed is displayed in your SPOOL file.
Do NOT submit additional files as this only complicates the grading, and may result in lost points.
Your submission MUST be in a single text, Word, or PDF file with all steps numbered and in order.
3
Project 1 grading rubric
Attribute | Meets | Does Not Meet |
CREATE TABLE SQL statements |
50 points Uses an SQL script file. Creates Oracle tables for the CUSTOMER, VEHICLE (i.e. SALE_VEHICLE), and SALE entities shown in the ERD. Includes all necessary integrity constraints including primary keys, foreign keys, CHECK constraints, UNIQUE constraints, and NOT NULL constraints. Uses an Oracle RDBMS. All SQL statements are syntactically correct and execute without error. |
0 points Does not uses an SQL script file. Does not create Oracle tables for the CUSTOMER, VEHICLE (i.e. SALE_VEHICLE), and SALE entities shown in the ERD. Does not includes all necessary integrity constraints including primary keys, foreign keys, CHECK constraints, UNIQUE constraints, and NOT NULL constraints. Does not use an Oracle RDBMS. All SQL statements are not syntactically correct or execute without error. |
INSERT SQL statements | 30 points Populates the VEHICLES and CUSTOMERS tables with at least 10 (ten) rows each. Populates your SALES table with at least 10 (ten) rows. All SQL statements are syntactically correct and execute without error. |
0 points Does not populate the VEHICLES and CUSTOMERS tables with at least 10 (ten) rows each. Does not populate your SALES table with at least 10 (ten) rows. All SQL statements are not syntactically correct or execute without error. |
SELECT SQL statements | 5 points Runs SELECT * statements on all three tables after they are populated to show their contents. Prevents excessive wrapping using the SQL*Plus LINESIZE and COLUMN commands. All SQL statements are syntactically correct and execute without error. |
0 points Does not run SELECT * statements on all three tables after they are populated to show their contents. Does not prevent excessive wrapping using the SQL*Plus LINESIZE and COLUMN commands. All SQL statements are not syntactically correct or execute without error. |
SQL script file and SPOOL file |
15 points Submits either an SQL*Plus SPOOL file or screen snapshots of the output if using SQL Developer or another GUI. |
0 points Does not submit either an SQL*Plus SPOOL file or screen snapshots of the output if using SQL Developer or another GUI. |
4
Demonstrates DROP TABLE, CREATE TABLE, and ALTER TABLE SQL statements as they executed and the Oracle responses. Demonstrates INSERT SQL statements as they executed and the Oracle responses. Displays the contents of all tables from SELECT * FROM tablename; statements. Does NOT submit a SQL script file. Includes a SET ECHO ON SQL*Plus statement in your SQL script file to ensure that all the SQL that is executed is displayed in your SPOOL file. |
Does not demonstrate DROP TABLE, CREATE TABLE, and ALTER TABLE SQL statements as they executed and the Oracle responses. Does not demonstrate INSERT SQL statements as they executed and the Oracle responses. Does not display the contents of all tables from SELECT * FROM tablename; statements. Submits a SQL script file. Does not include a SET ECHO ON SQL*Plus statement in your SQL script file to ensure that all the SQL that is executed is displayed in your SPOOL file. |
[Button id=”1″]
[ad_2]
Source link