Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Data From Two tables using SQL

Hi All,

Is it possible to get data from two tables to a single
sheet using sql?

Both tables do have several same fields but not all.

TIA

Soniya
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Data From Two tables using SQL

Soniya, try using the UNION keyword


select * from Table1 where Field1 = 'criteria'
union
select * from Table2 where Field1 = 'criteria'





You'll find a handy reference to SQL for JET
on
http://www.devguru.com/Technologies/...sql_intro.html


keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"Soniya" wrote:

Hi All,

Is it possible to get data from two tables to a single
sheet using sql?

Both tables do have several same fields but not all.

TIA

Soniya


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Data validation and vlookup over 12 tables of data Joe W[_2_] Excel Discussion (Misc queries) 1 September 11th 09 02:49 AM
Removing Data Tables formed from importing data from Access Andrea Jones Excel Discussion (Misc queries) 0 April 10th 08 12:01 PM
PLEASE ANYONE ... DATA IMPORT EXTERNAL DATA - WEB TABLES Sacs Excel Discussion (Misc queries) 2 January 18th 08 12:51 AM
DATA > TABLE -- 2 variable data tables? efarhat Excel Discussion (Misc queries) 0 August 24th 05 07:29 PM
How to cause a pivot tables to not summarize data - just report the data Greybeard Excel Discussion (Misc queries) 0 July 27th 05 10:21 PM


All times are GMT +1. The time now is 04:17 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"