If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Syntax error in SQL query
I'm getting a Syntax error (missing operator) in query expression,
‘where_Fact_Orders.Transport_Days 3’. |
#2
|
|||
|
|||
Syntax error in SQL query
Without seeing the entire SQL statement, I can only guess that this WHERE
clause snippet should be this: where Fact_Orders.Transport_Days 3 -- Ken Snell MS ACCESS MVP http://www.accessmvp.com/KDSnell/ "Bren Pierce" wrote in message ... I'm getting a Syntax error (missing operator) in query expression, 'where_Fact_Orders.Transport_Days 3'. |
#3
|
|||
|
|||
Syntax error in SQL query
Thanks Ken:
Here's the SQL statement SELECT DISTINCTROW Dim_Shipping_Company.Shipping_Company_Name, Fact_Orders.Order_Num, Fact_Orders.Order_Shipped_Date, Fact_Orders.Delivery_Date, Fact_Orders.Transport_Days, 1 AS Order_Count FROM Dim_Shipping_Company INNER JOIN Fact_Orders ON Dim_Shipping_Company.Shipping_Company_ID = Fact_Orders.Shipping_Company_ID GROUP BY Dim_Shipping_Company.Shipping_Company_Name, Fact_Orders.Order_Num, Fact_Orders.Order_Shipped_Date, Fact_Orders.Delivery_Date, Fact_Orders.Transport_Days, 1; "Ken Snell (MVP)" wrote: Without seeing the entire SQL statement, I can only guess that this WHERE clause snippet should be this: where Fact_Orders.Transport_Days 3 -- Ken Snell MS ACCESS MVP http://www.accessmvp.com/KDSnell/ "Bren Pierce" wrote in message ... I'm getting a Syntax error (missing operator) in query expression, 'where_Fact_Orders.Transport_Days 3'. |
#4
|
|||
|
|||
Syntax error in SQL query
Your SQL statement does not contain a WHERE clause? Please explain how the
'where_Fact_Orders.Transport_Days 3' text string corresponds to this SQL statement, and the context in which you're using this text string. -- Ken Snell MS ACCESS MVP http://www.accessmvp.com/KDSnell/ "Bren Pierce" wrote in message ... Thanks Ken: Here's the SQL statement SELECT DISTINCTROW Dim_Shipping_Company.Shipping_Company_Name, Fact_Orders.Order_Num, Fact_Orders.Order_Shipped_Date, Fact_Orders.Delivery_Date, Fact_Orders.Transport_Days, 1 AS Order_Count FROM Dim_Shipping_Company INNER JOIN Fact_Orders ON Dim_Shipping_Company.Shipping_Company_ID = Fact_Orders.Shipping_Company_ID GROUP BY Dim_Shipping_Company.Shipping_Company_Name, Fact_Orders.Order_Num, Fact_Orders.Order_Shipped_Date, Fact_Orders.Delivery_Date, Fact_Orders.Transport_Days, 1; "Ken Snell (MVP)" wrote: Without seeing the entire SQL statement, I can only guess that this WHERE clause snippet should be this: where Fact_Orders.Transport_Days 3 -- Ken Snell MS ACCESS MVP http://www.accessmvp.com/KDSnell/ "Bren Pierce" wrote in message ... I'm getting a Syntax error (missing operator) in query expression, 'where_Fact_Orders.Transport_Days 3'. |
Thread Tools | |
Display Modes | |
|
|