Create a scripts in a file-sample database


Discussion:

Using the sample database, write the scripts in a file to create the following views. Include a USES clause at the top of the script file to use the following database. Also include code that checks if the view already exists. If it does, it should be dropped and recreated.

1. Create a view named v_worker showing the student number, assignment number, and start date where the role is "worker."

2. Create a view called v_no_points with all the columns of the assignment table except the points column.

3. Create a view called v_count that shows the number of students working on each assignment. The view should have columns for the assignment number and the count.

Attachment:- Database.zip

Solution Preview :

Prepared by a verified Expert
DOT NET Programming: Create a scripts in a file-sample database
Reference No:- TGS01932320

Now Priced at $20 (50% Discount)

Recommended (98%)

Rated (4.3/5)