MySQL Forums
Forum List  »  Microsoft Access

sql from access-pls analyze this error
Posted by: sunil kattathara
Date: July 06, 2006 08:12AM

Hi,
This is the error i recieved [phpmyadmin] when when tried to qry table in MySql
with sql from a working access db

Error

SQL query: Documentation

SELECT OrderDetails.OrderID, OrderDetails.DateSold, OrderDetails.SalePrice, Query1.Referedby1, [SalePrice] * 0.04 AS ReferredBy1Comm
FROM OrderDetails
INNER JOIN Query1 ON OrderDetails.ContactAutoID = Query1.ContactAutoID
WHERE (
(
(
Query1.Referedby1
) IS NOT NULL
AND (
Query1.Referedby1
) >0
)
);

MySQL said: Documentation
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '[SalePrice]*0.04 AS ReferredBy1Comm
FROM OrderDetails INNER JOIN Query1 ON Orde' at line 1

not that wellversed in sql...pls help
sunil

Options: ReplyQuote


Subject
Views
Written By
Posted
sql from access-pls analyze this error
2377
July 06, 2006 08:12AM


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.