April 3, 2008 at 12:53 pm
I have the following columns in table TTOr.
Byteid,
Variance,
Distribution,
SUM(Total),
repeatfrequency
I have another table Pur_Tag which has
ByteA,
Variance,
Distribution &
repeatfrequency & this table is joined to TTOR on byte* column.
The problem is TTOR has 1 million rows & Pur_tag has almost 3 million rows.
Now how do I list out the different data values that are not common to each table & also show what data is there in what table.
Also what is the best practice that has low overhead as the query that I have in here is taking lot of time although it is throwing me some output after 10 mins or so.
Please dont ask me my query becasue I cannot copy anything from my query editor as it is running on remote terminal that I cannot highlight. All I can do is just add or delete by using my keyboard.
Thanks for your help !
April 3, 2008 at 1:31 pm
What you're looking for is Joins. Look those up in BOL and you'll have a good start on how to solve this.
- Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
Property of The Thread
"Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon
April 3, 2008 at 2:31 pm
i'm confused by this:
Now how do I list out the different data values that are not common to each table & also show what data is there in what table.
if your tables have 1M and 3M rows, couldn't you wind up having to list thousands of values? and how do you plan to 'show what data is there in what table'. are you summaring it?
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply