SQL Server Basic Data Manipulation – Beginner-Level Quiz

SQL Server Basic Data Manipulation - Beginner Level Quiz

This quiz tests your knowledge of basic data manipulation in SQL Server. It covers basic operations such as inserting, updating, deleting data, and using basic functions. Each question is multiple-choice, with one correct answer.

1 / 20

What is the correct syntax for inserting multiple rows into a table?

2 / 20

How do you concatenate two strings in SQL Server?

3 / 20

Which SQL statement is used to create a view?

  • A) CREATE VIEW view_name AS SELECT column1, column2 FROM table_name;
  • B) ADD VIEW view_name AS SELECT column1, column2 FROM table_name;
  • C) NEW VIEW view_name AS SELECT column1, column2 FROM table_name;
  • D) INSERT VIEW view_name AS SELECT column1, column2 FROM table_name;

4 / 20

What is the purpose of the WHERE clause in SQL Server?

5 / 20

Which SQL function is used to return the current date and time?

6 / 20

What does the TRUNCATE statement do?

7 / 20

What does the SQL statement  SELECT AVG(salary) FROM employees;do?

8 / 20

How do you retrieve the first 10 records from a table?

9 / 20

How do you delete a record from a table?

10 / 20

How do you change the name of a column in SQL Server?

  • A) RENAME COLUMN old_name TO new_name;
  • B) ALTER COLUMN old_name RENAME TO new_name;
  • C) EXEC sp_rename ‘table_name.old_name’, ‘new_name’, ‘COLUMN’;
  • D) MODIFY COLUMN old_name TO new_name;

11 / 20

Which function is used to find the minimum value in a column?

  • A) MIN()
  • B) LEAST()
  • C) LOWEST()
  • D) SMALLEST()

12 / 20

What does the COALESCE() function do?

13 / 20

Which SQL statement is used to change the data type of a column?

14 / 20

How do you retrieve records where a column value is not null?

15 / 20

What does the IS NULL condition do?

16 / 20

What is the purpose of the HAVING clause?

17 / 20

Which SQL Server clause is used to sort the result set?

18 / 20

What does the LEN() function do?

19 / 20

Which function is used to count the number of rows in a table?

20 / 20

How do you rename a table in SQL Server?

Your score is

The average score is 45%

0%

Use this beginner-level quiz on fundamental SQL Server basic data manipulation to improve your data manipulation skills. This quiz covers fundamental functions like COUNT, SUM, and AVG and important SQL operations like INSERT, UPDATE, and DELETE.

The quiz is ideal for beginners who want to solidify their understanding of SQL Server data manipulation techniques. Our carefully selected multiple-choice questions will help you test your knowledge and improve your skills.

All the best.