3 Lowest integer of a structure
Hello,
I have a struct:
32 3.33333333333
38 25
46 30
56 6.06060606061
The first col is the id and the 2nd col is percent.
I want to get the 3 lowest percent from the struct.
Hello,
I have a struct:
32 3.33333333333
38 25
46 30
56 6.06060606061
The first col is the id and the 2nd col is percent.
I want to get the 3 lowest percent from the struct.
I would attack this problem from the query side. Run another query like this:
<cfquery name="qHighest3" ...>
select top 3 [id], [hourly_counter] ,[leads_per_day], [hourly_counter]/[leads_per_day]*100.00 as [pcnt] from [sales]
order by [pcnt] desc
</cfquery>
This was written and tested using MS-SQL. You may have to make adjustments if you are using something else.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.