Advertisement

05.06.2008 at 05:16AM PDT, ID: 23379146
[x]
Attachment Details

What is wrong with this SQL statment?

Asked by jppinto in Microsoft Visual Basic.Net

I've the following SQL statment to retrieve some fields from 2 Access database tables (Carros and Concerns). I'm getting an error about the Data_Audit field saying that I've tryed to execute a query that doesn't include the expression specified "Data_Audit" as part of the agregation. (don't mind the translation because I'm translating the error message from Portuguese version!).

What is wrong with this SQL statment?

Thanks,

João PintoStart Free Trial
1:
sSQL = "SELECT Carros.Kenn, Carros.Pontos_Area, Data_Audit, Sum(Concerns.Pontos) AS PontosInseridos FROM Carros INNER JOIN Concerns ON Carros.Kenn = Concerns.Kenn GROUP BY Carros.Kenn, Carros.Pontos_Area"
 
Loading Advertisement...
 
[+][-]05.06.2008 at 05:18AM PDT, ID: 21506566

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Visual Basic.Net
Sign Up Now!
Solution Provided By: Thomasian
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_EXPERT_20070906