Professional Documents
Culture Documents
Usama Hassan bcs173066 Mid Data Base
Usama Hassan bcs173066 Mid Data Base
Note:
Read the problem carefully before writing the solution.
Paper consists of two questions.
Use the schema given at first page to answer first question.
No Extra time will be provided.
You can make my task easy by submitting after the timeline or by copying others.
1
Question 1: Use ‘classic’ database schema to write the SQL queries for
following problems. (30)
2
6. Show customer number and Total Amount paid by each customer.
3
10. Concat office code and phone of all offices.
Question 2: Dry Run the given query step by step and show resultSet at each
intermediate step. (10)
1. Create a database named as “Bookshop_db”.
4
3. Change datatype of Author_name to varchar(150) with constraints not null and
default ‘No author’.