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 123»»»

SQL Server Interview Questions And Answers Expand / Collapse
Author
Message
Posted Sunday, January 30, 2011 10:57 PM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Tuesday, September 16, 2014 8:32 AM
Points: 72, Visits: 158
Hi,

I want to initiate this topic because I feel we should share our interview question experience so it will help others to face the interview.
I know that good developers don’t need interview questions. But in general I feel most of the interviewers stuck around some common questions or some common answers and if you are not aware about these questions even though you are very good in your current organization or doing good work you will not be selected.

So better to read those questions also

I have created the blog for the interview questions as per my understanding and interviews faced.
its http://sqlserverquest.blogspot.com

I hope people will keep posting more interview questions with solution. will discuss the interview questions and multiple approaches for the same.


Randheer Singh

----------------------------------
CheckOut My Blog for SQL Server Realated Topics and Interview Questions for SSIS , SSRS and TSQL.

http://SQLServerQuest.blogspot.com
Post #1055982
Posted Monday, January 31, 2011 1:14 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 7:41 AM
Points: 13,251, Visits: 11,030
There is nothing wrong with preparing yourself for an interview (you should be), but in my opinion, not knowing all the answers is not that bad.
If you can show the interviewer that you have good knowledge of the product and that you know how to research "the gaps of your knowledge", you should be fine.

It is impossible to know everything about SQL Server (except for a few exceptional people), so there is no shame in not knowing an answer (however, it is a shame not knowing any answer ).
If you don't know the answer, write the question down and send an e-mail later to the interviewer with the correct answer and how you researched the problem. I know some people who got the job after this technique.




How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?

Member of LinkedIn. My blog at LessThanDot.

MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1056012
Posted Monday, January 31, 2011 2:01 AM


SSC-Forever

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

Group: General Forum Members
Last Login: Today @ 8:51 AM
Points: 40,176, Visits: 36,575
It's very easy for a good interviewer to tell the difference between someone who's memorised answers and someone who know the topic.

Don't exaggerate your skills.
Don't lie to the interviewer
Don't be afraid to say 'I don't know' (but have an idea how you'd find out)

p.s. I used to ask an 'unanswerable' question in interviews, just to see if the candidate would admit he didn't know or if he'd lie to me.



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 #1056023
Posted Monday, January 31, 2011 2:16 AM


SSC-Forever

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

Group: General Forum Members
Last Login: Today @ 8:51 AM
Points: 40,176, Visits: 36,575
p.s. You might want to spend some time validating and expanding the answers to your interview questions. Some are totally wrong, many are so vague as to not be answers.

eg: (from http://sqlserverquest.blogspot.com/2010/12/sql-server-interview-questions-and_21.html)

Difference between delete and truncate?
Data deleted with truncate command cannot be roll back one the transaction is committed. While data deletion with delete command can be roll back even if the transaction is committed.

That's incorrect on both points.

What are indexes in SQL Server?
Indexes are used to search the data in the database in well-mannered approach. Data can be searched by user without going into entire database.


Errr.....



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 #1056032
Posted Thursday, February 3, 2011 12:18 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Tuesday, September 16, 2014 8:32 AM
Points: 72, Visits: 158
How sql server retrieves the next identity value for delete command used in table as deleted rows are moved to log.
i just want to understand the actual process.


Randheer Singh

----------------------------------
CheckOut My Blog for SQL Server Realated Topics and Interview Questions for SSIS , SSRS and TSQL.

http://SQLServerQuest.blogspot.com
Post #1057849
Posted Thursday, February 3, 2011 12:26 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 7:41 AM
Points: 13,251, Visits: 11,030
parmar.randheer11 (2/3/2011)
How sql server retrieves the next identity value for delete command used in table as deleted rows are moved to log.
i just want to understand the actual process.


I don't really see what IDENTITY has to do with the DELETE command, except that it can create gaps in your sequence.




How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?

Member of LinkedIn. My blog at LessThanDot.

MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1057855
Posted Thursday, February 10, 2011 7:14 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Tuesday, September 16, 2014 8:32 AM
Points: 72, Visits: 158
Scenario Based Questions

Suppose you have the table having identity column.
You delete the last row from the table which having identity value suppose 10 and then insert a new row in table. The new identity value which will get inserted in the table will be the next value i.e. 11.
So the question is that from where sql server reads the old identity value 10 (as data already deleted) and generates the new identity 11 accordingly to insert into table


SQL Server interview Questions and Answers
http://sqlserverquest.blogspot.com


Randheer Singh

----------------------------------
CheckOut My Blog for SQL Server Realated Topics and Interview Questions for SSIS , SSRS and TSQL.

http://SQLServerQuest.blogspot.com
Post #1061945
Posted Thursday, February 10, 2011 7:24 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Tuesday, April 26, 2011 8:38 AM
Points: 215, Visits: 104
One very common question asked by interviewers is:

CAST versus CONVERT in SQL Server
Post #1061952
Posted Thursday, February 10, 2011 7:27 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 9:31 AM
Points: 5,162, Visits: 12,010
SQLSmasher (2/10/2011)
One very common question asked by interviewers is:

CAST versus CONVERT in SQL Server


That is not a question!



Help us to help you. For better, quicker and more-focused answers to your questions, consider following the advice in this link.

When you ask a question (and please do ask a question: "My T-SQL does not work" just doesn't cut it), please provide enough information for us to understand its context.
Post #1061957
Posted Thursday, February 10, 2011 7:30 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Tuesday, April 26, 2011 8:38 AM
Points: 215, Visits: 104
It is quite good question for initial telephonic interview. And you can give simple answer by
1. CONVERT is SQL speicific but CAST is ANSI standarised
2. CONVERT deal nicely with datetime using format, which is missing from CAST
Post #1061962
« Prev Topic | Next Topic »

Add to briefcase 123»»»

Permissions Expand / Collapse