• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 11 pages
Exam (elaborations)

SQL Exam

Document preview thumbnail
Preview 2 out of 11 pages

Exam to test your level in SQL

Content preview

EXAMEN TO PRACTICE

SQL SKILL

Table – Worker

WORKER_ID FIRST_NAME LAST_NAME SALARY JOINING_DATE DEPARTMENT


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

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

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

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

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

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

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

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




Table – Bonus

WORKER_REF_ID BONUS_DATE BONUS_AMOUNT


1 2016-02-20 00:00:00 5000

2 2016-06-11 00:00:00 3000

3 2016-02-20 00:00:00 4000

, 1 2016-02-20 00:00:00 4500

2 2016-06-11 00:00:00 3500




Table – Title

WORKER_REF_ID WORKER_TITLE AFFECTED_FROM


1 Manager 2016-02-20 00:00:00

2 Executive 2016-06-11 00:00:00

8 Executive 2016-06-11 00:00:00

5 Manager 2016-06-11 00:00:00

4 Asst. Manager 2016-06-11 00:00:00

7 Executive 2016-06-11 00:00:00

6 Lead 2016-06-11 00:00:00

3 Lead 2016-06-11 00:00:00




Questions:

Q1- Write an SQL query to fetch “FIRST_NAME” from Worker table
using the alias name as <WORKER_NAME>.

Q2- Write an SQL query to fetch “FIRST_NAME” from Worker table in
upper case.

Q3- Write an SQL query to fetch unique values of DEPARTMENT from
Worker table.

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

Document information

Uploaded on
January 4, 2022
Number of pages
11
Written in
2020/2021
Type
Exam (elaborations)
Contains
Questions & answers
$5.06

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Sold
0
Followers
0
Items
4
Last sold
-



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions