Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Databases > Comparing 2 tab...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 3688 of 3747
Post > Topic >>

Comparing 2 tables

by m <modhak@[EMAIL PROTECTED] > Mar 27, 2008 at 10:00 PM

Hi All

I need to compare 2 tables ( I need to eliminate 2 columns in the
table while comparing, they are dates and userids which wil be
different. )

Example:

TableA( colA, colB, colC, colD, colE)
TableB( colA, colB, colC, colD, colE)

I need to compare TableA and TableB , for me they are equal if
contents of colA, colB, colC are same , need not compare colD and
colE.

I write jdbc program which reads tables and compare row by row, just I
think it is laborious. Is there a better way of doing this. Please let
me know.

Thanks




 4 Posts in Topic:
Comparing 2 tables
m <modhak@[EMAIL PROTE  2008-03-27 22:00:32 
Re: Comparing 2 tables
David Harper <devnull@  2008-03-28 07:05:54 
Re: Comparing 2 tables
Roedy Green <see_websi  2008-03-28 12:33:00 
Re: Comparing 2 tables
Lew <lew@[EMAIL PROTEC  2008-03-28 22:23:37 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue May 13 23:24:25 CDT 2008.