Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 4

Consider this data base :Employee

• Employee{emp_name,emp_id,dept_no,block_no,dept_name, job, salary, company,city}


• Find the employee names and their respective departments.
• Find out the name of working employee without duplicate value.
• Find the names of employee those are taking salary more than 50000 per month.
• Find the name and city of employees working for Infosys.
• Write a query to display names, department number and department name of all the
employees.
• Write a query to display names, job,dept no and dept name for all employees who work
in block no 09.
• Alter the structure of the given table and add new col= “STATE” and fill the values in it
for all Employee.
• Assume that 5 employee has change their organization form “ Infosys to Microsoft”
now Update the company name for them.
• Write a query to display the names of all employees where the third letter of name is ‘c’.
• Write a query to display the names of all employees whose name started with letter ‘a’.
Create this data base :Employee
• Employee{emp_name,emp_id,dept_no,block_no,dept_name, job,
salary, company,city}
• Find the employee names and their respective departments.
• Find out the name of working employee without duplicate value.
• Find the names of employee those are taking salary more than 50000
per month.
• Find the name and city of employees working for LPU
• Write a query to display names, department number and department
name of all the employees
• Write a query to display names, job, dept no and dept name for all
employees who work in block no --

You might also like