PrepAway - Latest Free Exam Questions & Answers

Category: 70-433 (v.1)

Exam 70-433: TS: Microsoft SQL Server 2008, Database Development (update October 11th, 2015)

What result should you expect?

You work for a company that provides marketing data to other companies.
You have the following TransactSQL
statement:
DECLARE @CustomerDemographics XML
SET @CustomerDemographics=N’
<CustomerDemographics>
<Customer CustomerID=”1″ Age=”21″ Education=”High School”>
<IsCoffeeDrinker>0</IsCoffeeDrinker>
</Customer>
<Customer CustomerID=”2″ Age=”27″ Education=”College”>
<IsCoffeeDrinker>1</IsCoffeeDrinker>
<IsFriendly>1</IsFriendly>
</Customer>
<Customer CustomerID=”3″ Age=”35″ Education=”Unknown”>

<IsCoffeeDrinker>1</IsCoffeeDrinker>
<IsFriendly>1</IsFriendly>
</Customer>
</CustomerDemographics>’
DECLARE @OutputAgeOfCoffeeDrinkers XML
SET @OutputAgeOfCoffeeDrinkers = @CustomerDemographics.query(‘
for $output in /child::CustomerDemographics/child::Customer[
( child::IsCoffeeDrinker[1] cast as xs:boolean )]
return
<CoffeeDrinkingCustomer>
{ $output/attribute::Age \}
</CoffeeDrinkingCustomer>’)
SELECT @OutputAgeOfCoffeeDrinkers
You need to determine the result of the query.
What result should you expect?

Which code segment should you use?

You have a table named Stores that has an XML column named OpenHours. This column contains
the opening and closing times.
<hours dayofWeek=“Monday” open=”8:00” closed=”18:00” />
<hours dayofWeek=“Tuesday” open=”8:00” closed=”18:00” />

<hours dayofWeek=“Saturday” open=”8:00” closed=”18:00” />
You need to write a query that returns a list of stores and their opening time for a specified day.
Which code segment should you use?

Which query should you use?

You have the following XML document that contains Product information.
DECLARE @prodList xml =’
<ProductList xmlns=”urn:Wide_World_Importers/schemas/Products”>
<Product Name=”Product1″ Category=”Food” Price=”12.3″ />
<Product Name=”Product2″ Category=”Drink” Price=”1.2″ />
<Product Name=”Product3″ Category=”Food” Price=”5.1″ />

</ProductList>’;
You need to return a list of products that contains the Product Name, Category, and Price of each
product.
Which query should you use?

Which query should you write?

You have a table named Products.Product. The table has columns ProductID, Name, Size, and
Category.
You have a variable named @XML with following XML value:
<Root>
<Category Name=”Socks” />
<Category Name=”Pants” />
<Category Name=”Shirts” />
</Root>
You are tasked to write a query that lists the products in Products.Product that match the categories
listed
in the XML document.
You need to write a query to accomplish the task.
Which query should you write?

Which catalog view should you use?

Your company exchanges information with other companies by using XML and Web services. Your
manager asks you to remove a schema collection that is no longer used. Before dropping the
schema,
you should confirm that it is no longer in use.
You need to use a catalog view to determine if the schema collection is being used. Which catalog
view
should you use?


Page 12 of 15« First...1011121314...Last »