0% found this document useful (0 votes)
87 views

Mysql Assignment - 15: Where Quality Matters

The document contains 15 SQL queries to retrieve employee data from a table with fields CODE, NAME, SALARY. The queries return records based on calculations of HRA, DA, TA, PF, gross salary, half salary, and net salary from basic salary values. It asks to find the maximum and minimum salaries, count employees below a salary, and return records for employees with 0 or between certain digit salary ranges.

Uploaded by

Ghanshyam Sharma
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
87 views

Mysql Assignment - 15: Where Quality Matters

The document contains 15 SQL queries to retrieve employee data from a table with fields CODE, NAME, SALARY. The queries return records based on calculations of HRA, DA, TA, PF, gross salary, half salary, and net salary from basic salary values. It asks to find the maximum and minimum salaries, count employees below a salary, and return records for employees with 0 or between certain digit salary ranges.

Uploaded by

Ghanshyam Sharma
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

INFOTECH 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 ?

Q7. Display total salary distributed to all of the employees ?

Q8. Display code and provident fund of all the employee where pf is 16% of basic salary ?

Q9. What is the maximum salary paid to into organization ?

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?

Q14. How many employees getting salary less then 4000 ?

Q15. Display records of all the employees with thier net salary if net salary is gross salary- provident fund ?

FIRST FLOOR, OPPOSITE BANK OF BARODA


AJMER RO AD, KISHANGARH (RAJ) 305801 CALL:+91-98291-71122
EMAIL:in [email protected] | WEBSITE:ww w.infotechcomputer .in

You might also like