Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Please Interview Me

Please Interview Me

Scheduled Pinned Locked Moved Database
questiondatabasesql-serveroraclecom
8 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nagy Vilmos
    wrote on last edited by
    #1

    I am having an interview on Friday 25 March. Most of the subject matter I am comfortable with, but my SQL is a bit rusty due to not using it for around 7 years. Now I pose to you denizens to ask me a question. 0. Something that would be likely for an interview, 1. Concerning SQL - restrict it to Oracle or SQL Server, 2. That I can try to answer. I won't use any search, but will try and answer from the thick region of me head. Thank you guys [and gals].


    Panic, Chaos, Destruction. My work here is done. or "Drink. Get drunk. Fall over." - P O'H OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre

    S J C W P 5 Replies Last reply
    0
    • N Nagy Vilmos

      I am having an interview on Friday 25 March. Most of the subject matter I am comfortable with, but my SQL is a bit rusty due to not using it for around 7 years. Now I pose to you denizens to ask me a question. 0. Something that would be likely for an interview, 1. Concerning SQL - restrict it to Oracle or SQL Server, 2. That I can try to answer. I won't use any search, but will try and answer from the thick region of me head. Thank you guys [and gals].


      Panic, Chaos, Destruction. My work here is done. or "Drink. Get drunk. Fall over." - P O'H OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre

      S Offline
      S Offline
      Simon_Whale
      wrote on last edited by
      #2

      SQL Server Question (taken from sql server central question of the day!)

      CREATE TABLE #Money
      (ID INT IDENTITY(1,1) PRIMARY KEY CLUSTERED,
      Date DATETIME,
      Amount INT,)

      SET IDENTITY_INSERT #Money ON
      INSERT INTO #Money(ID,Date,Amount)
      SELECT '1', ' 2/10/2010 ','12' UNION ALL
      SELECT '2', ' 2/11/2010 ','13' UNION ALL
      SELECT '3', ' 2/12/2010 ','14' UNION ALL
      SELECT '4', ' 2/13/2010 ','15' UNION ALL

      SELECT SUM(AMOUNT) FROM #Money

      Will the create statement fail? will the insert statement fail? will the select sum(amount) from #money fail? Possible answers 1. The CREATE TABLE statement will fail, and hence so will all the following sql statements. 2. The INSERT INTO statements will fail and hence so will all the following sql statements 3. The SELECT SUM(Amount) will return a value of 54 4. The SELECT SUM(Amount) .. statement will fail

      As barmey as a sack of badgers Dude, if I knew what I was doing in life, I'd be rich, retired, dating a supermodel and laughing at the rest of you from the sidelines.

      N 1 Reply Last reply
      0
      • S Simon_Whale

        SQL Server Question (taken from sql server central question of the day!)

        CREATE TABLE #Money
        (ID INT IDENTITY(1,1) PRIMARY KEY CLUSTERED,
        Date DATETIME,
        Amount INT,)

        SET IDENTITY_INSERT #Money ON
        INSERT INTO #Money(ID,Date,Amount)
        SELECT '1', ' 2/10/2010 ','12' UNION ALL
        SELECT '2', ' 2/11/2010 ','13' UNION ALL
        SELECT '3', ' 2/12/2010 ','14' UNION ALL
        SELECT '4', ' 2/13/2010 ','15' UNION ALL

        SELECT SUM(AMOUNT) FROM #Money

        Will the create statement fail? will the insert statement fail? will the select sum(amount) from #money fail? Possible answers 1. The CREATE TABLE statement will fail, and hence so will all the following sql statements. 2. The INSERT INTO statements will fail and hence so will all the following sql statements 3. The SELECT SUM(Amount) will return a value of 54 4. The SELECT SUM(Amount) .. statement will fail

        As barmey as a sack of badgers Dude, if I knew what I was doing in life, I'd be rich, retired, dating a supermodel and laughing at the rest of you from the sidelines.

        N Offline
        N Offline
        Nagy Vilmos
        wrote on last edited by
        #3

        0. I'm not sure #Money is a valid table name; but I'll accept it for now. 1. The end of the CREATE statement is invalid, there is an extra comma - Amount INT,), so it and everything else fails. 2. If the CREATE was okay then I think the rest is fine and the SELECT will return 54.


        Panic, Chaos, Destruction. My work here is done. or "Drink. Get drunk. Fall over." - P O'H OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre

        S 1 Reply Last reply
        0
        • N Nagy Vilmos

          I am having an interview on Friday 25 March. Most of the subject matter I am comfortable with, but my SQL is a bit rusty due to not using it for around 7 years. Now I pose to you denizens to ask me a question. 0. Something that would be likely for an interview, 1. Concerning SQL - restrict it to Oracle or SQL Server, 2. That I can try to answer. I won't use any search, but will try and answer from the thick region of me head. Thank you guys [and gals].


          Panic, Chaos, Destruction. My work here is done. or "Drink. Get drunk. Fall over." - P O'H OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre

          J Offline
          J Offline
          Johan Hakkesteegt
          wrote on last edited by
          #4

          Simon's question is a good one, and you can probably expect more than one of that sort of tests if the use of SQL is an integral part of the job. If SQL is just "good to know" for this job, you can expect some simple questions measuring your basic understanding of SQL: - What does USE OUR_COMPANY_LTD_DATABASE do? - What is the difference between UNION and UNION ALL ? - What does COALESCE do ? - What is the difference between INNER JOIN and LEFT OUTER JOIN ? - How will ISNULL() help you in getting reliable results in queries using the SUM() function.

          My advice is free, and you may get what you paid for.

          1 Reply Last reply
          0
          • N Nagy Vilmos

            0. I'm not sure #Money is a valid table name; but I'll accept it for now. 1. The end of the CREATE statement is invalid, there is an extra comma - Amount INT,), so it and everything else fails. 2. If the CREATE was okay then I think the rest is fine and the SELECT will return 54.


            Panic, Chaos, Destruction. My work here is done. or "Drink. Get drunk. Fall over." - P O'H OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre

            S Offline
            S Offline
            Simon_Whale
            wrote on last edited by
            #5

            0. Tables names with # in sql server are temporary tables. 1. I thought the same but sql sever ignores this and creates the table and tested the actual create table statement myself, but dont know why! the correct answer is 54. Explanation: From CAST and CONVERT (Transact-SQL)[^] Implicit Conversions: Implicit conversions are those conversions that occur without specifying either the CAST or CONVERT function. Explicit conversions are those conversions that require the CAST or CONVERT function to be specified. Scroll down to the illustration which shows all explicit and implicit data type conversions that are allowed for SQL Server system-supplied data types. These include xml, bigint, and sql_variant. There is no implicit conversion on assignment from the sql_variant data type, but there is implicit conversion to sql_variant.

            As barmey as a sack of badgers Dude, if I knew what I was doing in life, I'd be rich, retired, dating a supermodel and laughing at the rest of you from the sidelines.

            1 Reply Last reply
            0
            • N Nagy Vilmos

              I am having an interview on Friday 25 March. Most of the subject matter I am comfortable with, but my SQL is a bit rusty due to not using it for around 7 years. Now I pose to you denizens to ask me a question. 0. Something that would be likely for an interview, 1. Concerning SQL - restrict it to Oracle or SQL Server, 2. That I can try to answer. I won't use any search, but will try and answer from the thick region of me head. Thank you guys [and gals].


              Panic, Chaos, Destruction. My work here is done. or "Drink. Get drunk. Fall over." - P O'H OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre

              C Offline
              C Offline
              Corporal Agarn
              wrote on last edited by
              #6

              see http://www.careerqanda.com/index.asp[^]

              1 Reply Last reply
              0
              • N Nagy Vilmos

                I am having an interview on Friday 25 March. Most of the subject matter I am comfortable with, but my SQL is a bit rusty due to not using it for around 7 years. Now I pose to you denizens to ask me a question. 0. Something that would be likely for an interview, 1. Concerning SQL - restrict it to Oracle or SQL Server, 2. That I can try to answer. I won't use any search, but will try and answer from the thick region of me head. Thank you guys [and gals].


                Panic, Chaos, Destruction. My work here is done. or "Drink. Get drunk. Fall over." - P O'H OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre

                W Offline
                W Offline
                Wendelius
                wrote on last edited by
                #7

                And few other collections to enjoy: - SQL Server Interview Questions - Part 1[^] - SQL Server Interview Questions and Answers Complete List Download[^] - SQL SERVER - Data Warehousing Interview Questions and Answers Complete List Download[^]

                The need to optimize rises from a bad design.My articles[^]

                1 Reply Last reply
                0
                • N Nagy Vilmos

                  I am having an interview on Friday 25 March. Most of the subject matter I am comfortable with, but my SQL is a bit rusty due to not using it for around 7 years. Now I pose to you denizens to ask me a question. 0. Something that would be likely for an interview, 1. Concerning SQL - restrict it to Oracle or SQL Server, 2. That I can try to answer. I won't use any search, but will try and answer from the thick region of me head. Thank you guys [and gals].


                  Panic, Chaos, Destruction. My work here is done. or "Drink. Get drunk. Fall over." - P O'H OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre

                  P Offline
                  P Offline
                  Prasanta_Prince
                  wrote on last edited by
                  #8

                  http://guru-code.blogspot.com/[^] Its a very good blog . Select Sqlserver from the tab.

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups