Quiz5 Flashcards

1
Q

Sorting records returned by a SELECT statement is done with a _____ clause

a.
ORDER BY

b.
SORT ON

c.
ASCENDING

d.
GROUP BY

A

a.
ORDER BY

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

SQL is used to interact with what kind of database?

a.
Relational

b.
Hierarchical

c.
Object-oriented

d.
Document

A

a.
Relational

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Standard two-part naming in SQL Server follows which convention?

a.
[server name].[table name]

b.
[database name].[schema name]

c.
[schema name].[table name]

d.
[server name].[database name]

A

c.
[schema name].[table name]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What SQL command do you use to query a database?

a.
WHERE

b.
SELECT

c.
FROM

d.
SET

A

b.
SELECT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which comparison operator indicates a value is not equal?

a.
<

b.
<=

c.
>=

d.
<>

A

d.
<>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does the INSERT statement do?

a.
Fetch data from a database

b.
Insert new rows into a table

c.
Insert new columns into a table

d.
Insert a new table into a database

A

b.
Insert new rows into a table

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

All providers from the factory zone of the city start with 231. You want to get the providers that are in the factory zone of the city. Which of the following is more appropriate?

a.
SELECT * FROM PROVIDERS WHERE PHONE LIKE ‘___ 231 ___’

b.
SELECT * FROM PROVIDERS WHERE PHONE LIKE ‘% 231’

c.
SELECT * FROM PROVIDERS WHERE PHONE LIKE ‘%231%’

d.
SELECT * FROM PROVIDERS WHERE PHONE LIKE ‘231%’

A

d.
SELECT * FROM PROVIDERS WHERE PHONE LIKE ‘231%’

How well did you know this?
1
Not at all
2
3
4
5
Perfectly