Jump to content

Multiple Tables


paultaylor01

Recommended Posts

Hi all.

 

I've got 2 tables:

 

Table A

Table B

 

Both tables contain different fields, together with a date field (which has the same name, call it datefield for arguments sake). The tables are not linked or joined in any way.

 

Is it possible to extract and list the contents of the 2 tables, combined, and sorted in datefield sequence?

 

Cheers

Paul

Link to comment
Share on other sites

Thanks Fenway.

 

However, let's assume the 2 tables vary widely in terms of number of fields, field-types etc (as they do in this example). Table A has about 20 fields, Table B has about 5. The only 'common' field is the date field which is what I want the output sorted by.

 

I'm reading between the lines that UNION isn't applicable in this case? Is there any other solution?

 

Cheers

Paul

Link to comment
Share on other sites

Well, you can specify a column list to match the # and type... but in your case, it sounds like you want them all? If so, you might have to get the "super-ordering" first just with id, table and date, and then feed that back... rather ugly.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.