Possible TR Questions
Possible TR Questions
1. What is SQL?
2. What are SQL dialects? Give some examples.
3. What are the main applications of SQL?
4. What is an SQL statement? Give some examples.
5. What types of SQL commands (or SQL subsets) do you know?
6. Give some examples of common SQL commands of each type.
7. What is a database?
8. What is DBMS, and what types of DBMS do you know?
9. What is RDBMS? Give some examples of RDBMS.
10. What are tables and fields in SQL?
11. What is an SQL query, and what types of queries do you know?
12. What is a subquery?
13. What types of SQL subqueries do you know?
14. What is a constraint, and why use constraints?
15. What SQL constraints do you know?
16. What is a join?
17. What types of joins do you know?
18. What is a primary key?
19. What is a unique key?
20. What is a foreign key?
21. What is an index?
22. What types of indexes do you know?
23. What is a schema?
24. What is a SQL comment?
25. What is a SQL operator?
26. What types of SQL operators do you know?
27. What is an alias?
28. What is a clause?
29. What are some common statements used with the SELECT query?
30. How to create a table?
31. How to update a table?
32. How to delete a table from a database?
33. How to get the count of records in a table?
34. How to sort records in a table?
35. How to select all columns from a table?
36. How to select common records from two tables?
37. What is the DISTINCT statement and how do you use it?
38. What are entities? Give some examples.
39. What are relationships? Give some examples.
40. What is NULL value? How is it different from zero or a blank space?
41. What is a function in SQL, and why use functions?
42. What aggregate functions do you know?
43. What scalar functions do you know?
44. What are case manipulation functions? Give some examples.
45. What are character manipulation functions? Give some examples.
46. What is the difference between local and global variables?
47. What is the default data ordering with the ORDER BY statement, and how do you
change it?
48. What set operators do you know?
49. What operator is used in the query for pattern matching?
50. What is the difference between a primary key and a unique key?
51. What is the order of appearance of the common statements in the SELECT query?
52. In which order the interpreter executes the common statements in the SELECT
query?
53. What is a view, and why use it?
54. Can we create a view based on another view?
55. Can we still use a view if the original table is deleted?
56. What types of SQL relationships do you know?
57. What are the possible values of a BOOLEAN data field?
58. What is normalization in SQL, and why use it?
59. What is denormalization in SQL, and why use it?
60. What is the difference between renaming a column and giving an alias to it?
61. What is the difference between nested and correlated subqueries?
62. What is the difference between clustered and non-clustered indexes?
63. What is the CASE() function?
64. What is the difference between the DELETE and TRUNCATE statements?
65. What is the difference between the DROP and TRUNCATE statements?
66. What is the difference between the HAVING and WHERE statements?
67. How do you add a record to a table?
68. How to delete a record from a table?
69. How to add a column to a table?
70. How to rename a column of a table?
71. How to delete a column from a table?
72. How to select all even or all odd records in a table?
73. How to prevent duplicate records when making a query?
74. How to insert many rows in a table?
75. How to find the nth highest value in a column of a table?
76. How to find the values in a text column of a table that start with a certain letter?
77. How to find the last id in a table?
78. Explain about ACID properties.
79. What is the difference between the WHERE and HAVING clauses?
80. What is SQL Injection?