Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Sybtax Question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00578860
Message ID:
00578866
Vues:
18
See corrections below in bold

>What's wrong here?
>
>The first SQL works fine. I get totals for all records, grouped
>on the BoIdBase field.
>
>I want to add those counts as a new column into the LineTemp table,
>which has an Id equivilent to BoIdBase called BoId.
>
>  SELECT COUNT(DocId) AS Cleared, BoIdBase ;
>    FROM Details ;
>    WHERE NOT EMPTY(AirTime) AND ;
>      RecType = "A" ;
>    GROUP BY BoIdBase ;
>    INTO CURSOR DetTemp
>
>
>  SELECT LineTemp.*, DetTemp.*;
>    FROM LineTemp;
>    INNER JOIN DetTemp ON LineTemp.BoId = DetTemp.BoIdBase ;
>    WHERE NOT EMPTY(AirTime) AND ;
>      RecType = "A" ;
>    GROUP BY BoIdBase ;
>    INTO CURSOR LineDetTemp
>
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform