ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Databases  >>  SQL Server
 
 


 

 
 Oracle interview questions  Oracle Interview Questions
 SQL Server interview questions  SQL Server Interview Questions
 MS Access interview questions  MS Access Interview Questions
 MySQL interview questions  MySQL Interview Questions
 Postgre interview questions  Postgre Interview Questions
 Sybase interview questions  Sybase Interview Questions
 DB Architecture interview questions  DB Architecture Interview Questions
 DB Administration interview questions  DB Administration Interview Questions
 DB Development interview questions  DB Development Interview Questions
 SQL PLSQL interview questions  SQL PLSQL Interview Questions
 Databases AllOther interview questions  Databases AllOther Interview Questions
Question
how many type of subquery?
 Question Submitted By :: Rabinmeher
I also faced this Question!!     Rank Answer Posted By  
 
  Re: how many type of subquery?
Answer
# 1
As database developer, you must have ever written 
subqueries in either SQL Server or any other database 
platform. This article will describe shortly about types of 
subquery.

  
A subquery is inner query that will be used by outer query. 
A subquery could return scalar value or a series of value. 
Based on query dependency, a subquery could be self-
contained or correlated one. A self-contained subquery is a 
subquery independent from outer query, and correlated 
subquery is a subquery that is referencing to a row in 
outer query.

  
Self-contained subquery is easier to debug than correlated 
subquery. And it is executed only once whereas correlated 
subquery is executed once for each row of outer query.

  
Sample of self-contained subquery that returns scalar value 
is shown below :

  
Select customerid

From dbo.orders

Where employeeid = (select employeeid from dbo.employees 
where lastname = ‘RAJ’);

  
This query returns customers list whose employee is RAJ.
 
Is This Answer Correct ?    8 Yes 1 No
Rajkumar
 
  Re: how many type of subquery?
Answer
# 2
2
 
Is This Answer Correct ?    4 Yes 1 No
Somu
 
 
 

 
 
 
Other SQL Server Interview Questions
 
  Question Asked @ Answers
 
What is the datatype returned by count(*) Asian-CERC18
What is mean by "fill factor" ? and what is mean by "Index "in sql? Logica-CMG1
How to perfor If the table running time is taking 2hours and table is having 10 rows in it?  1
What are the types of indexes available with SQL Server?  2
What is SQL Profiler what is the use of it? 247Customer2
What is the difference between 2-Tier architecture and 3-Tier architecture Oracle10
Say if we have a table that contains only a single column , say OrderID, which has IDENTITY attribute defined on it. So how can we insert data in this table. I am reframing my question, that how can we make the table to increment the column "OrderID" value several times???  3
What is row by row processing ?  1
What is the difference between having and where clause?  4
what is bit data type? and what are the information that can be stored inside a bit column?  2
Hi Can any one tell me the Good institute to learn SQL esp for Data Base Testing or SQL from scratch to the proficiency level in Hyederabad and facult also. Thankyou well in advance  6
i have table students with fields classname,studname select * from students classname studname 1 xxxxx 1 yyyy 1 zzzz 2 qqqq 2 tttt 3 dsds 3 www i want the output should be No of students in class 1 : 3 No of students in class 2 : 2 No of students in class 3 : 2 HCL2
what is normalization? what is denormalization? Satyam5
Is it possible to allow NULL values in foreign key? I s it possible to use different constraints for the same column in the table (i.e) (id int NOT NULL,UNIQUEUE)  1
What is RAID and what are different types of RAID configurations? Wipro5
Assume,there are three tables in a database, Can i have both primary key and foreign key for each table in the same database?  4
What is the system function to get the current user's user id? TCS3
How do you persist objects, permissions in tempdb  1
What are the two types of concurrency?  2
What's the purpose of Stored Procedure? Wipro4
 
For more SQL Server Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com