Author |
Topic |
pravin14u
Posting Yak Master
246 Posts |
Posted - 2008-04-22 : 10:23:54
|
Hi All,I am doing a UNION of 8 views(with 3 million rows in each view approx). I am sure that there is NO DUPLICATE data between the views. SO specifying a UNION ALL would be better than specifying a UNION in this case?Thanks!Prakash.PThe secret to creativity is knowing how to hide your sources! |
|
spirit1
Cybernetic Yak Master
11752 Posts |
Posted - 2008-04-22 : 10:26:13
|
yes._______________________________________________Causing trouble since 1980blog: http://weblogs.sqlteam.com/mladenpSSMS Add-in that does a few things: www.ssmstoolspack.com |
 |
|
X002548
Not Just a Number
15586 Posts |
|
pravin14u
Posting Yak Master
246 Posts |
Posted - 2008-04-22 : 10:33:39
|
I am doing a Select *,1 from View1Union allSelect *,2 from View2 etc., So I am sure that wont be any dups!Yes - i am creating a view from Views!Prakash.PThe secret to creativity is knowing how to hide your sources! |
 |
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2008-04-22 : 10:34:43
|
I bet the 8 source views derives from same table. E 12°55'05.25"N 56°04'39.16" |
 |
|
X002548
Not Just a Number
15586 Posts |
|
pravin14u
Posting Yak Master
246 Posts |
Posted - 2008-04-22 : 11:54:50
|
okay let me explain the scenario,We are migrating a SQL 2000 Analysis Services to SSAS. The existing design has 8 different partitions(filled through 8 different views) for last 8 quarters. The calculations for each quarter differs and hence we have 8 different views.Now I could have tried bringing in all the data together but we dont have the time for it. So instead of specifying 8 different fact tables in SSAS, I am trying to bring all the data inside the view and then specify a slicer condition. I am not sure if my explantion makes sense but I can explain in detail if needed.Thanks for your replies!Prakash.PThe secret to creativity is knowing how to hide your sources! |
 |
|
vital
Starting Member
12 Posts |
Posted - 2008-04-23 : 01:51:18
|
hi all whats diffecult about inner join and union(all)?are they like same things?thanks. |
 |
|
pravin14u
Posting Yak Master
246 Posts |
Posted - 2008-04-23 : 01:57:17
|
Please go through basics of JOINS. UNION and JOINS are entirely different concepts.Prakash.PThe secret to creativity is knowing how to hide your sources! |
 |
|
|