Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GROUP BY clause difference between VFP & MSSQL
Message
From
15/09/2000 13:55:39
 
 
To
15/09/2000 13:43:39
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00416688
Message ID:
00417066
Views:
17
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
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform