Jump to content

Make Sql Tryit Editor handle complex queries


Brevis

Recommended Posts

I am not sure whether this is best described as a bug report, a suggestion for improvment, or as a manifestation of my lack of experience with SQL.

I have the impression that the SQL Editor cannot handle queries that exceed a certain degree of complexity.

For example, the following SQL query

 

Select Customers.CustomerName, Customers.CustomerID, Employees.FirstName, Employees.LastName
from Customers, Employees
INNER JOIN Orders ON Orders.CustomerID = Customers.CustomerID
INNER JOIN Orders ON Orders.EmployeeID = Employees.EmployeeID
WHERE Orders.EmployeeID = 4;

 

gives my the following error:

Syntax error (missing operator) in query expression 'Orders.CustomerID = Customers.CustomerID INNER JOIN Orders ON Orders.EmployeeID = Employees.EmployeeID'.

When I use only a singe JOIN, things work as expected.

I assume that the query itself is correct (I have seen similar things on other sites), so my suggestion is to improve the editor to handle more complex queries. Do you have any control over tghe feature set of that editor?

Best regards

Brevis

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...