Rabu, 21 Desember 2016

Re: [MS_AccessPros] SQLFMM example: SQL not matching Design Grid in Access

 

Jo-


Yes, the only way you can create the recommended JOIN is in SQL view in Microsoft Access.

John Viescas, Author
Effective SQL
SQL Queries for Mere Mortals 
Microsoft Access 2010 Inside Out
Microsoft Access 2007 Inside Out
Microsoft Access 2003 Inside Out
Building Microsoft Access Applications 
(Paris, France)




On Dec 21, 2016, at 3:03 AM, jovaughn@rochester.rr.com [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:



The Query runs correctly when I run the example from the Ch08 (3rd Ed) using MS Access 2013
List employees and the customers for whom they booked an order.

SELECT Customers.CustFirstName, Customers.CustLastName, Employees.EmpFirstName, Employees.EmpLastName, Employees.EmpCity
FROM Customers INNER JOIN Employees ON Customers.CustCity = Employees.EmpCity;

and I see the INNER JOIN in the Query Grid User Interface.

It seems I cannot construct the INNER JOIN from the Query GUI --- it must be 
written in SQL --- is this correct?  Maybe I should have figure this out before Chapter 8, eh?

Here's the code I was able to generate from the Query GUI
SELECT Customers.CustFirstName, Customers.CustLastName, Customers.CustCity, Employees.EmpFirstName, Employees.EmpLastName, Employees.EmpCity, ([CustCity]=[EmpCity]) AS SameCity
FROM Customers, Employees
WHERE (((([CustCity]=[EmpCity]))<0));


which works but does not generate the INNER JOIN.  







__._,_.___

Posted by: John Viescas <johnv@msn.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (4)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.


.

__,_._,___

Tidak ada komentar:

Posting Komentar