Querying SQL Server with Transact-SQL

Querying SQL Server with Transact-SQL

Professional Development

8 Qs

quiz-placeholder

Similar activities

ITFN Test 3

ITFN Test 3

KG - Professional Development

11 Qs

SQL

SQL

Professional Development

4 Qs

SQL Commands for your Handphone Contacts

SQL Commands for your Handphone Contacts

Professional Development

10 Qs

SQL Session 2 Quiz

SQL Session 2 Quiz

Professional Development

10 Qs

Database SQL Part 1 V1

Database SQL Part 1 V1

Professional Development

13 Qs

PLSQL and Cursor Quiz

PLSQL and Cursor Quiz

Professional Development

10 Qs

SQL

SQL

Professional Development

10 Qs

FinTech 07-1 SQL

FinTech 07-1 SQL

Professional Development

10 Qs

Querying SQL Server with Transact-SQL

Querying SQL Server with Transact-SQL

Assessment

Quiz

Computers

Professional Development

Medium

Created by

Michael Caya

Used 1+ times

FREE Resource

8 questions

Show all answers

1.

WORD CLOUD QUESTION

3 mins • Ungraded

What is your Name?

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What keyword is used to retrieve data from a SQL Server database?

RETRIEVE

SELECT

FETCH

SEARCH

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you filter the retrieved data using a WHERE clause?

SELECT ALL FROM table_name WHERE column_name != 'value';

SELECT * FORM table_name WHERE column_name LIKE 'value';

SELECT * FROM table_name WERE column_name IN ('value1', 'value2');

SELECT * FROM table_name WHERE column_name = 'value';

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Explain the difference between the SELECT and SELECT DISTINCT statements.

The SELECT statement retrieves all rows from a table, including duplicates, while the SELECT DISTINCT statement retrieves only unique rows by adding duplicates.

The SELECT statement retrieves all rows from a table, including duplicates, while the SELECT DISTINCT statement retrieves only unique rows by keeping duplicates.

The SELECT statement retrieves all rows from a table, including duplicates, while the SELECT DISTINCT statement retrieves only unique rows by eliminating duplicates.

The SELECT statement retrieves only unique rows by eliminating duplicates, while the SELECT DISTINCT statement retrieves all rows from a table, including duplicates.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the ORDER BY clause in a SQL query?

To sort the result set based on specified columns in ascending or descending order.

To group the result set based on specified columns

To filter the result set based on specified conditions

To join multiple tables in the query

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you limit the number of rows returned by a query in SQL Server?

SELECT FIRST * FROM table_name;

SELECT TOP * FROM table_name;

LIMIT SELECT * FROM table_name;

SELECT * FROM table_name LIMIT ;

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the role of the INSERT statement in SQL Server?

The role of the INSERT statement in SQL Server is to add new records (rows) to a table.

The INSERT statement in SQL Server is used to update existing records in a table.

The INSERT statement in SQL Server is used to delete records from a table.

The INSERT statement in SQL Server is used to create a new table.

8.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What is correct Logical Order of Query Processing

SELECT
FROM

WHERE

ORDER BY

GROUP BY

SELECT
FROM

WHERE

GROUP BY

ORDER BY

FROM

WHERE

GROUP BY

SELECT

ORDER BY

FROM

WHERE

SELECT

GROUP BY

ORDER BY