Mysql Assignment - 15: Where Quality Matters
Mysql Assignment - 15: Where Quality Matters
Mysql Assignment - 15: Where Quality Matters
MYSQL ASSIGNMENT - 15
Question. Suppose there is a table named EMPLOYEE ? Write SQL Queries as per the following table fields -
CODE , NAME, SALARY
Q1. Display code and hra of all the employees where hra (house rent allowance) is 40%of sal ?
Q2. Display name and da (dearness allowance) of all the employees where da is 31% of sal ?
Q3. Display records of those employees who are getting salary between 5000 to 10000 ?
Q4. Display code , name , salary and travelling allowance of all the employees here ta is 5% of sal ?
Q5. Display code,name,salary and gross salary of all employee where gross sal is sal+hra+da+ta ?
Q6. Display records of all the employee with thier half salary ?
Q8. Display code and provident fund of all the employee where pf is 16% of basic salary ?
Q10. What is the difference between highest and lowest salary paid into the organization ?
Q11. Display the records of employees who are getting five digit salary ?
Q12. Display records of those employees who are getting four digit to six digit salary ?
Q13. Display records of those employees who are not getting any salary or getting 0 amount as salary?
Q15. Display records of all the employees with thier net salary if net salary is gross salary- provident fund ?