SQL PROGRAMS
1. Create a table “Empdata” with the following structure :
2. Insert the following records in the table:
3. Display the structure of the table ‘Empdata’ :
[Link] the SQL queries for the following:
1. To display the details of all the employee whose salary is less than
15000
2. To display the name, designation ,date of joining and address of
employee who belong to Noida.
3. To display the details of all employees whose bonus is 120;
4. To display the details of employees who don’t belong to MUMBAI.
5. To display the details of employees whose designation is “clerk” and
lives in NOIDA
6. To display the name of employee with their salary +bonus display it as
“With extra bonus”
7. Write a query to arrange the employee names in ascending order.
[Link] display the details of all the employee
whose salary is less than 15000
[Link] display the name, designation ,date of joining
and address of employee who belong to Noida.
[Link] display the details of all employees whose bonus is 120;
4.4. To display the details of employees who don’t belong to MUMBAI.
4.5 To display the details of employees whose designation is “clerk” and lives
in NOIDA
4.6 .To display the name of employee with their salary added to their bonus display it as “With extra bonus”
4.7 Write a query to arrange the employee names in ascending
order.
[Link] the SQL queries for the following:
• To Increase the bonus of all employee in the empdata by 10%.