LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Query Error? (Works in mySQL)

I have the following query. The point of the query is to select data from a
table where the date is the most recent date.

select * from pax.poa_132 P1 inner join (Select Max(ArchiveDate) as MaxDate
from pax.poa_132)P2 on P1.ArchiveDate = P2.MaxDate and ACCOUNT_ALIAS = '1XA';

This query works in MySql Query broswer.

I am trying to use this query to import data into Excel 2007. I have set up
my odbc connection using MySql ODBC 3.51. When I get to the last step, to
place the data into excel, I have the ability to edit the query. This
pulls up Microsoft Query (which I have never used before).

I click on the SQL button and add in the query above. I get this message:

SQL Query can't be represented graphically. Continue Anyway?

And then this error:

Unknown column 'P2.MaxDate' in 'on clause'

Thanks in advance for any help.

Steve

 
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
how to query for the appearance of a data entry on multiple works. wriggg Excel Discussion (Misc queries) 0 July 31st 06 09:04 PM
Works in Microsoft Query, but not with QueryTables [email protected] Excel Programming 2 July 24th 06 02:17 PM
ATTN: Works wdb files to Excel 2003 converter query SeeAll New Users to Excel 1 July 9th 06 09:28 PM
Make table query works intermittently quartz[_2_] Excel Programming 2 September 14th 05 09:16 PM
formatting results from mysql query Michael J. Malinsky Excel Programming 2 November 6th 03 06:38 PM


All times are GMT +1. The time now is 11:29 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"