Professional Documents
Culture Documents
SQL Server Questions
SQL Server Questions
-------General
34.How to find nth highest salary in EMP table.
35.How to delete duplicate records in a table.
36. How to display duplicate records in a table
37. How to find max highest salary in a table.
38.How to Display even number records in a table.
39. How to display particular records (from 4 to 100) in a table
40. How to display last record in a table.
41. How to concatenate two columns in a table.
42. How to retrieve all row except last row from a table.
43.How to display distinct records in a table.
44.How to count the number of columns in a table.
45. How to display highest salary for department wise.
46. How to display the second highest salary in a table.
47. How to display 5th highest salary without using subquery.
48. How to display max of average salary for department wise.
49. How to display which department is having more than 3 employees.
50. Select the details of 3 max salaried employees from employee table.
51. How to know how many tables contains EMPNO as a column in a database.
52. How to write query for getting all records from the left table and only matched records
from the right table.
53. How to write query for getting matched records from the both left and right tables.
54. How to display employee name and his managers name from employee table.
57. What are the different types of languages?
58. What is the difference between delete and truncate
59. What is the difference between having and Where clause.
60. What is ROW number?
61. Difference between Primary key and Unique key
62. What do you mean by ACID properties
63. What is COMMIT and ROLLBACK
64. What are the different types of Indexes?
65. What are the different types of Views?
66. What is the difference between Cross Join and Full join
67. What are the different types of sub-queries?