Ask a Question related to ASP Database, Design and Development.
-
Lord Merlin #1
How do I compare two tables?
How do I compare the contents of two tables, to see what doesn't exist in
the one table?
Something like "select company.name, company_scores.company_name from
company, company_scores where company.name not in
company_scores.company_name" ?
--
Kind Regards
Rudi Ahlers
+27 (82) 926 1689
Greater love has no one than this, that he lay down his life for his friends
(John 15:13).
Lord Merlin Guest
-
Compare 2 PDF
Hi, is there any way to automate the comparison of two PDFs from outside Acrobat? e.g. I mark 2 PDFs, right-click offers me COMPARE and after... -
compare
How can I stop a function in PHP? When comparing data I want to stop the function on a hit. Function compare($data) { For... -
compare two tables?
How do I compare the contents of two tables, to see what doesn't exist in the one table? Someting like "select company.name,... -
Compare strings
Hi, I'm trying to see if a certain string matches a predefined string so I've tried: -------------- If txtCondition3 = "NO THEFT COVER unless... -
Compare 2 tables efficiently.
Hi, I have received the challenge to compare a table and a view. What I need to do is to check on certain columns if all entries in view A are in... -
Bob Barrows [MVP] #2
Re: How do I compare two tables?
Lord Merlin wrote:
What database?> How do I compare the contents of two tables, to see what doesn't
> exist in the one table?
>
> Something like "select company.name, company_scores.company_name from
> company, company_scores where company.name not in
> company_scores.company_name" ?
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Bob Barrows [MVP] Guest
-
Aaron [SQL Server MVP] #3
Re: How do I compare two tables?
You could use a LEFT JOIN, but you'll need to provide more information.
What database are you using, what version? What are the keys in the tables?
--
[url]http://www.aspfaq.com/[/url]
(Reverse address to reply.)
"Lord Merlin" <SPAM_lordmerlin@bonzai.org.za_SPAM> wrote in message
news:ccs9ol$ral$1@ctb-nnrp2.saix.net...> How do I compare the contents of two tables, to see what doesn't exist in
> the one table?
>
> Something like "select company.name, company_scores.company_name from
> company, company_scores where company.name not in
> company_scores.company_name" ?
Aaron [SQL Server MVP] Guest
-
CST #4
Re: How do I compare two tables?
Take the table with the most records and do something like this:
select t1.name, t1.company_name
from company t1 left outer join
company_scores t2 on t1.name = t2.company_scores
w/o more info. this is the best I can do for you.
"Lord Merlin" <SPAM_lordmerlin@bonzai.org.za_SPAM> wrote in message news:<ccs9ol$ral$1@ctb-nnrp2.saix.net>...> How do I compare the contents of two tables, to see what doesn't exist in
> the one table?
>
> Something like "select company.name, company_scores.company_name from
> company, company_scores where company.name not in
> company_scores.company_name" ?
>
> --
>
>
> Kind Regards
> Rudi Ahlers
> +27 (82) 926 1689
>
> Greater love has no one than this, that he lay down his life for his friends
> (John 15:13).CST Guest



Reply With Quote

