Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 177
Default Excel query via ODBC, left joins on multiple tables

Using Excel 2003 and Windows XP

In Excel, in a query built in Microsoft Query/ODBC, I bring in information
from about 7 tables from a SQL Server 2005 database. Now I want to add an 8th
table connected to one of the other tables, have all the records that
currently appear still appear and, if a result is present in the 8th table,
display it. If no record is present in the 8th table, leave the cell blank.
Normally, I would do this with a left join. However, because of the number of
tables, MS Query says I can't do that.

Now, I go to another program, SQL Excel, which doesn't complain when I put
the left join statement in but still only returns records IF THERE IS A
RECORD PRESENT IN THE 8th TABLE. Is this a "feature" of ODBC? Is there any
way I can get around it using something built into Excel, using something
free or using something built into Windows? Or do I have to pay for something
to get it done?

Thanks,
Todd
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
odbc error on Excel query into database flowry Excel Discussion (Misc queries) 2 November 6th 08 09:26 PM
how to access databases from excel using ms query and odbc? Nabin Excel Discussion (Misc queries) 0 October 11th 06 07:32 AM
msquery odbc -- excel repeats query on return [email protected] Excel Discussion (Misc queries) 0 April 3rd 06 06:22 PM
Excel query via ODBC cuts values escelinen Excel Discussion (Misc queries) 1 January 23rd 06 05:40 AM
Multiple ODBC Database lik in one MSQUERY query Alain79 Excel Discussion (Misc queries) 0 September 13th 05 12:25 PM


All times are GMT +1. The time now is 05:30 PM.

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

About Us

"It's about Microsoft Excel"