Answered step by step
Verified Expert Solution
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
Write 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 IDStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started