Murach’s SQL for SQL Server – Exercise 9 – Guaranteed 100% score
1. Design a database diagram for a product orders database with four tables. Indicate
the relationships between tables and identify the primary key and foreign keys in
each table. Explain your design decisions.
OrderID
CustomerID
OrderDate
ShipAddress
ShipDate
.
.
.
CustomerID
CustomerName
CustomerAddress
CustomerPhone
.
.
.
Customers Orders
OrderID
OrderSequence
ProductID
Quantity
UnitPrice
OrderLineItems
ProductID
ProductName
QtyPerUnit
UnitPrice
InStock
OnOrder
.
.
.
Products
2. Add the two tables below into the design for exercise 1. Create additional tables and
columns, if necessary. Explain your design decisions.
Shipper ID
ShipperName
ShipperAddress
ShipperPhone
.
.
.
Shippers
EmployeeID
FirstName
LastName
SSN
HireDate
.
.
.
Employees
3. Modify your design for exercise 2 to identify the columns that should be indexed,
and explain your decision.
4. Design a database diagram that allows individuals to be assigned membership in one
or more groups. Each group can have any number of individuals and each individual
can belong to any number of groups. Create additional tables and columns, if
necessary. Explain your design decisions.
GroupID
GroupName
Groups
IndividualID
FirstName
LastName
Address
Phone
.
.
.
Individuals
5. Modify your design for exercise 4 to keep track of the role served by each individual
in each group. Each individual can only serve one role in each group. Each group has
a unique set of roles that members can fulfill. Create additional tables and columns,
if necessary. Explain your design decisions.
* You can also use 2CO option if you want to purchase through Credit Cards/Paypal but make sure you put the correct billing information otherwise you wont be able to receive any download link.
* Your paypal has to be pre-loaded in order to complete the purchase or otherwise please discuss it with us at [email protected].
* As soon as the payment is received, download link of the solution will automatically be sent to the address used in selected payment method.
* Please check your junk mails as the download link email might go there and please be patient for the download link email. Sometimes, due to server congestion, you may receive download link with a delay.
* All the contents are compressed in one zip folder.
* In case if you get stuck at any point during the payment process, please immediately contact us at [email protected] and we will fix it with you.
* We try our best to reach back to you on immediate basis. However, please wait for atleast 8 hours for a response from our side. Afterall, we are humans.
* Comments/Feedbacks are truely welcomed and there might be some incentives for you for the next lab/quiz/assignment.
* In case of any query, please donot hesitate to contact us at [email protected].
* MOST IMPORTANT Please use the tutorials as a guide and they need NOT to be used for any submission. Just take help from the material.
******************************************** Good Luck ***************************************************