324 Part I EXAM PREPARATION APPLY YOUR KNOWLEDGE
Monday, August 10th, 2009324 Part I EXAM PREPARATION APPLY YOUR KNOWLEDGE You need to find all the FeatherIDs for each BirdName. Which of the following queries will do the job? A. select BirdName, FeatherID from birds b inner join birdfeathers bf on b.BirdID = bf.birdid B. select BirdName, FeatherID from birds b left join birdfeathers bf on b.BirdID = bf.birdid C. select BirdName, FeatherID from birds b right join birdfeathers bf on b.BirdID = bf.birdid D. select BirdName, FeatherID from birds b cross join birdfeathers bf on b.BirdID = bf.birdid 4. You re doing asset management for a small business. You need to figure out how many laptops, how many desktops, and the total number of computers in the company. Here s the table where the data is stored: create table PCAsset ( AssetID int, PCType char(1), — L or D, Laptop or Desktop AcquireDate datetime ) Which of the following queries will do the job? A. select AssetID, PCType from PCAsset group by AssetID B. select PCType, Count(*) from PCAsset group by PCType with rollup C. Select PCType, count(*) from PCAsset compute by PCType D. Select PCType, count(*) from PCAsset compute group by pctype with rollup 5. You need to query some data on a temporary remote server for a one-time report. Which of the following functions is the best to use? A. OPENQUERY() B. OPENROWSET() C. Linked Servers D. OPENXML() 6. You need to send an XML rowset to a parts supplier for your business that produces radio kits. The rowset should contain a parts list for your order for next week. The supplier has provided you with a schema you must use. Which of the following FOR XML options will enable you to conform to his schema? A. FOR XML RAW, XMLDATA B. FOR XML AUTO, BINARY BASE64 C. FOR XML EXPLICIT D. FOR XML AUTO 7. There s a performance problem on one of your SQL Servers that you use to process XML. After a period of time processing XML data, the server s memory utilization is very high and the server won t allow any more XML statements to be prepared. Which of the following is the most likely cause for the problem? A. There are cursors in the Transact-SQL batches that aren t deallocating properly. B. The XML that is being parsed is not well formed. C. The server has a hardware problem. D. The XML strings are not being properly removed after preparation and use.
For high quality website hosting services please check cheap web hosting website.