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...
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / vrinda
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 | 1 No |
What is cube dimension? : sql server analysis services, ssas
WHAT OPERATOR PERFORMS PATTERN MATCHING?
2 Answers CarrizalSoft Technologies, CTS,
what are candidate key, alternate key and composite key? : Sql server database administration
How to create a view on an existing table in ms sql server?
What are sub-queries? Give example? In which case sub-queries are not feasible?
What is the difference between push and pull subscription? : sql server replication
How should i optimize the time for execution of stored procedure having single input and many output from the different tables?
Which command is used for user defined error messages?
How to get a list of columns in a view using "sys.columns" in ms sql server?
What is difference between delete & truncate commands?
How many nested transaction can possible in sql server?
What is sql server 2000 work load governor?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)