My SQL - G

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 12

MY SQL

Q1)Create a Table Employee in database Office which


stores Ecode,Name and Salary of employees of the
office.
Q2)Add two columns Post and Dept in the
table Employee.

Q3) Insert data as per field order in the table.


Q4) Insert data as per the user defined order
in the table.

Q5) Display all the data from the table


Employee.
Q6)Increase salary of all employees by 1500.

Q7)Sanskar got promotion. His salary


increases by 15% and his dept become legal.
Q8)Display employee name and their annual
salary?

Q9) Display details of those employees whose


salary is greater than 50000.
Q10)Display name and department of all
officers?

Q11)Display name,dept and half yearly salary


of all managers in the company?
Q12)Display details of employees whose
salary is in the range of 60000 and 80000?

Q13)Display details of all employees in


reverse alphabetical order of their names?
Q14)Display details of all employees in
increasing order of their salaries;

Q15)Display details of all accounts dept


employees in decreasing order of their
salaries?
Q16)Count the total no. of employees in each
department?

Q17)Display maximum and minimum salary in


each dept?
Q18)Display total number of employees and
the total salary in each department?
CSV FILE

You might also like