SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Analytical Interview Questions


Analytical Interview Questions

Author
Message
Christopher Stobbs
Christopher Stobbs
SSCertifiable
SSCertifiable (5.5K reputation)SSCertifiable (5.5K reputation)SSCertifiable (5.5K reputation)SSCertifiable (5.5K reputation)SSCertifiable (5.5K reputation)SSCertifiable (5.5K reputation)SSCertifiable (5.5K reputation)SSCertifiable (5.5K reputation)

Group: General Forum Members
Points: 5476 Visits: 2233
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
SSC Rookie
SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)

Group: General Forum Members
Points: 25 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
SSCertifiable
SSCertifiable (5.5K reputation)SSCertifiable (5.5K reputation)SSCertifiable (5.5K reputation)SSCertifiable (5.5K reputation)SSCertifiable (5.5K reputation)SSCertifiable (5.5K reputation)SSCertifiable (5.5K reputation)SSCertifiable (5.5K reputation)

Group: General Forum Members
Points: 5476 Visits: 2233
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
Hall of Fame
Hall of Fame (3.1K reputation)Hall of Fame (3.1K reputation)Hall of Fame (3.1K reputation)Hall of Fame (3.1K reputation)Hall of Fame (3.1K reputation)Hall of Fame (3.1K reputation)Hall of Fame (3.1K reputation)Hall of Fame (3.1K reputation)

Group: General Forum Members
Points: 3050 Visits: 1760
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
SSCertifiable
SSCertifiable (6.4K reputation)SSCertifiable (6.4K reputation)SSCertifiable (6.4K reputation)SSCertifiable (6.4K reputation)SSCertifiable (6.4K reputation)SSCertifiable (6.4K reputation)SSCertifiable (6.4K reputation)SSCertifiable (6.4K reputation)

Group: General Forum Members
Points: 6386 Visits: 3364
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
SSC-Dedicated
SSC-Dedicated (34K reputation)SSC-Dedicated (34K reputation)SSC-Dedicated (34K reputation)SSC-Dedicated (34K reputation)SSC-Dedicated (34K reputation)SSC-Dedicated (34K reputation)SSC-Dedicated (34K reputation)SSC-Dedicated (34K reputation)

Group: General Forum Members
Points: 34770 Visits: 9518
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
Ten Centuries
Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)

Group: General Forum Members
Points: 1404 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
SSCertifiable
SSCertifiable (6.4K reputation)SSCertifiable (6.4K reputation)SSCertifiable (6.4K reputation)SSCertifiable (6.4K reputation)SSCertifiable (6.4K reputation)SSCertifiable (6.4K reputation)SSCertifiable (6.4K reputation)SSCertifiable (6.4K reputation)

Group: General Forum Members
Points: 6386 Visits: 3364
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
Ten Centuries
Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)

Group: General Forum Members
Points: 1297 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 Guru
SSC Guru (213K reputation)SSC Guru (213K reputation)SSC Guru (213K reputation)SSC Guru (213K reputation)SSC Guru (213K reputation)SSC Guru (213K reputation)SSC Guru (213K reputation)SSC Guru (213K reputation)

Group: General Forum Members
Points: 213883 Visits: 41978
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.
If you think its expensive to hire a professional to do the job, wait until you hire an amateur. -- Red Adair

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