Access SQL statement to MySQL
Posted by:
Mark M
Date: December 11, 2010 02:20PM
I am about to migrate from MS Access to MySQL. Here's a SQL statement that causes problems:
SELECT *
FROM (aatblAnschriften LEFT JOIN SUBSELECT_AATEST ON aatblAnschriften.AnsID = SUBSELECT_AATEST.AnsID) LEFT JOIN aaCountries ON aatblAnschriften.countryID = aaCountries.countryID
WHERE aatblAnschriften.AdatID = MMColParam2 AND ans_online = 1
ORDER BY test_rcvd DESC
Here's the SUBSELECT statement:
SELECT *
FROM aaTest LEFT JOIN aastatus ON aaTest.statusID = aastatus.statusID
WHERE (((aaTest.[test_rcvd]) In (Select max(test_rcvd) from aaTest WHERE test_online = 1 group by Ansid)) AND ((aaTest.statusID)<>4));
Can you help me migrating it? I am not sure how to migrate subselects, plus testing the subselect only statement, I get many error messages.
Your help is much appreciated,
Thanks, Markus
Subject
Views
Written By
Posted
Access SQL statement to MySQL
3159
December 11, 2010 02:20PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.