Search Header Logo
SQL Training 01

SQL Training 01

Assessment

Presentation

•

Science

•

Professional Development

•

Practice Problem

•

Hard

Created by

Levente Maár

Used 4+ times

FREE Resource

1 Slide • 20 Questions

1

​SQL TRAINING QUIZ 01

By Where the Magic Begins

2

Multiple Choice

Question image

Which kind of database is the PostgreSQL?

1

NoSQL

2

RBDMS

3

Multiple Choice

Question image

What is the file format in what MSSQL stores the log files in use?

1

TRN

2

MDF

3

BAK

4

LDF

4

Multiple Select

Question image

Which statements about PRIMARY KEY are true?

1

It uniquely identifies each row

2

It can contain NULL values

3

It can be composed of multiple columns

4

It automatically creates an index

5

Multiple Select

Question image

Which clauses can be used to filter data in SQL?

1

WHERE

2

ORDER BY

3

TOP

6

Multiple Select

Question image

Which statements about a One-to-Many relationship are true?

1

The parent table contains the foreign key

2

The child table contains the foreign key

3

One record in the parent table can relate to multiple records in the child table

4

It requires a link table

7

Multiple Select

Question image

Which statements about Many-to-Many relationships are correct?

1

Requires a link table

2

Each table can have multiple related rows in the other table

3

Not able to use constraints in their columns

8

Multiple Choice

Question image

Which JOIN returns all rows from both tables, including unmatched rows?

1

INNER JOIN

2

LEFT JOIN

3

FULL OUTER JOIN

4

CROSS JOIN

9

Multiple Select

Question image

Which JOIN types can return NULL values in the result set?

1

INNER JOIN

2

LEFT JOIN

3

RIGHT JOIN

4

FULL OUTER JOIN

5

CROSS JOIN

10

Multiple Select

Question image

Which JOIN types can potentially increase the number of rows compared to the original tables?

1

INNER JOIN

2

LEFT JOIN

3

FULL OUTER JOIN

4

CROSS JOIN

11

Multiple Choice

Question image

Which of the following statements about FLOAT and REAL is true?

1

Both are exact numeric types

2

FLOAT is approximate, REAL is exact

3

Both are approximate numeric types

4

REAL is used for integers only

12

Multiple Choice

Question image

What is the difference between CHAR and VARCHAR?

1

CHAR is variable-length, VARCHAR is fixed-length

2

CHAR is fixed-length, VARCHAR is variable-length

3

Both are fixed-length

4

Both are variable-length

13

Multiple Select

Question image

Which of the following are deprecated in MSSQL?

1

TEXT

2

NTEXT

3

IMAGE

4

NVARCHAR(MAX)

14

Multiple Select

Question image

Which data types support fractional seconds?

1

DATETIME

2

DATETIME2

3

SMALLDATETIME

4

TIME

15

Multiple Select

Question image

Which of the following are drawbacks of using UNIQUEIDENTIFIER as a primary key?

1

Larger storage size compared to INT

2

Cannot be indexed

3

Fragmentation in clustered indexes

4

No default function to generate one in case of insert

16

Multiple Select

Question image

Which clauses can be used with SELECT?

1

FROM

2

WHERE

3

TOP

4

ORDER BY

17

Multiple Select

Question image

Which of the following are valid ways to select all columns from a table?

1

SELECT * FROM Employees

2

SELECT ALL FROM Employees

3

SELECT Employees.* FROM Employees

4

SELECT * Employees

18

Multiple Select

Question image

Which of the following are valid ways to sort by multiple columns?

1

ORDER BY LastName, FirstName

2

ORDER BY LastName ASC, FirstName DESC

3

ORDER BY 1, 2

4

ORDER BY LastName AND FirstName

19

Multiple Choice

Question image

Which of the following is valid syntax to return the top 5 rows?

1

SELECT TOP 5 * FROM Employees

2

SELECT LIMIT 5 * FROM Employees

3

SELECT FIRST 5 * FROM Employees

4

SELECT * FROM Employees TOP 5

20

Fill in the Blanks

What keyword is missing f?

SELECT TOP(10) Id

Type answer...

Employees WHERE Id > 100

21

Fill in the Blanks

What keyword is wrong?

SELECT * FROM Orders ORDER BY OrderDate DESC LIMIT 1

Type answer...

pattern-tertiary
​SQL TRAINING QUIZ 01

By Where the Magic Begins

Show answer

Auto Play

Slide 1 / 21

SLIDE