Online Test

1). What is the default isolation level in SQL Server??

2). Which SQL statement is used to prevent SQL injection attacks??

3). What type of join returns only rows where there is a match in both tables??

4). Which SQL function is used to get the current date and time in PostgreSQL??

5). How can you improve the performance of a query in SQL Server??

6). What does the SQL keyword 'EXISTS' do??

7). Which clause is used to ensure that a column value is unique across all rows in a table??

8). What is the purpose of a 'VIEW' in SQL??

9). How can you retrieve all columns from a table in SQL??

10). What is the purpose of the 'HAVING' clause in SQL??

11). Which SQL statement is used to update existing records in a table??

12). What does the SQL function 'ROW_NUMBER()' do??

13). Which SQL clause is used to retrieve only distinct values from a column??

14). How do you handle transactions in SQL to ensure data integrity??

15). What is a 'CTE' in SQL and how is it used??

16). Which function in SQL can be used to concatenate strings??

17). What is a 'Stored Procedure' in SQL??

18). How can you find duplicate records in a table??

19). What does the SQL function 'TRUNCATE' do??

20). How can you implement a many-to-many relationship in SQL??

21). What does the 'ROLLBACK' command do in SQL??

22). Which clause is used to filter rows based on aggregate functions??

23). What type of join returns all rows from the left table and matched rows from the right table??

24). Which SQL keyword is used to create a new table??

25). How can you get the number of rows in a table??

Test Results