Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write SQL to : 1. insert 3 records in each Strong (Parent) Entities. ( Market, Customer, ProductFamily, Manger) 2. Insert 5 records in Product using

image text in transcribedWrite SQL to :

1. insert 3 records in each Strong (Parent) Entities. ( Market, Customer, ProductFamily, Manger)

2. Insert 5 records in Product using different ProductFamily

3. Insert 3 records in Agent using different Manager

4. Insert 10 records in SalesOrder using different Customer, Product, Agent

5. Insert 5 records in CustomerMarket making a case where some Customer belongs to 2 Markets

Product Family Key Field Type Key Field Type Key Field Type ManagerName varchar(30) CommisionsPct float ManagerPhone char(12) AgentName varchar(30) AgentPhone char(12) PK AgentID FK ManagerlD int int ProductDescr varchar(100) Unit Price PK ProductID int ManagerAgent FK FK Key DeAssign date ManagerlD int AgentID int Sales Order OrderDate date Market Total Amt int PK MarketlD Type MarketDeahar50) FK CustID FK ProductID FK AgentlD PK OrderNo Customer Customer Market int PK Customer Name varchar(50) FK CustID int int FK MarketlD int Customer Phone char(12) achar(20) Customer Zip Customer ID

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advanced Database Systems

Authors: Carlo Zaniolo, Stefano Ceri, Christos Faloutsos, Richard T. Snodgrass, V.S. Subrahmanian, Roberto Zicari

1st Edition

155860443X, 978-1558604438

More Books

Students also viewed these Databases questions

Question

Explain all drawbacks of application procedure.

Answered: 1 week ago