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

sql_questions

The document outlines various SQL concepts including types of indexes, triggers, joins, query optimization, and constraints. It also provides specific SQL query examples for tasks such as fetching employee details, handling duplicates, and using subqueries. Additionally, it discusses differences between SQL commands and clauses, as well as performance considerations in query execution.

Uploaded by

mahi.p4505
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

sql_questions

The document outlines various SQL concepts including types of indexes, triggers, joins, query optimization, and constraints. It also provides specific SQL query examples for tasks such as fetching employee details, handling duplicates, and using subqueries. Additionally, it discusses differences between SQL commands and clauses, as well as performance considerations in query execution.

Uploaded by

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

1.types of indexes ?

why do we use indexes in sql


2.What is trigger ? trigger creation syntax and advantage ?
3.Writing SQL Query with Joins.
4.How do you optimize complex SQL queries?
5.What are the point to consider if the query is delaying in fetching data from a
table/s ?
6.Query to find the details of employee with Maximum total salary
7.What are constraints in sql
8.qury related to employee and departent with join conditions
9.What is the Primary key
10.what is composite primary ;key in sql
11.SQL query to fetch all the employees who are not working on any project.
12.Write an SQL query to fetch a project-wise count of employees.
13.Write an SQL query to fetch all the Employees who are also managers.
14.Write an SQL query to fetch duplicate records from EmployeeDetails.
15.Write an SQL query to fecth the nth highest or lowest salary from employeesalary
16.Difference between Having and Where clause.
17.Difference between alter and update command.
18.difference between deop and delete and truncate
19.Can we use Where clause after the group by?
20.Which is more efficient subquery or join. Explain with example?
21.Which is faster inner join or left outer join? Why?
22.Write a query to fetch the alternate record from a table.
23.Write a query to display the all records whose name contain character ‘a’ in
2nd and 5th position.
24.Write a query to display the 3rd highest salary from Employee table.
25.Write a query to display the record by joining multiple table.
26.Write a query while using subquery and join both in a single query
27.Write a query to show your age in reference to current date displaying years,
month and days. Format – Y years M months D days.

You might also like