PC Review


Reply
Thread Tools Rate Thread

Access to MySQL conversion

 
 
bob8000
Guest
Posts: n/a
 
      12th Dec 2006
Can anybody help me to convert an Access query in to a MySQL query
statement PLEASE

Access Query 10a is:
---------------------------------------------------------------------------*----------------------------------

SELECT Customer.Cust_ID, Customer.Name,


EquipmentCategory.Category_Name
FROM EquipmentCategory INNER JOIN (Customer INNER JOIN


Equipment ON Customer.Cust_ID = Equipment.Cust_ID) ON


EquipmentCategory.Category_ID = Equipment.Category_ID
WHERE (((EquipmentCategory.Category_Name)="commercial"));
---------------------------------------------------------------------------*----------------------------



Access Query 10b is:
---------------------------------------------------------------------------*------------------------------

SELECT Customer.Cust_ID, Customer.Name,


EquipmentCategory.Category_Name
FROM EquipmentCategory INNER JOIN


(Customer INNER JOIN Equipment ON


Customer.Cust_ID=Equipment.Cust_ID) ON


EquipmentCategory.Category_ID=Equipment.Category_ID
WHERE


(((EquipmentCategory.Category_Name)<>"Commercial"));


---------------------------------------------------------------------------*------------------



Query 10a just does the oppersite to Query 10b, that is all
NOW Query 10c uses Query 10a and 10b to achive my final query results


---------------------------------------------------------------------------*---------------------

SELECT Query10a.Cust_ID, Query10a.Name,


Query10a.Category_Name
FROM Query10a LEFT JOIN Query10b ON Query10a.Name


= Query10b.Name
WHERE (((Query10b.Name) Is Null));
---------------------------------------------------------------------------*------------------------



So how would I tranfer all that in to a MySQL statement


Thanks


BOB8000

 
Reply With Quote
 
 
 
 
Larry Daugherty
Guest
Posts: n/a
 
      13th Dec 2006
Do you also post your Access issues in the MySQL newsgroups?

--
-Larry-
--

"bob8000" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
Can anybody help me to convert an Access query in to a MySQL query
statement PLEASE

Access Query 10a is:
----------------------------------------------------------------------
-----*----------------------------------

SELECT Customer.Cust_ID, Customer.Name,


EquipmentCategory.Category_Name
FROM EquipmentCategory INNER JOIN (Customer INNER JOIN


Equipment ON Customer.Cust_ID = Equipment.Cust_ID) ON


EquipmentCategory.Category_ID = Equipment.Category_ID
WHERE (((EquipmentCategory.Category_Name)="commercial"));
----------------------------------------------------------------------
-----*----------------------------



Access Query 10b is:
----------------------------------------------------------------------
-----*------------------------------

SELECT Customer.Cust_ID, Customer.Name,


EquipmentCategory.Category_Name
FROM EquipmentCategory INNER JOIN


(Customer INNER JOIN Equipment ON


Customer.Cust_ID=Equipment.Cust_ID) ON


EquipmentCategory.Category_ID=Equipment.Category_ID
WHERE


(((EquipmentCategory.Category_Name)<>"Commercial"));


----------------------------------------------------------------------
-----*------------------



Query 10a just does the oppersite to Query 10b, that is all
NOW Query 10c uses Query 10a and 10b to achive my final query results


----------------------------------------------------------------------
-----*---------------------

SELECT Query10a.Cust_ID, Query10a.Name,


Query10a.Category_Name
FROM Query10a LEFT JOIN Query10b ON Query10a.Name


= Query10b.Name
WHERE (((Query10b.Name) Is Null));
----------------------------------------------------------------------
-----*------------------------



So how would I tranfer all that in to a MySQL statement


Thanks


BOB8000


 
Reply With Quote
 
User
Guest
Posts: n/a
 
      13th Dec 2006
You would probably use nested select statements instead of creating the
intial queries 10a and 10b. Like...

SELECT Query10a.Cust_ID, Query10a.Name, Query10a.Category_Name
FROM (<<first query>>) as Query10a
LEFT JOIN (<<second query>>) as Query10b
ON Query10a.Name= Query10b.Name
WHERE (((Query10b.Name) Is Null));

Does that work in mySQL?

Doug


"bob8000" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
Can anybody help me to convert an Access query in to a MySQL query
statement PLEASE

Access Query 10a is:
---------------------------------------------------------------------------*----------------------------------

SELECT Customer.Cust_ID, Customer.Name,


EquipmentCategory.Category_Name
FROM EquipmentCategory INNER JOIN (Customer INNER JOIN


Equipment ON Customer.Cust_ID = Equipment.Cust_ID) ON


EquipmentCategory.Category_ID = Equipment.Category_ID
WHERE (((EquipmentCategory.Category_Name)="commercial"));
---------------------------------------------------------------------------*----------------------------



Access Query 10b is:
---------------------------------------------------------------------------*------------------------------

SELECT Customer.Cust_ID, Customer.Name,


EquipmentCategory.Category_Name
FROM EquipmentCategory INNER JOIN


(Customer INNER JOIN Equipment ON


Customer.Cust_ID=Equipment.Cust_ID) ON


EquipmentCategory.Category_ID=Equipment.Category_ID
WHERE


(((EquipmentCategory.Category_Name)<>"Commercial"));


---------------------------------------------------------------------------*------------------



Query 10a just does the oppersite to Query 10b, that is all
NOW Query 10c uses Query 10a and 10b to achive my final query results


---------------------------------------------------------------------------*---------------------

SELECT Query10a.Cust_ID, Query10a.Name,


Query10a.Category_Name
FROM Query10a LEFT JOIN Query10b ON Query10a.Name


= Query10b.Name
WHERE (((Query10b.Name) Is Null));
---------------------------------------------------------------------------*------------------------



So how would I tranfer all that in to a MySQL statement


Thanks


BOB8000


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Access to MySQL conversion bob8000 Microsoft Access Forms 0 12th Dec 2006 10:04 AM
MySQL query conversion to MSAccess 2003 query for report BluesPhone Microsoft Access Reports 10 16th Nov 2006 07:25 PM
SQL server to mySql conversion utility Canneloni Microsoft Dot NET 1 6th May 2004 04:35 PM
MySQL Control Center 0.9.4 - A GUI client for MySQL databases. Gordon Darling Freeware 0 29th Dec 2003 08:43 PM
MySql date conversion laura Microsoft Access Form Coding 2 28th Oct 2003 09:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:34 PM.