Monthly Archives: January 2014

Question of the Week – 11/1/2014

Question:- Suppose there are two tables A and B and we need to write 3 SQL queries which returns the record set as shown in the below figure. First Query:- In this case, you have to write a SQL Query using SQL JOIN which … Continue reading

Posted in Interview Questions | Tagged | 31 Comments

Answer – Objective Question (In which database temporary tables are created in SQL Server)

Question :- In which database temporary tables are created in SQL Server? 1) User database (where temporary table are defined)     2) Master database     3) TempDB (Correct Answer) 4) Model Database 5) None of the above Answer … Continue reading

Posted in Interview Questions | Tagged | 31 Comments

Answer -Question of the Week – 2/1/2014 – Question 1

Question :- Suppose we have to design a database in which employees can work on multiple projects.There are many designation defined in the organization to which each employee can belongs.   For example, Software engineer, Team lead, Project Manager, Project … Continue reading

Posted in Interview Questions | Tagged | 31 Comments

Answer – Objective Question (Which table is called Heap table in SQL Server)

Question:-    Which table is called Heap table in SQL Server. 1) Table without any indexes 2) Table without any clustered index (Correct Answer) 3) Table without any non clustered Index 4) None of the above Many people attempted this … Continue reading

Posted in Interview Questions | Tagged | 31 Comments

Question of the Week – 2/1/2014 – Question 1

Question :- Suppose we have to design a database in which employees can work on multiple projects.There are many designation defined in the organization to which each employee can belongs.  For example, Software engineer, Team lead, Project Manager, Project lead, … Continue reading

Posted in Interview Questions | Tagged | 32 Comments

Answer – Objective Question (Number of non clustered indexes possible on a Table in SQL Server 2008R2)

Question :-  How many non clustered indexes are possible in a table in SQL Server 2008R2 1)  1 2) 249 3) 999  (Correct answer) 4) None of these Explanation  21 people gives answer to this Question and most of them … Continue reading

Posted in Interview Questions | Tagged | Leave a comment

Answer – Question of the Week – 28/12/2013 – Question 2

Question:- Suppose we have a table named tbl_charactername have only one column say “charactername”. It contains 10 rows. First 5 rows contains “Vivek Johari” and the next 5 rows contains “Abhinav Golwalkar” tbl_charactername ——————— Vivek Johari Vivek Johari Vivek Johari Vivek … Continue reading

Posted in Interview Questions | Tagged | Leave a comment

While loop in SQL server

While loop in SQL server Introduction In While loop, we set a condition for the repeated execution of a Code block. So we use while loop in SQL Server to┬árepeat execution of a SQL Code block or a SQL Statement … Continue reading

Posted in SQL Basic Concepts, SQL Server, SQL While loop | Tagged , , , | 13 Comments