A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Syntax error in SQL query



 
 
Thread Tools Display Modes
  #1  
Old November 15th, 2008, 05:58 PM posted to microsoft.public.access.tablesdbdesign
Bren Pierce[_2_]
external usenet poster
 
Posts: 3
Default Syntax error in SQL query

I'm getting a Syntax error (missing operator) in query expression,
‘where_Fact_Orders.Transport_Days 3’.
  #2  
Old November 15th, 2008, 06:05 PM posted to microsoft.public.access.tablesdbdesign
Ken Snell \(MVP\)
external usenet poster
 
Posts: 2,506
Default 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  
Old November 15th, 2008, 07:58 PM posted to microsoft.public.access.tablesdbdesign
Bren Pierce[_2_]
external usenet poster
 
Posts: 3
Default 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  
Old November 15th, 2008, 10:02 PM posted to microsoft.public.access.tablesdbdesign
Ken Snell \(MVP\)
external usenet poster
 
Posts: 2,506
Default 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

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:14 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.