You are on page 1of 2

FOUNDATION UNIVERSITY ISLAMABAD

Sialkot Campus
Department of Computer Science and Software Engineering

Midterm Examinations (Fall-2019)

Course Title: Database Systems (LAB) Course Code: CSC 224 Credit Hours: 4(3,1)

Instructor/s: Mr. Usman Ahmed Programme Name: BS-CS/SE/IET


Semester: 4th Batch: Fall 2019 Section: Date: 06-05-2021
Time allowed: 1.5, Hours Maximum Marks: 25
Student’s Name: Reg. No.
Important Instructions / Guidelines:
• All Questions are mandatory.
• Use MS SQL Server to generate results in answering questions.
• Submit screenshots with each question and submit your own work.
• Read the questions carefully before attempting.

Q-1: Analyse this SQL command to make corrections if required:


UPDATE ON student CHANGE student_fathers_name TO student_guardian (5)

Q-2: Replicate this same following table with data through SQL commands: (5+5)
Paint_ID Paint_Name Paint_Code Paint_Type Paint_Size Paint_Price Paint_Stock
SKT- Red Rose 7510 Weather 2.5 2500 10
0234 Shield
SKT- Lime Fizz 9691 Distemper 5 3600 27
0378
SKT- Moon 7109 Weather 1 1300 8
0446 Shade Shield

Q-3: To answer a query of a customer search in above table for all ‘Weather Shield’ paints that
are above 1 litre in size, are not more costly than 1500 and have stock not equal to 0. (5)
Q-4: Update the price of paint with code 7510 to Rs. 2550 (5)

You might also like