Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Download
Standard view
Full view
of .
Look up keyword
Like this
4Activity
0 of .
Results for:
No results containing your search query
P. 1
70-229 doc

70-229 doc

Ratings:

4.5

(1)
|Views: 256|Likes:
Published by api-3775463

More info:

Published by: api-3775463 on Oct 18, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

05/09/2014

pdf

text

original

I just passed 229 on 11/16 with 840 after failing twice. good luck!!!

1. You are designing a database that will contain customer orders. Customers
will be able to order multiple products each time they place an order. You
review the database design, which is show below:

Customers <----------- Orders <------> Products

CustomerID OrderID ProductID
CompanyName ProductID Description
Address OrderDate UnitPrice
CityQuantity
StateCustomerID

You want to promote quick response times for queries and minimize redundant
data. What should you do? (Each correct answer presents part of the
solution. Choose two)

A. Create a new order table named OrdersDetail. Add OrderID, ProductID, and
Quantity columns to this table.
B. Create a composite PRIMARY KEY constraint on the OrderID and ProductID
columns of the Orders table
C. Remove the ProductID and Quantity columns from the Orders table
D. Create a UNIQUE constraint on the OrderID column of the Orders table.
E. Move the UnitPrice column from the Products table to the Orders table.

Ans:A,C

2. You are a database developer for Proseware,Inc. You are implementing a
database for the database of the company\u2019s human resources department. This
database will store employee information. You create a table named
EmployeeContact that contains the following columns: HomePhone,
BusinessPhone, FaxNumber, and E-mailAddress.

You must ensure that each record contains a value for either the HomePhone
column or the BusinessPhone column. What should you do?

A. Create a rule that disallows null values. Bind the rule to both the
HomePhone and BusinessPhone columns.
B. Create a rule that prevents null values from being entered into both the
HomePhone and BusinessPhone columns. Bind the rule to the table.
C. Add CHECK constraints on the HomePhone and BusinessPhone columns that
prevent null values from being entered into the columns.

D. Create a trigger that counts the number of items entered without a value
in the HomePhone column and then counts the number of items entered without
a value in the BusinessPhone column.
E. Configure the trigger so that if one or more rows are found that meet
these conditions, the trigger will cancel the data modification.
F. Add CHECK constraints on the HomePhone and BusinessPhone columns that
prevent null values from being entered into the HomePhone or BusinessPhone
columns.

Ans: F
was C
reports of new answer 'F"

CS=D
3. You are designing an inventory and shipping database for Contoso,Ltd. You
create the logical database design shown below:

Orders Order Details Products Suppliers
OrderID OrderID ProductID SupplierID
CustomerID ProductID ProductName CompanyName
EmployeeID UnitPrice SupplierID ContactName
OrderDate Quantity CategoryID ContactTitle

RequiredDate QuantityPerUnit Address

SupplierDate UnitPrice City Region
ShipVia UnitsInStock PostalCode
Freight UnitsOnOrder Country
ShipName RecorderLevel Phone
ShipAddress Fax
ShipCity HomePage

You must ensure that the referential integrity of the database is
maintained. Which three types of constraints should you apply to your
design? (Each correct answer presents part of the solution. Choose three)

A. Create a FOREIGN KEY constraint on the Products table that references the
Order Details table
B. Create a FOREIGN KEY constraint on the Products table that references the
Suppliers table
C. Create a FOREIGN KEY constraint on the Orders table that references the
Order Details table
D. Create a FOREIGN KEY constraint on the Order Details table that

references the Order table
E. Create a FOREIGN KEY constraint on the Order Details table that
references the Products table
F. Create a FOREIGN KEY constraint on the Suppliers table that references
the Products table

Ans:B,D,E
4. You are the database developer for a publishing company. You create the
following stored procedure to report the year-to-date sales for a particular

book title:
CREATE PROCEDURE get_sales_for_title
%title varchar(80), @ytd_sales int OUTPUT
AS
SELECT @ytd_sales = ytd_sales
FROM titles
WHERE title = @title
IF @@ROWCOUNT = 0
RETURN(-1)
ELSE
RETURN(0)

You are creating a script that will execute this stored procedure. If the
stored procedure executes successfully, it should report the year-to-date
sales for the book title. If the stored procedure fails to execute, it
should report the following message:
\u201cNo Sales Found\u201d

How should you create the script?

A. DECLARE @retval int,
DECLARE @ytd int,
EXEC get_sales_for_title \u2018Net Etiquette\u2019, @ytd,
IF @retval < 0,
PRINT \u2018No sales found\u2019,

Activity (4)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads
vkrm14 liked this
jlecout2293 liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->