Create a view named v_worker showing the student number

Assignment Help Database Management System
Reference no: EM13948208

Using SQL 2005, 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.

The following are the tables and data in the ITD640_A database:

Using the sample database, write the scripts in a file called ITD640_P3.SQL 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 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.

248_table.png

Attachment:- 1_u3ips.zip

Reference no: EM13948208

Questions Cloud

Effect on the organizational structure : Assignment: Kudler Fine Foods is in the process of developing a new frequent shopper program. Details of this program are described in the Service Request SR-kf-013 and on the Sales & Marketing page of the Kudler Fine Foods intranet website.
Discus the drummer-buffer-rope concept using the young data : Assume that a 1.5-day buffer inventory is needed to deal with any production interruptions. Describe the drummer-buffer-rope concept using the Young data to illustrate the process.
Unappropriated retained earnings : Based on the above, use schedule M-2 of form 1120 to determine swan's unappropriated retained earnings balance as of December 31, 2012.
Receive one new payment-record one new expense : Add one new customer. Take a screenshot of the result. Add one new vendor. Take a screenshot of the result.
Create a view named v_worker showing the student number : Create a view called v_no_points with all the columns of the assignment table except the points column.
What is the significance of using the aggregated data : What were the major reasons the researchers chose this method to study this case rather than another study design? What is the significance of using the aggregated data from the three major organizations (i.e., American Heart Association, Centers ..
Determine the overhead rate for each activity : Determine the overhead rate for each activity.
Cell phone design process : You work for Motorola in the global cell phone group. You have been made operations/project manager for the design of a new cell phone model. Your supervisors have already scoped the project so you have a list showing the work breakdown structure ..
Compute the maximum and minimum loads : A 15.2 mm (0.60 in.) diameter cylindrical rod fabricated from a 2014-T6 aluminum alloy (Figure 8.34) is subjected to a repeated tension- compression load cycling along its axis. Compute the maximum and minimum loads that will be applied to yield a..

Reviews

Write a Review

Database Management System Questions & Answers

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd