Sei sulla pagina 1di 4

http://itd2203-database-systems.wikispaces.

com/Quizzes+and+Exams Chapter 2: How to use the Management Studio Professor


COMPLETION 1. The ________________________________________ is a graphical user interface for working with the objects in a SQL Server database. ANS: Management Studio PTS: 1 2. A database __________________ is a schematic drawing that shows you the relationships between the tables youre working with. ANS: diagram PTS: 1 3. Within the Management Studio, you can build a SQL statement without having to write your own code by using the ____________________________________. ANS: Query Designer PTS: 1 4. SQL Server comes with a complete set of reference manuals and help information called ____________________________________. ANS: Books Online PTS: 1 5. Before you can use the Management Studio to work with the objects in a database, you must ___________ the database to an instance of SQL Server 2005. ANS: attach PTS: 1 MULTIPLE CHOICE 1. When you use Windows authentication to connect to a database, SQL Server a. uses the login name and password that you use for your PC to authorize your connection

b. requires that you use a special login name and password for your authorization c. lets you access the database without authorization as long as youre logged on to Windows d. uses both Windows and SQL Server login names and passwords for authorization ANS: A PTS: 1

2. When you set the compatibility level of SQL Server 2005, you make sure it is compatible with a specific version of a. standard SQL b. SQL Server ANS: B PTS: 1 c. DDL statements d. DML statements

3. You can create a database diagram for a. up to 3 tables in a database b. just the tables in a one-to-many relationship ANS: D PTS: 1 c. just the related tables in a database d. any combination of the tables in a database

4. The Query Editor of the Management Studio lets you enter and execute all types of a. Select statements b. DDL statements ANS: D PTS: 1 c. DML statements d. SQL statements

5. Which of the following isnt a common error when entering and executing SQL statements? a. Misspelling a keyword b. Misspelling the name of a table ANS: C PTS: 1 c. Forgetting to attach the required database d. Forgetting to select the required database

6. One limitation of the Query Designer is that you cant use it for a. multiple-table queries b. certain types of complex queries ANS: B PTS: 1 c. action queries d. one-to-many relationships

7. If you want to use the Management Studio to modify the data for a table, you can right-click on the table and select the a. Select Top 1000 Rows command b. Edit Top 200 Rows command c. Design command d. View Top 100 Rows command

ANS: B

PTS: 1

To return all of the columns from the base table, you can code the ___________ operator in the SELECT clause.

Your Answer: ALL


Correct Answer(s): wildcard

The ________________ clause of the SELECT statement names the table that contains the data to be retrieved.

Your Answer:
Correct Answer(s): FROM

The order of precedence for the logical operators in a WHERE clause is Not, And, Or
To retrieve rows in which an expression matches a string pattern called a mask, you can use the ______________ keyword followed by the mask.

Your Answer:
Correct Answer(s): LIKE

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 <= 1000 0% of points InvoiceTotal IN (0,1000)
If you want to filter the result set thats returned by a SELECT statement, you must include a/an ___________________ clause.

Your Answer:
Correct Answer(s): WHERE

To sort the records that are retrieved by a SELECT statement in descending sequence by InvoiceTotal, you code _________ after ORDER BY InvoiceTotal. Your Answer:
Correct Answer(s): DESC

To prevent duplicate rows from being returned by a SELECT statement, you can code the __________________ keyword in the SELECT clause. Your Answer:
Correct Answer(s): DISTINCT

When you code a SELECT statement, you must code the four main clauses in the following order SELECT, FROM, WHERE, ORDER BY

When coded within a SELECT clause, which TOP clause will return a result set consisting of the ten largest InvoiceNumbers? TOP 10 InvoiceNumber Unless you assign a/an _____________________________, the column name in the result set is the same as the column name in the base table. Your Answer: variable
Correct Answer(s): alias

To override the order of precedence in an arithmetic expression, you can use __________________.

Your Answer: parentheses


Correct Answer(s): parentheses

Potrebbero piacerti anche