Mysql 13Sept
Mysql 13Sept
6.To list all employees with job starts with C and ends with K
7.To list all employees with job contains L at third position and M at third last
position
8.To list all the record with sal not equal to 1250 or 1100 or 2850
10.To list all employees with job starts with C , E at 3rd position and ends with
K
12.To list all employees with sal is null and name starts with ‘S’
===================================================================================
========================================================================
14.To list all employees with name contain ‘A’ at 1 position and job Contains 5
characters
01- Retrieve the details(Name,Salary and dept no) of the emp who are working in
department code 20,30 & 40
02- Display the total salary of all employees.Total salary will be calculated as
sal+comm+sal*0.10
03- List the Name and job of the emp who have joined before 1 jan 1986 and whose
salary range is between 1200and 2500. Display the columns with user defined Column
headers.
04-List the empno, name, and department number of the emp works under manager with
id 7698
05-List the name, job, and salary of the emp who are working in departments 10 and
30.
06-Display name concatenated with dept code separated by comma and space. Name the
column as ‘Emp info’.
08-Write a query which will display name, department no and date of joining of all
employee who were joined January 1, 1981 and March 31, 1983. Sort it based on date
of joining (ascending).
09-Display the employee details where the job contains word ‘AGE’ anywhere
10-List the details of the employee , whose names start with ‘A’ and end with ‘S’
or whose names contains N as the second or third character, and ending with either
‘N’ or ‘S’.
===================================================================================
===============================================================================
1.To list all employees and their email, to generate email use 2 to 5 characters
from ename Concat it with 2 to 4 characters in job and then concat it with
‘@mycompany.com’
3.List the empno, name, and department number of the emp who have experience of 18
or more years and sort them based on their experience.
4.Display the employee details who joined on 3rd of any month or any year