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

  Write sql queries for the books database

Write SQL queries for the books database that perform each of the following tasks: Select all authors from the Authors table with the columns in the order lastName, firstName and authorID.

  How referential integrity constraint prevent data

In physical database design, referential integrity constraints can be defined. What actions does referential integrity constraint prevent from happening when data is inserted in table which contains this constraint?

  Prepare the relational schema for database

Prepare the relational schema for database

  How would you change the current design

How would you change the current design and how does your new design address the problems you have identified with the current design.

  Use an implicit cursor and a sql function to calculate

Use an implicit cursor and a SQL function to calculate the number of cars belonging to the particular car model and assign that value to the OUT parameter. Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4

  Advantages of a database management approach

Discuss the advantages of a database management approach to the file processing approach? Give examples to illustrate your answer. Outline the benefits and limitations of the relational database model for business applications today

  Selecting opies of book titled the big magic

How many copies of the book titled „The big magic? are owned by the local library whose name is "Newtown" library?

  Implement a cluster using physical hardware

Implement a cluster using physical hardware, the process is very straightforward.But what if you want to implement a cluster using virtualization?

  Torri manufacturing corporation -determine unit product cost

Determine the unit product cost of each of the company's two products under the traditional costing system

  Database design in mysql with column names of client

The instrutions are given below: MySQL Server and MySQL Workbench. In this schema, create all the necessary tables, columns, and relationships to complete your database.

  Find an example of an actual data warehouse

Find an example of an actual data warehouse. For this example, describe the content, purpose, user access methods, and sources of data

  Explore ways of converting depositors to borrowers

Universal Bank is a young bank growing rapidly in overall customer acquisition. The majority of these customers are depositors with varying sizes of relationship with the bank. The customer base of borrowers is quite small, and the bank is interes..

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