Computers and Technology

Write a script that implements the following design in a database named mywebdb:

users table colums are : userid(the is the primary key), emailaddress, firstname, lastname

downloards table colums are: downloardid(the is the primary key), userid, downloarddate, filename, productid

product table colums are: productid(the is the primary key), productname

create a new database called mywebdb using the default settings.(if the database already exists, delete it and then recreate it.)

write code to create the users, download and products table.

write code to define the userid column in the users table, the productsid column in the products table, and the downloadid column in the downloads table as primary keys and identity columns.

in the downloads table, write code to define the userid and productid columns are the foreign keys.

write code to setup table relationships based on above diagram

write code to define the columns so none of them allow null values

write code to create a unique index on the emailaddress and productname columns and a regular index on the downloaddate column.

include any indexes that you think are necessary.

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 14:30, megkate
Complete the sentence based on your knowledge of the professional difficulties faced by music artists. digital technology allows audiences to see free live telecasts of music or dance performances through
Answers: 1
image
Computers and Technology, 22.06.2019 15:20, brookemcelhaney
The north and south regions had very diferent economies in the 1800s.
Answers: 1
image
Computers and Technology, 23.06.2019 12:00, xojade
Which of these is an example of an integrated presentation? a. a table created in powerpoint b. an image pasted into powerpoint c. a caption created in powerpoint d. an excel chart pasted into powerpoint
Answers: 1
image
Computers and Technology, 23.06.2019 23:30, huangjianhe135
The keyboard usually has six rows of keys. which of the following is not one of the key group categories? letter keys number keys control keys graphic keys
Answers: 1
Do you know the correct answer?
Write a script that implements the following design in a database named mywebdb:

users...

Questions in other subjects:

Konu
Mathematics, 24.03.2021 14:20
Konu
Mathematics, 24.03.2021 14:20
Konu
Mathematics, 24.03.2021 14:20