August 26, 2008 at 7:04 am
Hi Team,
TableA has (id, name,val)
TableB has (id,access)
I need id,name,val,access.... I have done a merge join between these tables so that, On inner join
am getting the id,name,val,access ... Is it correct ?
My problem is, I am getting lot of duplicates and I need to avoid those duplicates by providing distinct condition.
How can we achieve this?
I have tried sort task but, it will do a full blockage... Any help please?
Regards,
Venkatesan Prabu .J
http://venkattechnicalblog.blogspot.com/
Thanks and Regards,
Venkatesan Prabu, 😛
My Blog:
http://venkattechnicalblog.blogspot.com/
August 26, 2008 at 7:12 am
Select TableA.ID,TableA .Name,Val,access
from TableA,TableB
Where TableA .id = TableB.Id
Thanks!
August 26, 2008 at 5:56 pm
Sir,
Do you think I dont know this query to fetch the data from two tables.
I have posted it in SSIS and I need some input in SSIS.
Regards,
Venkatesan Prabu .J
SQL Server Microsoft Most Valuable Professional
Thanks and Regards,
Venkatesan Prabu, 😛
My Blog:
http://venkattechnicalblog.blogspot.com/
August 27, 2008 at 1:26 am
The sort task is the only stock component that can do a, well, sort.
There are other tasks out there that you can buy (nSort for one) that are better. But you have to pay for them.
If the stock Sort is really a problem, write your own with script component.
Add your key to a hash table. If key exists, throw the row away.
Cheers,CrispinI can't die, there are too many people who still have to meet me!It's not a bug, SQL just misunderstood me!
August 27, 2008 at 1:26 am
Use execute sql task component in control flow if you only need result set coming from this query or
use look up table make table b as lookup if you need data flow task..
Thanks!
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply