Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Analytical Interview Questions


Analytical Interview Questions

Author
Message
Christopher Stobbs
Christopher Stobbs
SSCommitted
SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)

Group: General Forum Members
Points: 1574 Visits: 2232
Hi All,

My company is looking to hire new SQL develoeprs.
What are some good analytical questions that we can ask a candidate to get an idea of how they think or work through processes?

Thanks in afvance
Chris

----------------------------------------------
Try to learn something about everything and everything about something. - Thomas Henry Huxley

w00t
Posting Best Practices
Numbers / Tally Tables

SQL-4-Life
rameshchandra.a
rameshchandra.a
Forum Newbie
Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)

Group: General Forum Members
Points: 7 Visits: 19
Hi,

Below iam giving some interview Questions on Sql Server

1.Referentail integrity
2.Types of Indexes(Perfermence Wise Which is better)
3.Types of Joins
4.What are temperory tables.(perfermence wise cursors r Temperory Tables which are better)
5.What is CTE(Common Table Expression) in Sql Server.
6.What are Derived Tables.
7.What are Views.
8.Diff between Stored Procedures and Stored Functions.
9.Types of triggers.
10.Types of Cursors.


so on .,......
RC
Christopher Stobbs
Christopher Stobbs
SSCommitted
SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)

Group: General Forum Members
Points: 1574 Visits: 2232
Thanks for that.

I'm actually look for more of an Analytical question rather than tech skills questions...

For example giving them puzzles to see what there approach to problem solving is like.

----------------------------------------------
Try to learn something about everything and everything about something. - Thomas Henry Huxley

w00t
Posting Best Practices
Numbers / Tally Tables

SQL-4-Life
Mayank Khatri
Mayank Khatri
SSCommitted
SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)

Group: General Forum Members
Points: 1811 Visits: 1692
For SQL Programming/Analytical questions Some of the standard ones are:
1) How to Find top 3 maximum values in a column (ANS using TOP clause with ASC)
2) Reverse the characters of a name and print them out (If name is Jack -> Then output shall be kcaJ)
3) Write a query to Find and eliminate duplicate values (i.e. one sol', would be to use Group BY, HAVING COUNT(*)>1 Clause)
4) Print results from two tables having uncommon values using JOINS(If TabA has 1,2,3,4 Values and TabB has Values 2,3,4,5,6 only 1 and 6 should be the output)(This would demonstrate knowledge of JOINS)
Loner
Loner
SSCrazy
SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)

Group: General Forum Members
Points: 2914 Visits: 3324
There are two rooms separating by a wall, one room has three lamps, the one one has three switches, can you tell how to find out which switch is for which lamp if you only allow to look at other room once. (Question from Bill Gates, he said if anyone can answer this question in five minutes, he would hire that person.) So far I asked many people this question, only one guy could answer this question within 5 minutes, he was a geek though.
RBarryYoung
RBarryYoung
SSCrazy Eights
SSCrazy Eights (9.4K reputation)SSCrazy Eights (9.4K reputation)SSCrazy Eights (9.4K reputation)SSCrazy Eights (9.4K reputation)SSCrazy Eights (9.4K reputation)SSCrazy Eights (9.4K reputation)SSCrazy Eights (9.4K reputation)SSCrazy Eights (9.4K reputation)

Group: General Forum Members
Points: 9436 Visits: 9517
Loner (7/11/2008)
There are two rooms separating by a wall, one room has three lamps, the one one has three switches, can you tell how to find out which switch is for which lamp if you only allow to look at other room once. (Question from Bill Gates, he said if anyone can answer this question in five minutes, he would hire that person.) So far I asked many people this question, only one guy could answer this question within 5 minutes, he was a geek though.


Well, first time that I have heard this one (honest). Here is what I would do: turn the first switch on, turn the second switch off, and disassemble the third switch and wire a disconnect timer into it, set it for one minute, and turn the switch on.

Then go to the Lamp Room and wait 1 minute. The lamp that was on the whole time is switch 1, the lamp that was off the whole time is switch 2, and the one that was on but turned off is switch 3.

-- RBarryYoung, (302)375-0451 blog: MovingSQL.com, Twitter: @RBarryYoung
Proactive Performance Solutions, Inc.
"Performance is our middle name."
Mark Shvarts 1
Mark Shvarts 1
Old Hand
Old Hand (390 reputation)Old Hand (390 reputation)Old Hand (390 reputation)Old Hand (390 reputation)Old Hand (390 reputation)Old Hand (390 reputation)Old Hand (390 reputation)Old Hand (390 reputation)

Group: General Forum Members
Points: 390 Visits: 441
If you subscribe to SQL Server Magazine, they have very interesting puzzles almost every month by author Itzik Ben Gun. I like them, I could solve just few of them.
Loner
Loner
SSCrazy
SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)

Group: General Forum Members
Points: 2914 Visits: 3324
Well, according to Bill Gates, the answer was:
1. Turn on the first switch, wait 20 minutes.
2. Turn on the second switch.
3. Go to the other room, the lighted lamp that was really hot belonged to the first switch, the lighted lamp that was not hot belonged to the second switch, the other lamp that was not lighted belonged to the third switch.
YeshuaAgapao
YeshuaAgapao
Say Hey Kid
Say Hey Kid (713 reputation)Say Hey Kid (713 reputation)Say Hey Kid (713 reputation)Say Hey Kid (713 reputation)Say Hey Kid (713 reputation)Say Hey Kid (713 reputation)Say Hey Kid (713 reputation)Say Hey Kid (713 reputation)

Group: General Forum Members
Points: 713 Visits: 211
My company's interviews are almost purely knowledge-interrogation. Some candidates have literally walked out or reverted to a bitter attitude when getting stumped on easy-to-moderate questions.


1) How to Find top 3 maximum values in a column (ANS using TOP clause with ASC)
2) Reverse the characters of a name and print them out (If name is Jack -> Then output shall be kcaJ)
3) Write a query to Find and eliminate duplicate values (i.e. one sol', would be to use Group BY, HAVING COUNT(*)>1 Clause)
4) Print results from two tables having uncommon values using JOINS(If TabA has 1,2,3,4 Values and TabB has Values 2,3,4,5,6 only 1 and 6 should be the output)(This would demonstrate knowledge of JOINS)


My company regularly asks questions like these. Haven't heard about anything of the #2 type being asked (string manipulation). My boss doesn't like candidates that knows too much about cursors though.


1.Referentail integrity
2.Types of Indexes(Perfermence Wise Which is better)
3.Types of Joins
4.What are temperory tables.(perfermence wise cursors r Temperory Tables which are better)
5.What is CTE(Common Table Expression) in Sql Server.
6.What are Derived Tables.
7.What are Views.
8.Diff between Stored Procedures and Stored Functions.
9.Types of triggers.
10.Types of Cursors.


These get asked a lot.



Jeff Moden
Jeff Moden
SSC-Forever
SSC-Forever (44K reputation)SSC-Forever (44K reputation)SSC-Forever (44K reputation)SSC-Forever (44K reputation)SSC-Forever (44K reputation)SSC-Forever (44K reputation)SSC-Forever (44K reputation)SSC-Forever (44K reputation)

Group: General Forum Members
Points: 44994 Visits: 39880
rameshchandra.a (7/11/2008)
4.What are temperory tables.(perfermence wise cursors r Temperory Tables which are better)
If a WHILE loop is involved, then each will suck as bad as the other

5.What is CTE(Common Table Expression) in Sql Server.
It helps people who don't know how to write T-SQL. Tongue

8.Diff between Stored Procedures and Stored Functions.
One is real, the other is not... they're called "User Defined Functions"...Wink

10.Types of Cursors.
Two types... good maintenance cursors that control setbased processes written by a DBA... and bad. Hehe


--Jeff Moden

RBAR is pronounced ree-bar and is a Modenism for Row-By-Agonizing-Row.
First step towards the paradigm shift of writing Set Based code:
     Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column.
Although they tell us that they want it real bad, our primary goal is to ensure that we dont actually give it to them that way.
Although change is inevitable, change for the better is not.
Just because you can do something in PowerShell, doesnt mean you should. Wink

Helpful Links:
How to post code problems
How to post performance problems
Forum FAQs
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search