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   To Refer this Site to Your Friends   Click Here
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
i want to join two queries....and i want to run them as one 
after another that is want output of first query then 
second , then again output of first query then second and 
so on...
 Question Submitted By :: Mayu
I also faced this Question!!     Rank Answer Posted By  
 
  Re: i want to join two queries....and i want to run them as one after another that is want output of first query then second , then again output of first query then second and so on...
Answer
# 1
declare @i int
set @i=1
while @i < 100
begin
if (@i)%2 =1
begin
select * from TABLE1
end
else
select * from TABLE2
set @i=@i + 1
end
 
Is This Answer Correct ?    2 Yes 1 No
Ashna Thampi
 
  Re: i want to join two queries....and i want to run them as one after another that is want output of first query then second , then again output of first query then second and so on...
Answer
# 2
DECLARE @i int
SET @i=0
While @i<10
Begin
 if @i%2=0
  BEGIN
     SELECT * FROM Table1
  END
 ELSE
  BEGIN
     SELECT * FROM Table2
 END
END
 
Is This Answer Correct ?    0 Yes 0 No
Vrinda
 
 
 

 
 
 
Other SQL Server Interview Questions
 
  Question Asked @ Answers
 
What is the use of DBCC commands?  1
how to give input dynamically to a insert statement in sqlserver HCL2
How to delete particular value in the column of a table.Is it possible or not?if possible give it as in query.  4
1.How to check the backup file details if we do not have access to that folder 2.how to check the backup file size without connecting to the folder IBM1
how to delete duplicate rows from table in sql server HCL8
how to dispaly a particular row details from a given table  1
How to restart SQL Server in single user mode? How to start SQL Server in minimal configuration mode?  1
How to retrieve data from log files in SQL SERVER ?????  1
difference between sql server2000 and sql server2005 KPMG1
How do you load large data to the SQL server database?  2
After using delete statement in sql query to delete some records...to retrieve the deleted records we can get using rollback command but till that where it stores means particular location name i need....(after deleting and rollback ) iGate2
can anyone explain me the concept of Serialization in Detail and Clear? plz its urgent i have interview on friday (15th feb)  1
Hi SQL gurus, i am working for an MNC... My team is having a problem in sql server. when user slects date prompts from jan 1st to april 30, it should display all months data like : jan aa feb bb mar cc but when it comes to april its taking data like : jan aa feb bb mar cc apr dd...and so on means its taking data again from jan to april which we dont want. we want the data only april month as we are getting jan, feb and mar... can any one write the code to relsove the issue please would be greatful if you can send to shiva_sans@yahoo.co.in and also please send your email also ...so that we will be in touch for any kind of queries ... Thanks a lot in Advance !!!  1
I have a table in which phno is one of the columns.i do have some values in tht phno column.i need to update phno column values with 0(zero) as prefix.give me a correct solution plz... Value-Labs5
wat will be the sql query to extract only last 3 records from table supose table hving thousands for records  16
What is the difference between a local and a global variable?  3
i need some interview questions on sql server developer plz any onee send some links.  1
what is the difference between group and having give an example with query and sample output  2
write the query for taking database backup in sql Logica-CMG4
WHAT IS UNIQUE IDENTIFIER DATA TYPE? Sparsh1
 
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