Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. Create SQL code to create all the tables including primary and foreign keys 2. Create 3 queries and one must include a join.
1. Create SQL code to create all the tables including primary and foreign keys 2. Create 3 queries and one must include a join. Some ideas include: A query to find all items that cost more than $10. A query to find all items with a name that begins with 'S' A query to find the average number of items on hand A query to find all items with low inventory A query to find all items in the Central region All suppliers from the North region All items supplied by Wallflower These are just some examples - feel free to create any queries you would like. The tables are below: Region RegionID 101 102 103 104 105 Supplier SuppID 2 RegionName North South East West Central SuppName Cost Company Wallflower SuppPhone 111-222-7895 222-333-1236 regionID 101 105 A query to find all items with low inventory A query to find all items in the Central region All suppliers from the North region All items supplied by Wallflower These are just some examples - feel free to create any queries you would like. The tables are below: Region RegionID 101 102 103 104 105 Supplier SuppID 1 2 3 4 Item ItemID 1001 1002 1003 1004 1005 RegionName North South East West Central SuppName Cost Company Wallflower Sam Central Glamazon Item Description Lamp Shoes Shirt Table Socks SuppPhone 111-222-7895 222-333-1236 333-444-4569 444-555-1597 ItemPrice 15.00 30.00 20.00 50.00 5.00 regionID 101 105 105 103 ItemOnHand 10 5 12 13 20 SuppID 1 3 2 4 2
Step by Step Solution
There are 3 Steps involved in it
Step: 1
The images youve provided show the structure of three database tables Region Supplier and a table that isnt fully visible but seems to contain invento...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