wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Session 7, 8, 9 SQL

Total questions: 30

Worksheet time: 30mins

Name
Class
Date
1.

Which of these are services under Azure SQL ?

a)

Azure SQL Managed Instance

b)

SQL sever on Azure Virtual Machines

c)

Azure SQL Database

d)

All of these

2.

What is Azure SQL Database ?

a)

As a tool for web design

b)

As a tool used to program applications

c)

As a database service management platform

d)

More result

3.

Which of the following allows developers to develop their own set of tags and makes it possible for other programs to understand these tag ?

a)

HTML

b)

XML

c)

DHTML

d)

XQuery

e)

XTML

4.

___ Statement is not supported by Azure SQL. Hence, the user cannot switch between databases in Azure SQL as compared to on-premises SQL Sever

a)

USE

b)

WHERE

c)

FROM

d)

SELECT

5.

For a ___ database, the vCore-based purchase model is ideal as it is flexible and allows you to scale memory and storage based on your requirements

a)

multiple

b)

single

c)

all

d)

Other answer ...

6.

Automatic failover measure are provided in ____

a)

SQL

b)

Azure SQL

c)

Database

d)

DBMS

7.

___ return all rows from two table are combined only if the rows from both the tables are matched based on a common column

a)

Left Outer Join

b)

Self - Join

c)

Right Outer Join

d)

Inner Join

8.

Which of the following statements can be used with subqueries that return one column and many rows

a)

All

b)

In

c)

Any

d)

=

9.

The ___ statement retrieves rows and columns from one or more tables

a)

DISPLAY

b)

SELECT

c)

INSERT

d)

SHOW

10.

Which of the following clause with the SELECT satements is used to specify tables to retrieves records?

a)

FROM

b)

.VALUE

c)

.WRITE

d)

WHERE

11.

___ is used to improve the effciency of queries on XML documents that are stored is an XML column

a)

XML import

b)

XML indexing

c)

XML index

d)

XML export

12.

The ___ operator is used to display only the rows that are common to both the tables

a)

union

b)

except

c)

intersect

d)

union with all

13.

___ is formed when records from two tables are combined only if the rows from both the tables are matched based on a common column

a)

inner join

b)

left outer join

c)

right outer join

d)

self-join

14.

Which one of the following protocols is used by applications retrieves data from SQL Sever ?

a)

DTS

b)

ABS

c)

TDS

d)

WSQL

15.

TDS stand for ___

a)

Tabular Data Stream

b)

Tabular Direct Stream

c)

Tabular Direction Stream

d)

Tabular Data System

16.

How many operators can be used with the WHERE clause ?

a)

6

b)

7

c)

8

d)

9

e)

10

17.

___ is used to return the largest number, lastest date/time, or last occuring string

a)

MAX

b)

MAX function

c)

SUM

d)

ALL

18.

How to count the number of elements in a column?

a)

use COUNT function

b)

COUNT

c)

COUNTED

d)

use COUNTED function

19.

In what year was CTE first introduced?

a)

2003

b)

2004

c)

2005

d)

2009

20.

The ___ operator returns all of the distinct rows from the query given on left of the ___ operator.

a)

EXCEPT

b)

UNION

c)

UNION/EXCEPT

d)

EXCEPT/UNION

21.

How many OPERATORS in session 9 ?

a)

5

b)

4

c)

6

d)

Other answer

22.

An ___ join is formed when records from two tables are combined only if the rows from both the tables are matched based on a common column.

a)

inner

b)

self

c)

right outer

d)

left outer

23.

How many main type JOIN ?

a)

2

b)

1

c)

Other Answer

d)

3

24.

Select all main type-name JOIN

a)

inner join

b)

outer join

c)

left outer join

d)

right outer join

e)

self join

25.

The ___ statement allows you to maintain a target table based on a source table using a single statements. You can now perform the following actions in one ___ statement

a)

OUTER JOIN

b)

MERGE

c)

INNER JOIN

d)

SELF JOIN

26.

A ______ is used to find records in a table that are related to other records in the same table.

a)

self join

b)

inner join

c)

outer join

d)

other answer

27.

___ allows you to generate subtotals for all combinations of grouping columns specified in the ___ clause

a)

EXPECT / EXPECT

b)

GROUP BY / EXPECT

c)

CUBE / GROUP BY

d)

EXPECT / GROUP BY

28.

How to sort elements alphabetically ?

a)

use ASC

b)

use DESC

c)

use ASCS

d)

use DECC

29.

The ___ clause can be used with different clauses, such as WHERE, ORDER BY and HAVING

a)

GROUP BY

b)

CUBE

c)

EXPECT

d)

MERGE

30.

What is Azure SQL

a)

A cloud computing database

b)

A function name

c)

Another coding app

d)

Other answer