Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sql question
Message
From
31/07/2004 20:24:35
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00929771
Message ID:
00929925
Views:
8
How about
SELECT date,MAX(price) as Price FROM mytable GROUP BY date INTO CURSOR myCursor
>Suppose you ahve a table like the one below and you want to use a select statement to
>make another table that includes only
>a) the highest prices for each date
>b) but if there is only 1 entry for a date and the price is 0, it includes that date too
>Is there a way to do this with an SQL statement?
>Thanks STEve
>______ ____ __
>number
>of
>record date price
>______ ____ __
>1 1/1 0
>2 1/1 7
>3 1/3 0
>4 1/3 8
>5 1/5 0
>6 1/8 0
>7 1/9 0
>8 1/9 8
Previous
Reply
Map
View

Click here to load this message in the networking platform