1.
You need to create a column that allows you to create a unique constraint. Which two column definitions should you choose? (Each correct Answer presents a complete solution. Choose two.)
2.
You area database developer. You plan to design a database solution by using SQL Server 2008. You are creating a database to support the office manager. Your database model has the following structure. The database design has the following business requirements: An employee can be assigned more than one task. Upon completion, thet ask is deleted. When a task is deleted, the associated assignment is deleted. When an employeeis no longer available to complete a task, the employee link to the assignment is replaced with a NULL value. You need to implement the business requirements to maintain data integrity. What shou ld you do?
3.
Your database is 5GB and contains a table named SalesHistory. Sales informationis frequently inserted and updated. You discover that excessive page splitting is occurring. You need to reduce the occurrence of page splitting in the SalesHistory table. Which code segment should you use?
4.
You are creating atable that stores the GPS location of customers. You need to ensure that the table allows you to identify customers within aspecifiedsales boundary and to calculate the distance between a custom er and the nearest store. Which data type should you use?
5.
You are a database developer. You plan to design a database solution byusing SQL Server 2008. The database will contain a table to stage data from an external source.The imported data will contain a field named TransactionTime. The Transaction Time field will use the hh:mm:ss.[m] format (such as 12:55:30.1). You need to select the appropriate data type for the Transaction Time field. You want to achieve this goal by incurring minimum amount of storage cost. Which data type should you use?
6.
You need to create a stored procedure that accepts a table valued parameter named @Customers. Which code segment should you use?
7.
You are a database developer. You plan to design a database solution by using SQL Server 2008. The database will store multilingual data. The database will contain a table that has 100 million rows. The table will contain 1,000 columns that are based on the nvarchar(max) data type. For each column, only2 percent of th e rows will be populated. You need to design the table to optimize storage space. What should you do?
8.
You are creating a function that references a table. You need to prevent the table from being dropped. Which option should you use when you create the function?
9.
You are a database developer. You plan to design a database solution by using SQL Server 2008. The database contains two tables named Supplier and Product. There is a foreign key constraint between the Supplier and Product tables on the SupplierID column. The Supplier table contains a row that has the SupplierID value as 0. The 0 value indicates that the supplier is deleted. Certain transactions delete the supplier records from the Supplier table. You need to ensure that if a supplier is deleted, the SupplierID value in the Product table is set to 0. What should you do?
10.
You have a transaction that uses the repeatable read isolation level. This transaction causes frequent blocking problems. You need to reduce blocking. You also need to avoid dirty reads and non-repeatable reads. Which transaction isolation level should you use?