Quiz5 Flashcards
Sorting records returned by a SELECT statement is done with a _____ clause
a.
ORDER BY
b.
SORT ON
c.
ASCENDING
d.
GROUP BY
a.
ORDER BY
SQL is used to interact with what kind of database?
a.
Relational
b.
Hierarchical
c.
Object-oriented
d.
Document
a.
Relational
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]
c.
[schema name].[table name]
What SQL command do you use to query a database?
a.
WHERE
b.
SELECT
c.
FROM
d.
SET
b.
SELECT
Which comparison operator indicates a value is not equal?
a.
<
b.
<=
c.
>=
d.
<>
d.
<>
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
b.
Insert new rows into a table
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%’
d.
SELECT * FROM PROVIDERS WHERE PHONE LIKE ‘231%’