0% found this document useful (0 votes)
9 views

Insaneeee

The document contains questions about SQL queries on the EMPLOYEE table including inserting rows, displaying data, sorting, filtering, aggregating, updating data and adding columns. Queries involve selection of columns, filtering rows, sorting, aggregation, updating values and structure of the table.

Uploaded by

krishnan unni
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)
9 views

Insaneeee

The document contains questions about SQL queries on the EMPLOYEE table including inserting rows, displaying data, sorting, filtering, aggregating, updating data and adding columns. Queries involve selection of columns, filtering rows, sorting, aggregation, updating values and structure of the table.

Uploaded by

krishnan unni
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/ 23

# KrishnanUnni J Kurup

# Rll no: 19
Q.1) Insert the following row in the EMPLOYEE table:
1016,’SURESH’,’M’,’FINANCE’,’FAHAHEEL’,’2011-05-25’,86000,64547281
1024,’SUNITA’,’F’,’ADMIN’,’SHIRQ’,2013-07-13’,54000,94010245

‘ ‘ ‘

‘ ‘ ‘
# KrishnanUnni J Kurup
# Rll no: 19
Q.2)
Display the EMPLOYEE table on the screen
‘ ‘ ‘

‘ ‘ ‘
# KrishnanUnni J Kurup
# Rll no: 19
Q.3)
Display ENO,NAME,DEPT,BRANCH, and BSAL for every
employee.
‘ ‘ ‘

‘ ‘ ‘

# KrishnanUnni J Kurup
# Rll no: 19
Q.4)
Display NAME,DEPT,DOJ and 80% of BSAL as BONUS.
‘ ‘ ‘

‘ ‘ ‘

# KrishnanUnni J Kurup
# Rll no: 19
Q.5)
Display details of female employees.
‘ ‘ ‘

‘ ‘ ‘
# KrishnanUnni J Kurup
# Rll no: 19
Q.6)
Display details of employees of FINANCE department
‘ ‘ ‘

‘ ‘ ‘
# KrishnanUnni J Kurup
# Rll no: 19
Q.7)
Display details of employees whose BSAL is greater
than 75000.
‘ ‘ ‘

‘ ‘ ‘
# KrishnanUnni J Kurup
# Rll no: 19
Q.8)
Display details of employees working in either
FAHAHEEL or in SALMIYA using or operator.
‘ ‘ ‘

‘ ‘ ‘
# KrishnanUnni J Kurup
# Rll no: 19
Q.9)
Display details of employees working in either
HAWALLY or in SHIRQ using IN operator.
‘ ‘ ‘

‘ ‘ ‘
# KrishnanUnni J Kurup
# Rll no: 19
Q.10)
Display details of employees whose BSAL>=55000 and
BSAL<=70000 using AND operator.
‘ ‘ ‘

‘ ‘ ‘
# KrishnanUnni J Kurup
# Rll no: 19
Q.11)
Display details of employees who joined in the year
2015 using BETWEEN operator.
‘ ‘ ‘

‘ ‘ ‘
# KrishnanUnni J Kurup
# Rll no: 19
Q.no:12)
Display EMPLOYEE table sorted on ENO in ascending
order.
‘ ‘ ‘

‘ ‘ ‘
# KrishnanUnni J Kurup
# Rll no: 19
Q.13)
Display EMPLOYEE table sorted on BSAL on descending
order.
‘ ‘ ‘

‘ ‘ ‘
# KrishnanUnni J Kurup
# Rll no: 19
Q.14)
Display details of employees of PERSONNEL department
sorted on NAME.
‘ ‘ ‘

‘ ‘ ‘
# KrishnanUnni J Kurup
# Rll no: 19
Q.15)
Display EMPLOYEE table sorted on DEPT and within
DEPT,sorted on ENO
‘ ‘ ‘

‘ ‘ ‘
# KrishnanUnni J Kurup
# Rll no: 19
Q.16)
Display number of male and female employees in the
table.
‘ ‘ ‘

‘ ‘ ‘
# KrishnanUnni J Kurup
# Rll no: 19
Q.17)
Display number of employees branch wise.
‘ ‘ ‘

‘ ‘ ‘
# KrishnanUnni J Kurup
# Rll no: 19
Q.18)
Display number of employee department wise.
‘ ‘ ‘

‘ ‘ ‘
# KrishnanUnni J Kurup
# Rll no: 19
Q.19)
Increase BSAL by 5000 of every employee working
SALES department and display the table.
‘ ‘ ‘

‘ ‘ ‘
# KrishnanUnni J Kurup
# Rll no: 19
Q.20)
Display minimum BSAL and maximum BSAL of EMPLOYEE
table
‘ ‘ ‘

‘ ‘ ‘
# KrishnanUnni J Kurup
# Rll no: 19
Q.21)
Add a column HRA FLOAT in the table EMPLOYEE and
display the table.
‘ ‘ ‘

‘ ‘ ‘
# KrishnanUnni J Kurup
# Rll no: 19
Q.22)
Update the column HRA as 20% OF bsal.Display the
table after updating the rows.
‘ ‘ ‘
‘ ‘ ‘

You might also like