10 SQL Commmands - Worksheet Iii
10 SQL Commmands - Worksheet Iii
1. Consider the following table named Employee and answer the questions that follow:
TABLE: Employee
create table Employee (ID integer primary key, NAME varchar(30), AGE integer, JOB
varchar(20), CITY varchar(20), SALARY integer, PHONE varchar(20));
b) Write command to insert a new record in Employee table with the following details.
ID : 6 , NAME : Shivam Sahai , AGE : 42 , JOB : Salesman , CITY : Greater Noida , SALARY : 40000 ,
PHONE : 7889788909
e) Write command to display the details of all the Clerks stored in Employee table.
f) Write command to display the id, name, city and phone number of the Manager.
g) Write command to display the names of all employees whose age is above 30 years.
j) Write command to display the job and age of employee whose name is Priyansh Goel .
k) Write command to display the names and annual salaries of all employees.
l) Write command to display the names and half of their respective monthly salaries for all
employees.
q) Write command to display the details of all employees whose age is between 25 and 30 (both
values included).
r) Write command to display the details of all employees who are either Clerks or Manager.
s) Write command to display the details of all employees but for Clerks.
t) Write command to display the name and job of all employees who earn more than 80000.
u) Write command to display the details of all employees who earn between 60000 and 80000
(both values included).