Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Update Sql Command
Message
From
10/03/2007 10:28:40
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01202518
Message ID:
01202522
Views:
19
This message has been marked as a message which has helped to the initial question of the thread.
Perhaps VFP doesn't like "traiters"? <g>

Seriously, with a GROUP BY, every field must be either a criterion for the GROUP BY clause, or have a sum(), avg(), max(), etc., applied to it. Otherwise, VFP doesn't know, when grouping several records, from which record to select the data, and this is what provokes the error message in newer versions.

>Hi all,
>
>
>Here is my command.
>
>
>
>SET ENGINEBEHAVIOR 90
>
>UPDATE AgendaPhar;
>    SET ltransfert = ;
>    NVL( ( SELECT E.ltransfert ;
>    FROM  Traiter T INNER JOIN Etats E ON  T.Iresidentid = E.Iresidentid AND T.iid = AgendaPhar.itraiterId;
>    INNER JOIN DatesFiltred D ON D.ddate BETW E.ddebut  AND EVL( E.dfin , vp_date );
>    WHERE E.ltransfert = .T. ) , .F. )
>
>
>I want that my subquery is single.( one record )
>
>If i try a Group by claus , it is not possible ...
>What can i do ?
>
>
>
>Thank in advance
>
>bernhart
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform