You are on page 1of 1

STAMFORD UNIVERSITY BANGLADESH

Department of Computer Science & Engineering


CSI 224: Database Management System Sessional
Batch: CSE-S-63-A Time & Date: 01:00 PM & 17/10/2018

Duration: 40 Minutes Full Marks: 20

STAFF
StaffNo FirstName LastName Position Gender Salary BranchNo
7369 Rahim Khan Manager M 8000 40
7370 Khan Tahmeed Assistant M 16000 30
7371 Nahira Rahman Supervisor F 28500 30
7372 Kazi Hasan Assistant M 27500 20
7373 Hasan Shahriar Manager M 22000 30
7374 Taslima Akter Assistant F 12500 40
7375 Monoara Begum Assistant F 14000 10

DEPARTMENT
Branch_ID Name LocationID
201 ACCOUNTING 122
202 RESEARCH 124
203 SALES 123
204 OPERATIONS 167
BRANCH
Branch_ID BranchNo Street City Postcode
201 10 Mohammadpur Dhaka 1204
202 20 AtiBazar Chittagong 1302
203 30 Dhanmondi Dhaka 1402
204 40 Hair Street Sylhet 1203

1. Create table STAFF, DEPARTMENT and BRANCH. ( apply appropriate constraint)


2. List all staff with a salary between 20,000 and 30,000.
3. Update the last name of staffs to lower case.
4. List out all staff whose last name start with "K" or “T”.
5. Find the female staff works on ' Mohammadpur’ street.
6. Find the staffNo of SALES department.
7. Find the total salary of staffs.
8. Find the total salary of each branch.
9. Find the avg salary of each branch having total salary greater than 25000.
10. Find the location ID of ‘Kazi Hasan’.

You might also like