Question: Data Dictionary Documentation for a database to manage Advertisement Campaign data: Notes: AdCampaignRange: L indicates Local; N indicates National AdMedia: T indicates TV; R indicates
Data Dictionary Documentation for a database to manage Advertisement Campaign data:
Notes:
AdCampaignRange: indicates Local; indicates National
AdMedia: indicates TV; indicates Radio; indicates Online; indicates Print
Client is a companyorganization
Write SQL script for SQL Server to perform the following tasks:
Create the CampaignManager, AdCampaignRange, AdMedia, AdMode, AdCampaign, and AdCampaignMix tables.
Create table structures with appropriate data types, column attributes and constraints in the given data dictionary
documentation and establish relationships between tables. As discussed in class, include in your script appropriate
conditional drop table statements at the beginning of the script.
In the AdCampaignRange table, check to ensure RangeID has RangeType 'Local' and RangeID has
RangeType 'National'. Similarly, in the AdMedia table, check to ensure MediaID T has Media TV MedialD
has Media 'Radio', MediaID has Media 'Online' and MediaID has Media 'Print'.
Load one row of data in each of the tables created. You make up values for the data rows added to tables.
Create nonclustered index for each of the foreign key columns in the AdMode table.
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
