Cash-back offer from May 2nd to 7th, 2024: Get a flat 10% cash-back credited to your account for a minimum transaction of $50.Post Your Questions Today!

Question DetailsNormal
$ 20.00

Assignments 2 | Complete Solution

Question posted by
Online Tutor Profile
request

Assignments 2

1. Items 1A – 1C refer to a database that keeps track of automobile and option sales in a car dealership. CAROPTION refers to some optional equipment installed on an automobile that is sold. You will create the database in Oracle.
The ERD, the conceptual model of the database, contained the following:
-    three entities: SALESPERSON, CAR and CAROPTION
-    The ternary relationship, among the entities SALESPERSON, CAR and CAROPTION
The relations (tables) of the database are listed below. The primary key of each relation is shown in bold, underline and italics lettering.
CAR(SerialNo, Model, Manufacturer, List_Price)
CAROPTION(OptionNo, OptionName, List_Price)
CARSALE(SalespersonId, SerialNo, Date, Car_Sale_price)
OPTIONSALE(SalespersonId, SerialNo, OptionNo, Option_Sale_price)
SALESPERSON(SalespersonId, Name, Phone)

 

1A. (5 Points) Give the DDL commands to create the tables, primary keys and referential integrity constraints. The DDL must have at least an example of each of the following. Use comments to indicate the examples.
1.    Not Null check constraint
2.    Column check constraint
3.    Table check constraint
4.    Column default value
5.    Table-level constraint
6.    Check constraint
DDL:

 

1.B (5 Points) Provide the DML and logs that show that you populated the database with the data shown below.
Car        
SerialNo    Model    Manufacturer    List_Price
ABC    LX    Kia    19,000
BCD    EX    Kia    19,500
EFG    SX    Kia    26,000

SALESPERSON        
SalespersonId    Name    Phone
101    John    555-555-5555
102    Paul    555-556-5678
103    Mary    555-678-7890

OPTION        
OptionNo    OptionName    List_Price
1    2.4-liter    2,000
2    2.0-liter turbo    3,000
3    Sun roof    1,000

CARSALE        
SalespersonId    SerialNo    Date    Car_Sale_price
101    ABC    10/16/2011    18,500
101    BCD    10/16/2011    21,000
102    EFG    10/16/2011    25,500

    OPTIONSALE        
SalespersonId    SerialNo    OptionNo    Option_Sale_price
101    ABC    1    1,500
101    ABC    3    1,000
102    EFG    2    2,500
102    EFG    3    750

DML:


1C
1.C. 1. ( 5 points) Do a search to find out the name of a salesperson who sold a car on 10/16/2011 for 25,500.

1C.2. ( 5 points)  Find out what  kind of model and manufacturer the car that was sold was.

Available Answer
$ 20.00

[Solved] Assignments 2 | Complete Solution

  • This solution is not purchased yet.
  • Submitted On 05 Jul, 2015 06:38:04
Answer posted by
Online Tutor Profile
solution
INSERT INTO Car VALUES('ABC', 'LX', 'Kia', 19000); ...
Buy now to view the complete solution
Other Similar Questions
User Profile
EmmyR...

Week 6 Assignment - Infrastructure Design

Identify the major hardware and software components of your hypothetical e-commerce company's information systems infrastructure. Design your e-commerce company's hardware (database and proxy servers, network equipment) and ...
User Profile
QUIZL...

NURS 6640N Week 4 Assignment 1

For Solution Please download the enclosed Attachment. ...
User Profile
vpqnr...

Liberty University ENGL 101 Mindtap 6 assignment complete solutions correct answers updated

Liberty University ENGL 101 Mindtap 6 assignment complete solutions correct answers updated 1. Organizing a Paragraph Using Time, Space, or Importance To cohere means “to hold together.” A paragraph coheres when the...
User Profile
vpqnr...

Liberty University ENGL 101 Mindtap 2 assignment complete solutions correct answers updated

Liberty University ENGL 101 Mindtap 2 assignment complete solutions correct answers updated 1 . Understanding the Types of Supporting Ideas For your audience to understand your main idea fully, you need to provide support...
User Profile
Kevin...

B6028 Module 4 Assignment 2 Internal Environmental Scan Organizational Assessment

Module 5 - M5 Assignment 2 Internal Environmental Scan/Organizational Assessment     Internal Environmental Scan/Organizational Assessment This section provides the opportunity to develop your course project. Conducting...

The benefits of buying study notes from CourseMerits

homeworkhelptime
Assurance Of Timely Delivery
We value your patience, and to ensure you always receive your homework help within the promised time, our dedicated team of tutors begins their work as soon as the request arrives.
tutoring
Best Price In The Market
All the services that are available on our page cost only a nominal amount of money. In fact, the prices are lower than the industry standards. You can always expect value for money from us.
tutorsupport
Uninterrupted 24/7 Support
Our customer support wing remains online 24x7 to provide you seamless assistance. Also, when you post a query or a request here, you can expect an immediate response from our side.
closebutton

$ 629.35