0% found this document useful (0 votes)
48 views6 pages

Assignment: Department of Information Technology GC Women University Faisalabad

This document contains details of an assignment submitted by student Sana Arif for the course Database Administration. The assignment contains 10 questions asking to write SQL queries to retrieve or manipulate data from the Workers table, including queries to select, filter, aggregate, and order data. The student is asked to submit the assignment to their instructor Mam Aqsa Khalid.

Uploaded by

Usman
Copyright
© Public Domain
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views6 pages

Assignment: Department of Information Technology GC Women University Faisalabad

This document contains details of an assignment submitted by student Sana Arif for the course Database Administration. The assignment contains 10 questions asking to write SQL queries to retrieve or manipulate data from the Workers table, including queries to select, filter, aggregate, and order data. The student is asked to submit the assignment to their instructor Mam Aqsa Khalid.

Uploaded by

Usman
Copyright
© Public Domain
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Assignment

Roll no: 17-021


Registration no: 2017-GCWUF-2275
Student Name: Sana Arif

Submitted to: Mam Aqsa Khalid


Course title: Database Administration
Credit hours: 3(2-1)

Department of Information Technology


GC WOMEN UNIVERSITY FAISALABAD
Workers table:

Q-1. Write an SQL query to fetch “FIRST_NAME” from Worker table


using the alias name as <WORKER_NAME>.
Q-2. Write an SQL query to fetch “FIRST_NAME” from Worker table in
upper case.

Q-3. Write an SQL query to fetch unique values of DEPARTMENT from


Worker table.
Q-4. Write an SQL query to find the position of the alphabet (‘a’) in the
first name column ‘Amitabh’ from Worker table.

Q-5. Write an SQL query to print the FIRST_NAME from Worker table
after replacing ‘a’ with ‘A’.

Q-6. Write an SQL query to print all Worker details from the Worker table order by
FIRST_NAME Ascending.
Q-7. Write an SQL query to print all Worker details from the Worker
table order by FIRST_NAME Ascending and DEPARTMENT Descending.

Q-8. Write an SQL query to print details of the Workers whose SALARY
lies between 100000 and 500000.
Q-9. Write an SQL query to fetch worker names with salaries >= 50000
and <= 100000.

Q-10. Write an SQL query to fetch the no. of workers for each department
in the descending order.

You might also like