SQL Assignment-01 G.Meghana Question - 01
SQL Assignment-01 G.Meghana Question - 01
MEGHANA
QUESTION -01
Commands used ;
Question - 02
Question-03 Add a column deptno with the data type no of size 4
Dno number(6)
Dname varchar2(40)
Question 23 Write a query to display the last name concatenated with the job
code, separated by a comma and space
Question- 24 Write a query to display the last name and salary of employees
earning more than 12000
Question – 27 Write a query to display the last name, job code and start date
of employees hired between feb 20 1998 and may 1 1998 order the query In
ascending order by start date
Question-28 Write a query to display the last name and department number
of all employees in department number 20 & 50 in alphabetical order by last
names
Question-29 Write a query to display last name and hire date of employees
who earn between 5000 to 12000 are in department of 20 or 50 label column as
employee & monthly salary
Question-30 Write a query to display the last name and hire date of all
employees who was hired in 1994
Question-31 Write a query to display the last name, salary & commission for
all employees Who earn commission. Sort data in descending order of salary
& commission
Question- 32 Write a query to display the last name of all employees Where
the third letter of the last name is an A
Question 33 Write a query to display the last name of all employees who have
an ‘A’ & ‘E’ in their last name
Question 34 Write a query to display the last name and salary whose job is
sales representative or stock clerk and whose salary is not equal to
2500,3500,7500
Question-36 For each employee, display the employee number, last name &
salary and the salary increased by 15%, rename it as new salary
Question-37 For the above query add a column called increase which should
contain the difference between old & new salaries.