Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GROUP BY clause difference between VFP & MSSQL
Message
De
15/09/2000 15:36:42
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00416688
Message ID:
00417136
Vues:
19
Yes. The important thing to note is that they alias the table in the main part of the select.

PF

>I guess category (i.e. grouping field) is jobid, right?
>
>
>>The standard way in SQL to find the data that corresponds to MIN/MAX is to use a correlated sub-query.
>>
>>The example I have is:
>>
>>
>>select
>>  jobid,
>>  status,
>>  supervisorid
>> from jobprogress m
>> where statusdate =
>>  (select max(statusdate)
>>   from jobprogress
>>   where jobid = m.jobid)
>>
>>
>>
>>The is the typical way to select 1 row for a given ID if there are multiple rows for each ID with a date for each row.
>>
>>PF

(On an infant's shirt): Already smarter than Bush
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform