Fall2010 CS403 5
Fall2010 CS403 5
05
Total Marks: 15
Semester Fall2010
Database Management Systems-CS403 Due Date: 03/02/2011
Objective:
To learn and understand basic concepts of “creation and updating” of views.
Instructions:
Please read the following instructions carefully before solving & submitting assignment:
It should be clear that your assignment will not get any credit (zero marks) if:
GOOD LUCK
Q 1: Write SQL statements/queries to show the data for each of individual scenario given below
from the given tables on the next page. 15 marks (3+4+4+4)
1. Create a simple view showing the names of employees whose designation is ”Instructor”
2. Create a view to list down employees name and designation of Computer sciences Department
3. Update view to change designation from instructor to lecturer of employee “Ali hassan”
4. Create a view to show number of courses student “VU001” is studying.
If any of above query cannot execute then give its reason in one line
Student
Student ID Name
Vu001 Imran
Vu002 Raza
Vu003 Kashuf
Vu004 Fatima
Vu005 Maryum