Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 Posted / ashna thampi

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 ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is sql server is free?

920


What are cursors stored procedures and triggers?

932


What are rest-style architecture's?

170


Is ssrs support other database except ms sql server?

127


What is the difference between having clause and where clause in sql server?

1025


How to access the inserted record of an event?

988


Explain cdc and sql injection?

909


Can we use where and having clause together?

977


How to filter out duplications in the returning rows in ms sql server?

1064


Which tcp/ip port does the sql server run on? How can it be changed?

990


Tell me what is sql profiler?

976


Explain partitioned view?

1018


Why use view instead of a table?

878


Explain about merge replications?

963


How would you choose between a clustered and a non-clustered index?

914