B. Since A View Does Not Hold Data, It Returns Data On The Fly Using The SELECT Statement Stored Inside It
B. Since A View Does Not Hold Data, It Returns Data On The Fly Using The SELECT Statement Stored Inside It
2. You created a view with SCHEMABINDING option. The view selects TarineeId,
TraineeName, CourseID, TraineeAge columns from Trainees table. Now you want to
dropTraineeAge column from the Trainees table. How can you do that?
A. use ALTER TABLE statement with NO CHECK option
B. drop the schema-bound view and then drop the column using ALTER TABLE
statement
C. drop the whole table and then recreate it
D. delete existing data from the table and then drop the column using ALTER TABLE
statement
Answer: B
Q8. The application software on the client uses data that's stored on the database using
____________. Which one best fits the blank space?
A. a data access API
B. SQL queries
C. a database management system
D. Network
Answer: A
Q9.. What is a trigger?
A. A predefined select query that's stored in a database 7
B. A set of statements, not limited to only one select statement, stored as an object
C. A special type of procedure that can return a value or a table
D. a special type of procedure that's executed when rows are inserted, updated, or
deleted from a table or when the definition of a database is changed
Answer:D
Q12. Which SQL Server extension clause lets you create a new table based on the result
set defined by the SELECT statement?
A. FETCH NEXT
B. INTO
C. TOP
D. OVER
Answer: B
13. Why must column names be unique when you create tables using the SELECT INTO
statement?
• Since the new table is based on the columns in the result set returned by the SELECT
statement
• Since the new table will generate random names for the column
• Since new table will ignore duplicate columns
• Otherwise data is not copied correctly
Q17. Which operator cannot be used when a subquery in WHERE clause returns a list of
values?
• IN
• EXISTS
• ANY
• >
Answer: D
Q18. Which one can you use to check for the existence of an object before running a
create statement?
• EXISTS
• IN
• ALL
• ANY
Answer: A
Q16. Which query or queries will work?
Q17. _________ allow all rows from one or more tables to be included in the resultset.
Select the correct one for the blank.
• Inner joins
• Outer joins
• Cross joins
• Distributed queries
Answer: B
Q18. Which clause of a SELECT statement is used to specify how the result of the query
will be sorted?
• SELECT
• FROM
• WHERE
• ORDER BY
Answer: D
Q23. The find string is not found in the search string, the CHARINDEX function returns
_______________.
A. 0
B. 1
C. -1
D. Null
Answer:A