A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Comparing two tables for missing columns



 
 
Thread Tools Display Modes
  #1  
Old February 20th, 2007, 08:36 PM posted to microsoft.public.access.queries
Princy
external usenet poster
 
Posts: 1
Default Comparing two tables for missing columns

Hello,
I am more accustomed to Oracle.... am still thinking in terms of Oracle...
Please help me with this issue.
I am trying to compare two tables A and B...
I want only the column names of the missing column on the other database...
in other words I want
A intersection B for column names &
B intersection A for column names...
I am not interested in the data that is present in those columns.
Then I need to add / alter the tables A and B to make them similar. Eg:
A B
-------------------------------
Name Name
Class Section
County County
State District
Country Country

I need
A intersection B = Section, District
B intersection A = Class, State
and then make them
A B
-------------------------------
Name Name
Class Class
Section Section
County County
District District
State State
Country Country

Please help.
Thanks
Shree
  #2  
Old February 21st, 2007, 02:34 AM posted to microsoft.public.access.queries
Jerry Whittle
external usenet poster
 
Posts: 4,732
Default Comparing two tables for missing columns

Unfortunately Access doesn't have any views like DBA_TAB_COLS where this
would be easy. You'll need to do some coding. Here's a place that might help:

http://www.freevbcode.com/ShowCode.asp?ID=184
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.


"Princy" wrote:

Hello,
I am more accustomed to Oracle.... am still thinking in terms of Oracle...
Please help me with this issue.
I am trying to compare two tables A and B...
I want only the column names of the missing column on the other database...
in other words I want
A intersection B for column names &
B intersection A for column names...
I am not interested in the data that is present in those columns.
Then I need to add / alter the tables A and B to make them similar. Eg:
A B
-------------------------------
Name Name
Class Section
County County
State District
Country Country

I need
A intersection B = Section, District
B intersection A = Class, State
and then make them
A B
-------------------------------
Name Name
Class Class
Section Section
County County
District District
State State
Country Country

Please help.
Thanks
Shree

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:33 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.