Sei sulla pagina 1di 4

1.

The ________________________________________ is a graphical user interface


for working with the objects in a SQL Server database.
Management Studio
2. To sort the records that are retrieved by a SELECT statement in
descending sequence by InvoiceTotal, you code _________ after ORDER
BY InvoiceTotal.
DESC
3. SQL statements that define the tables in a database are referred to
as _______________ statements.
DDL
4. If you want to retrieve all the rows from both tables involved in the
join including all unmatched rows, you use a/an _______________ join.
full outer
5. Which of the following is not a valid column alias name?
Total Sales
6. When you use the implicit syntax for coding joins, the join conditions
are coded in the ____________ clause.
WHERE
7. The SQL dialect that Microsoft SQL Server uses is called
_______________.
T-SQL
8. The join shown here: SELECT VendorName AS Vendor, InvoiceDate AS
Date
FROM Vendors AS V JOIN Invoices AS I ON V.VendorID = I.VendorID
is coded using the _____________________________ syntax.
explicit (SQL-92)
9. In the join shown here: SELECT VendorName, InvoiceNumber
FROM Invoices LEFT JOIN Vendors ON Invoices.VendorID =
Vendors.VendorID
The total number of rows returned by this query must
equal_____________.
the number of rows in the Invoices table
10.
When you use the implicit syntax for coding joins, the join
conditions are coded in the ____________ clause.
WHERE

11.
Select, Insert, Update, and Delete statements can be referred
to as ______________ statements.
DML
12.
When a column in a table is defined, it is given a data _________
that determines what kind of data it can store.
type
13.

In a join, column names need to be qualified only _____________

when the same names are used in both tables.


14.
Insert, Update, and Delete statements can be referred to as
______________ queries.
action
15.
The join shown here: SELECT VendorName AS Vendor,
InvoiceDate AS Date
FROM Vendors AS V JOIN Invoices AS I ON V.VendorID = I.VendorID
is called a/an __________________ join.
inner
16.
In the join shown here: SELECT VendorName AS Vendor,
InvoiceDate AS I_Date
FROM Vendors AS V JOIN Invoices AS I ON V.VendorID = I.VendorID
The column name for the second column in the result set will be
__________________________.
I_Date
17.

A/An __________________ uniquely identifies each row in a table.

primary key
18.
In the join shown here: SELECT VendorName AS Vendor,
InvoiceDate AS Date
FROM Vendors AS V JOIN Invoices AS I ON V.VendorID = I.VendorID
The name V is known as a/an ____________________________________.
correlation name (or table alias)
19.
To override the order of precedence in an arithmetic
expression, you can use parenthesis.
True
20.
When coded in a WHERE clause, which of the following search
conditions will not return a result set that includes all invoices with
an InvoiceTotal value of $1000 or less?

InvoiceTotal IN (0,1000)
21.
The most common type of relationship between two tables is
a/an ___________________ relationship.
one-to-many
22.

A relational database can contain ___________.

one or more tables


23.
To retrieve rows in which an expression matches a string
pattern called a mask, you can use the ______________ keyword
followed by the mask.
LIKE
24.
Because the American National Standards Institute publishes
the specifications for a standard SQL language, each DBMS vendor's
version of SQL follows exactly the same syntax rules.
False
25.
___________________ names can be used when you want to assign
a temporary name to a table.
Correlation
26.
You don't ever need to code a right outer join because
_____________.
right outer joins can be converted to left outer joins
27.
To relate one table to another, a/an __________________ in one
table is used to point to the primary key in another table.
foreign key
28.
In most cases, the join condition of an inner join uses the
_______________ operator to compare two keys.
equal
29.
To return all of the columns from the base table, you can code
the ___________ operator in the SELECT clause.
*
30.
When you use Windows authentication to connect to a
database, SQL Server
uses the login name and password that you use for your PC to authorize your
connection
31.
To concatenate character strings, you use the _____________
operator in a string expression.

+
32.
If you want to retrieve all the rows that satisfy the join
condition plus the unmatched rows in the first table, you use a/an
_______________ join.
left outer
33.
When coded in a WHERE clause, which search condition will
return invoices when PaymentDate is not null and InvoiceTotal is
greater than or equal to $500?
PaymentDate IS NOT NULL AND InvoiceTotal >= 500

34.
When you code a SELECT statement, you must code the four
main clauses in the following order
SELECT, FROM, WHERE, ORDER BY
35.
Which of the following expressions will not compute 10% of the
balance due if balance due is the invoice total minus the credit total
minus the payment total?
InvoiceTotal - CreditTotal - PaymentTotal / 10
36.
The ________________ clause of the SELECT statement names the
table that contains the data to be retrieved.
FROM
37.
In most cases, the join condition of an inner join compares the primary
key of one table to the ____________________ key of another table.
foreign
38.
Unless you assign a/an _____________________________, the column
name in the result set is the same as the column name in the base
table.
alias
39.
To prevent duplicate rows from being returned by a SELECT statement,
you can code the __________________ keyword in the SELECT clause.
DISTINCT