Question: Using Dafesty Database provided ( as MS - Access file ) , convert it to your local SQL Server database and try the following questions.
Using Dafesty Database provided as MSAccess file convert it to your local SQL Server
database and try the following questions.
Create a Table called MemberCategories with the following fields:
MemberCategory character size
MemberCatDescription character size
None of the fields above can be null. Set the MemberCategory as the Primary key.
Add the following data into the MemberCategories Table:
MemberCategory MemberCatDescription
A Class A Members
B Class B Members
C Class C Members
Create a Table called GoodCustomers with the following fields:
CustomerName nvarchar
Address nvarchar
PhoneNumber nvarchar
MemberCategory nvarchar
Only Customer Name and Phone Number is mandatory.
Since there could be two customers having the same name, make CustomerName and
PhoneNumber as a composite primary key.
The MemberCategory should have a referential integrity to the MemberCategories
Table so that only those categories that have been listed in MemberCategories Table
could be entered.
Insert into GoodCustomer all records form Customer table with corresponding fields
except Address, which is to be left Null. Only Customers having Member Category A or
B are good customers hence the table should be inserted only those records from the
Customers table.
Insert into GoodCustomers the following new customer.
CustomerName Tracy Tan
PhoneNumber
MemberCategory B
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
