Computer Science Homework Solutions
Problem
#175157

SQL Server - The sample database represents an educational institution with students and different schools.

Download, unzip, and attach the sample database ITD640_A from the link below. The sample database represents an educational institution with students and different schools. Each student goes to just one school. The students have various roles in different assignments and may work on more than one assignment at a time. zip file is attached.


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

Create a view named v_worker showing the student number, assignment number, and start date where the role is "worker."
Create a view called v_no_points with all the columns of the assignment table except the points column.
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.

Attached file(s):
Attachments
1_u3ips.zip  View File
Solution
What is this?
By OTA - Overall OTA Rating
Purchase Cost Now
$2.19 CAD (was ~$19.95)
Included in Download
  • Plain text response
  • Attached file(s):
    • ITD640_P3.SQL
$2.19 Instant Download
Add to Cart
Why you can trust BrainMass.com
  • Your Information is Secure
  • Best Online Academic Help Service
  • Students find real academic Success
Related Solutions
  • SQL 2005 Scripts - SQL 2005 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 ITD640_A database. Also include code th ...
  • Securtiy Engineering question - See attached file for full problem description. Only Question one please.
  • Mr Daniel Ray is reviewing his firm’s expense reimbursement policies with the new salesperson, Mr Samuel Andrew. - Mr Daniel Ray is reviewing his firm’s expense reimbursement policies with the new salesperson, Mr Samuel Andrew. “ Our reimbursement policies depend on the situation. You see first we determine if ...
  • C++ using multidimensional dimensional array - A certain professor has a file containing a table of student grades, where the first line of the file contains the number of students and the number of scores in the table; each row of the table repre ...
  • Automata - Let  be a 3cnf-formula. An  assignment to the variables of  is one where each clause contains two literals with unequal truth values. In other words an  -assignment s ...
Browse