Interview Questions

  • Hi..I had an interview and had few questions:

    Can anyone please help me finding out answers for the below questions?

    1) Design table to track phone?

    2) how to troubleshoot high volume data?

    3)How to identify performance issues.

    4)Which statement is running slow, how to find it.

    5) How to Optimize stored procedures ?

    6)Suppose I hv 3 SP. SP A, SP B and SP C. SP A calls SP B and SP B calls SP C. If there is a problem with SP C then how we gonna use TRY and CATCH?

    Thanks,

    komal

  • Questions 1 and 5 do not have enough details to provide an answer. I would be asking for a lot of clarity about what those mean. 2, 3 and 4 are not questions that have an answer. They are intended to start a discussion about how to do those things. This is more of a role playing technique than anything else. If you can discuss a number of things you would do that is what they are after. Of all of those I find the "how do you optimize a procedure" to be the most outlandish of them all. The interviewer wants to see if you know that the question is loaded. There is not a formula for this. It is more of an art than a science. Optimizing queries takes the culmination of all your knowledge in one location. Even worse is that you might optimize a query today and in a year you go back and realize a number of improvements you could make because you have learned new things.

    _______________________________________________________________

    Need help? Help us help you.

    Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.

    Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.

    Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
    Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
    Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
    Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/

  • design table to track phone? :hehe::crazy:

    what kind of question is that?

  • Sorry the questions is like this: Design a table, how to track phone call.

  • komal145 (12/4/2012)


    Sorry the questions is like this: Design a table, how to track phone call.

    I stand by my comment that this entirely too vague to provide an answer. What does that mean? Do you want to know from the perspective of a cell phone provider? billing? etc. Track what? Do you need to know which towers the calls is handled from? Do you need to know the total time spent on a given providers network? Or do you want to track a phone call from the perspective of one end of the phone call. Maybe from the perspective of a amusement park you want to track the phone call so you can monitor traffic flow of pedestrians. Maybe you just want to know the number called and the call duration. See my point?

    _______________________________________________________________

    Need help? Help us help you.

    Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.

    Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.

    Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
    Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
    Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
    Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/

  • Sorry to be a bit off-topic but this thread flashed me back to an interview I had years ago. The 'technical' questions about troubleshooting were surprisingly specific and detailed. After more than a few - all along the same basic problem - I stopped the interview and asked why all the questions centered around one type of issue. After a few moments of dead air, they finally admitted they had a problem with one of their production databases and was looking for ways to fix it.

    I left shortly after.

  • komal145 (12/4/2012)


    Hi..I had an interview and had few questions:

    Can anyone please help me finding out answers for the below questions?

    1) Design table to track phone?

    It totally deppends on the business requirements means what data they want to store.

    2) how to troubleshoot high volume data?

    3)How to identify performance issues.

    4)Which statement is running slow, how to find it.

    5) How to Optimize stored procedures ?

    For above question as Sean suggested these are topic for discussion and you can find out lot of articles on little google search.

    6)Suppose I hv 3 SP. SP A, SP B and SP C. SP A calls SP B and SP B calls SP C. If there is a problem with SP C then how we gonna use TRY and CATCH?

    Thanks,

    komal

    May be I did not understand the question because what does mean how to use TRY and CATCH or what is the relation of having child procs with TRY-CATCH.

  • Your Name Here (12/5/2012)


    Sorry to be a bit off-topic but this thread flashed me back to an interview I had years ago. The 'technical' questions about troubleshooting were surprisingly specific and detailed. After more than a few - all along the same basic problem - I stopped the interview and asked why all the questions centered around one type of issue. After a few moments of dead air, they finally admitted they had a problem with one of their production databases and was looking for ways to fix it.

    I left shortly after.

    That is a great story. Hilarious! Its a shame that they wasted your time but you got a good story out of it.

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • Alan.B (12/5/2012)


    Your Name Here (12/5/2012)


    Sorry to be a bit off-topic but this thread flashed me back to an interview I had years ago. The 'technical' questions about troubleshooting were surprisingly specific and detailed. After more than a few - all along the same basic problem - I stopped the interview and asked why all the questions centered around one type of issue. After a few moments of dead air, they finally admitted they had a problem with one of their production databases and was looking for ways to fix it.

    I left shortly after.

    That is a great story. Hilarious! Its a shame that they wasted your time but you got a good story out of it.

    I can hear the IT manager yelling down the hall, "Hey Bob, we have another issue on the production database, schedule some more interviews!"

    ______________________________________________________________________________
    How I want a drink, alcoholic of course, after the heavy lectures involving quantum mechanics.

  • komal145 (12/4/2012)


    Hi..I had an interview and had few questions:

    Can anyone please help me finding out answers for the below questions?

    1) Design table to track phone?

    2) how to troubleshoot high volume data?

    3)How to identify performance issues.

    4)Which statement is running slow, how to find it.

    5) How to Optimize stored procedures ?

    6)Suppose I hv 3 SP. SP A, SP B and SP C. SP A calls SP B and SP B calls SP C. If there is a problem with SP C then how we gonna use TRY and CATCH?

    Thanks,

    komal

    These are questions that have a very broad scope and are part of the basic skill set required of the person holding the Role of "DBA". They don't have simple answers and they require actual experience doing all of those things. I apologize for the way this is going to sound, but if you can't answer these questions, then you're simply not ready to be a DBA.

    Use this as an opportunity to become ready to be a DBA. Buy a copy of the "Developer Edition" and use the questions above as a part of your study guide. Books Online and Google should become close friends. Once you dig into the complexity of how to do the things in the questions you've been asked, you'll understand why it would be difficult for someone on this forum to answer all of your questions to your satisfaction because it would involve the long process of actually teaching you how to be a good DBA.

    You should also Google for what a DBA actually is responsible for by searching for DBA job descriptions. Whether you pursue getting certified or not is up to you but the certification books identified by Microsoft are pretty good teaching tools so you might want to invest in a couple of those, as well. Google for Microsoft Certification SQL Server to find more information on those.

    Last, but not least, don't expect free love on these types of questions. Like I said, they form a part of the very backbone of becoming a DBA. Becoming a real DBA isn't easy. It's going to take a lot of work on your part. If you believe that you'll enjoy the job and the sometimes very long hours and taking "the heat" when something goes wrong, then it'll all be worthwhile. Just don't expect it to happen overnight because there's a lot to it. You should probably aim first at being an SQL Server Developer and get really good at T-SQL, indexes, and have a really good grasp on all of the idfferent types of objects.

    --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.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • I know , it's kind of DBA questions and they are excepting the Developer to answer it and I am a Newbie to SQL server ,and never faced such situations in realtime enviornment.

  • komal145 (12/7/2012)


    I know , it's kind of DBA questions and they are excepting the Developer to answer it and I am a Newbie to SQL server ,and never faced such situations in realtime enviornment.

    Did you tell them that you're new to SQL and are a developer? Or does your CV claim experience that you don't have?

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    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
  • Sorry to be blunt but if you're asked these question in a job interview and you cannot address them (after some followup questions because some of them are vague), than this is probably not the job for you.

    As pointed out above, some of the questions are about broad topics that are not best addressed in a forum reply. If you are interested in learning these topics, you can look through the Articles section of this site, where some of these topics are described in great detail.

  • komal145 (12/7/2012)


    I know , it's kind of DBA questions and they are excepting the Developer to answer it and I am a Newbie to SQL server ,and never faced such situations in realtime enviornment.

    It depends. These types of questions can mean different things based on the postion beig offered. I assumed they were meant for a DBA position. For a T-SQL Developer position, the answers may change a bit but the questions are still quite valid.

    I'm with Gail, though. Did you explain that you were "new" to SQL Server before the interview? And what was the position actually for? Developer or DBA?

    --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.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • If they are looking for a junior developer you *may* be ok, but I am hard pressed to believe you are ready to become a DBA which is one the most highly trusted positions in an organization. I agree with Jeff, take time to get the knowledge and experience then you can be ready.

    CEWII

Viewing 15 posts - 1 through 15 (of 15 total)

You must be logged in to reply to this topic. Login to reply