Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 1234»»»

Few tricky Questions about SQL Server 2008 that I came across... Expand / Collapse
Author
Message
Posted Tuesday, January 10, 2012 2:31 PM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Monday, March 18, 2013 8:43 PM
Points: 19, Visits: 93
Few Questions about SQL Server 2008 that I came across.

Q: Which of the following allows for the truncation of a transaction log?
A. Transaction logs are truncated when you use SQL Profiler.
B. Transaction logs are truncated when you use the following syntax: truncate table A
C. Transaction logs are truncated when you backup your database.
D. You can not backup transaction log.

Q: Which of the following statements about unique Constraints are TRUE?
A. You can have only one unique constraint applied to a table.
B. Unique constraints can be used to establish a link between two tables.
C. You can only have one column assigned to a unique constraint.
D. If a primary key was already assigned to a table, the unique constraint would identify a special column used for indexing,

Q: Which of the following is an improved performance feature that uses bitmap filters for selecting minimal rows with queries?
A. Table partitions
B. Star Join
C. Where clause
D. Outer Join

Q: Using a join in your select statement instead of a where clause is more efficient because the join pulls less data into your working memory.
A. True
B. False

Q: Full text indexes can be backed up and restored with the rest of the database due to the ...
A. ...new index organization system
B. ...overall size of the index getting smaller.
C. ...index becoming a part of the transaction logs.
D. ...indexes no longer being stored outside of the database.

Q. Which of the following statements, if used for creating a new login id, will result in an error?
A. CREATE LOGIN [HumanResources/JohnSmith] FROM WINDOWS
B. CREATE LOGIN AndrewWalters WITH PASSWORD '!^%&7', DEFAULT DATABASE = HR
C. CREATE LOGIN John WITH PASSWORD '*&!@*&'
D. CREATE LOGIN [HumanResources/Jim] FROM WINDOWS, DEFAULT DATABASE=CRM

Q. Which of the following statements can be used to provide sorted result set based in the CustomerName column?
A. SELECT ROW_NUMBER() AS RN, CustomerName from Customers order by CustomerName
B. SELECT ROW_NUMBER() OVER (ORDER BY CustomerName) AS RN, CustomerName FROM Customers
C. SELECT ROW_NUMBER() (ORDER BY CustomerName) AS RN, from Customers
D. SELECT ROW_NUMBER() AS RN, CustomerName from Customers
Post #1233541
Posted Tuesday, January 10, 2012 2:33 PM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Yesterday @ 4:07 PM
Points: 2,691, Visits: 3,371
Why are these tricky? Seems more like you didn't want to do your homework yourself... All of these answers can be found by using google or searching SSC.

Thanks,

Jared
SQL Know-It-All

How to post data/code on a forum to get the best help - Jeff Moden
Post #1233544
Posted Tuesday, January 10, 2012 2:46 PM


SSC-Insane

SSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-Insane

Group: General Forum Members
Last Login: Wednesday, July 16, 2014 12:52 AM
Points: 21,385, Visits: 9,601
SQLKnowItAll (1/10/2012)
Why are these tricky?


Because a lot of the right answers are actually wrong or incomplete.

I always hated those super beginner questions.
Post #1233562
Posted Tuesday, January 10, 2012 2:49 PM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Yesterday @ 4:07 PM
Points: 2,691, Visits: 3,371
Ninja's_RGR'us (1/10/2012)
SQLKnowItAll (1/10/2012)
Why are these tricky?


Because a lot of the right answers are actually wrong or incomplete.

I always hated those super beginner questions.


Just follow the multiple choice pattern... ABBACADABBA


Thanks,

Jared
SQL Know-It-All

How to post data/code on a forum to get the best help - Jeff Moden
Post #1233569
Posted Tuesday, January 10, 2012 3:04 PM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: 2 days ago @ 1:11 PM
Points: 7,019, Visits: 12,909
On some questions the answer would be "E: none of the above / it depends" (or C, respectively)



Lutz
A pessimist is an optimist with experience.

How to get fast answers to your question
How to post performance related questions
Links for Tally Table , Cross Tabs and Dynamic Cross Tabs , Delimited Split Function
Post #1233580
Posted Tuesday, January 10, 2012 3:10 PM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Monday, March 18, 2013 8:43 PM
Points: 19, Visits: 93
I agree Lutz, but I am just curious to see what you all think.

Post #1233583
Posted Tuesday, January 10, 2012 3:15 PM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Yesterday @ 4:07 PM
Points: 2,691, Visits: 3,371
JagWalia (1/10/2012)
I agree Lutz, but I am just curious to see what you all think.



Ignoring the fact that these questions and answers are not worded correctly, it is clear with the multiple choice design that they were not developed to see what people "think." Its like asking

Q. 1+1=?
a.1
b.2
c.3
d.4

and then asking our "opinions." You will not succeed if you do not find out these answers on your own.


Thanks,

Jared
SQL Know-It-All

How to post data/code on a forum to get the best help - Jeff Moden
Post #1233587
Posted Tuesday, January 10, 2012 3:17 PM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: 2 days ago @ 1:11 PM
Points: 7,019, Visits: 12,909
Why don't you tell us what you think and why you think the questions are tricky and/or what your answer would be?

I think it's fair enough to have a discussion about your answers (edit: and reasons why you think it's the correct answer) rather than you just using our thoughts...

After all: we haven't been asked the questions originally...




Lutz
A pessimist is an optimist with experience.

How to get fast answers to your question
How to post performance related questions
Links for Tally Table , Cross Tabs and Dynamic Cross Tabs , Delimited Split Function
Post #1233588
Posted Tuesday, January 10, 2012 3:21 PM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Yesterday @ 4:54 PM
Points: 42,434, Visits: 35,488
JagWalia (1/10/2012)
Q: Which of the following allows for the truncation of a transaction log?
A. Transaction logs are truncated when you use SQL Profiler.
B. Transaction logs are truncated when you use the following syntax: truncate table A
C. Transaction logs are truncated when you backup your database.
D. You can not backup transaction log.


None of the above. They're all wrong.

Q: Which of the following statements about unique Constraints are TRUE?
A. You can have only one unique constraint applied to a table.
B. Unique constraints can be used to establish a link between two tables.
C. You can only have one column assigned to a unique constraint.
D. If a primary key was already assigned to a table, the unique constraint would identify a special column used for indexing,

None of the above. They're all wrong.

Q: Using a join in your select statement instead of a where clause is more efficient because the join pulls less data into your working memory.
A. True
B. False


The day someone shows me a join in a select clause.... (select statement is the entire thing, select, from, where, group by, having, order by)

Q. Which of the following statements, if used for creating a new login id, will result in an error?
A. CREATE LOGIN [HumanResources/JohnSmith] FROM WINDOWS
B. CREATE LOGIN AndrewWalters WITH PASSWORD '!^%&7', DEFAULT DATABASE = HR
C. CREATE LOGIN John WITH PASSWORD '*&!@*&'
D. CREATE LOGIN [HumanResources/Jim] FROM WINDOWS, DEFAULT DATABASE=CRM


Here's a suggestion: run them and see...

Q. Which of the following statements can be used to provide sorted result set based in the CustomerName column?
A. SELECT ROW_NUMBER() AS RN, CustomerName from Customers order by CustomerName
B. SELECT ROW_NUMBER() OVER (ORDER BY CustomerName) AS RN, CustomerName FROM Customers
C. SELECT ROW_NUMBER() (ORDER BY CustomerName) AS RN, from Customers
D. SELECT ROW_NUMBER() AS RN, CustomerName from Customers


None of them.

If that was a sample test or some training material that you bought, get a refund.



Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1233589
Posted Tuesday, January 10, 2012 3:29 PM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Monday, March 18, 2013 8:43 PM
Points: 19, Visits: 93
GilaMonster, thanks for replying those questions. I got these questions prior to the interview. I can see login ID question is a syntax issue and I can find the correct one on the net but rest of them are something I am not sure of.
Post #1233596
« Prev Topic | Next Topic »

Add to briefcase 1234»»»

Permissions Expand / Collapse