Professional Documents
Culture Documents
Ans. sql is the structure query language which is used to manipulate the data in database
Ans
Q2.
Q3.
Ans
Q4.
Ans
Q5.
Ans
Q6.
Ans
Q7.
Ans
Q8.
Ans
Q9.
Ans
Select the two Empid(2,5) all recond from Employeeinfo Table
Q2. Write a query to fetch the number of employees working in the department ‘HR’.
Write a query find number of employees whose DOB is between 02/05/1970 to 31/12/1975 and are groupe
select count(*), gender from employeeinfo where DOB between 02/05/1970 and 31/12/1975 group by gender;
Write a query to fetch details of employees whose EmpLname ends with an alphabet ‘A’ and contains fiv
select employeename from employeeinfo where employeename like '%%%%A' and length(employeename)=5
Write a query to fetch details of all employees excluding the employees with first names, “Sanjay” and “S
select * from employeeinfo where employeename not in ('sanjay', 'sonia');
Write a query to fetch all employees who also hold the managerial position.
select e.empfname, e.emplname, P.empposition from employeeInfo innerj oin employeeposition ON e.empid = p.empi
Write a query to fetch all recods from "EmployeeInfo" Table and matching recods from "EmployeePositi
select emplyeefname, employeelname, department, project, address, dob, gender from employeeinfo inner join emplo
2/1975 and are grouped according to gender
up by gender;