Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is it possible in one Select Statement?
Message
From
03/02/2002 11:27:32
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00614551
Message ID:
00614555
Views:
19
>Hi
>I have a table with 3 fields: Date, Supplier and Days ( number of days . Is it possible, in one select statement, to group the number of days by supplier, but as a percentage within a range, i.e:
>
>Supplier Name    1-2 days    3-6 days    7+ days
>-------------
>Supplier1          20%         30%          50%
>Supplier2          35%         35%          30%
>
>The date field is for the date range, and is in the where clause.
>
>Thanks in advance,
>Jaime

It isn't clear to me how you want to calculate the percentage. Percentage of what?

Hilmar.
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