Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Derived Tables

Author  Topic 

Nageswar9
Aged Yak Warrior

600 Posts

Posted - 2008-12-31 : 04:11:42
Can Any One Suggest that is there any case where we can use except,union all or intersect in Derive Tables.

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-12-31 : 04:14:36
yup. you can use union all, execpt,... inside derived tables. some of cases are where you want to get records from two tables and merge them onto third table, or get those records which are in one table not in other,...
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-12-31 : 04:15:00
See suggestions made here
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=116987

for uses of UNION ALL in a derived table.



E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page

raky
Aged Yak Warrior

767 Posts

Posted - 2008-12-31 : 04:17:51
Hi,

Sure you can use except,union all or intersect in Derive Tables.

Be cool...
Go to Top of Page

Nageswar9
Aged Yak Warrior

600 Posts

Posted - 2008-12-31 : 04:18:55
Ok, Thanks visakh,Peso
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-12-31 : 04:23:54
welcome Nageswar
Go to Top of Page
   

- Advertisement -