0% found this document useful (0 votes)
58 views1 page

Assignment: Database Systems and Applications

The document contains a table with 8 rows of worker data including their worker ID, first name, last name, salary, joining date, and department. It also contains questions to write SQL queries to retrieve specific fields and manipulate data from the worker table.

Uploaded by

faizu
Copyright
© © All Rights Reserved
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)
58 views1 page

Assignment: Database Systems and Applications

The document contains a table with 8 rows of worker data including their worker ID, first name, last name, salary, joining date, and department. It also contains questions to write SQL queries to retrieve specific fields and manipulate data from the worker table.

Uploaded by

faizu
Copyright
© © All Rights Reserved
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/ 1

WORKER_ID FIRST_NAME LAST_NAME SALARY JOINING_DATE DEPARTMENT

001 Monika Arora 100000 2014-02-20 09:00:00 HR

002 Niharika Verma 80000 2014-06-11 09:00:00 Admin

003 Vishal Singhal 300000 2014-02-20 09:00:00 HR

004 Amitabh Singh 500000 2014-02-20 09:00:00 Admin

005 Vivek Bhati 500000 2014-06-11 09:00:00 Admin

006 Vipul Diwan 200000 2014-06-11 09:00:00 Account

007 Satish Kumar 75000 2014-01-20 09:00:00 Account

008 Geetika Chauhan 90000 2014-04-11 09:00:00 Admin

Assignment
Database Systems and applications

Worker table

Q1-a Write an SQL query to fetch “FIRST_NAME” from Worker table in


upper case.

Q1-b Write an SQL query to fetch unique values of DEPARTMENT from


Worker table.

Q1-c Write an SQL query to print the first three characters of 
FIRST_NAME from Worker table.

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

Q1-e Write an SQL query to print the FIRST_NAME from Worker table
after removing white spaces from the right side.

You might also like