Creating a "Top 10" list
I am new to SQL and Report Builder. I am trying to create a list of
individuals with the highest number of incidences in a specific
category. So far I have a list that displays name and total quantity.
Where do I go from here?
--- posted by geoForum on http://delphi.newswhat.com
individuals with the highest number of incidences in a specific
category. So far I have a list that displays name and total quantity.
Where do I go from here?
--- posted by geoForum on http://delphi.newswhat.com
This discussion has been closed.
Comments
The best way to display the top ten records in your dataset would be to
order the data by the field that determines the ranking. Then you can limit
the number of records ReportBuilder traverses using a search condition
(WHERE clause) or limiting the number of detail bands printed using the
DetailBand.PrintCount property.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Which database are you currently using? I believe it is possible to add a
calculated field to the ORDER BY section in most databases.
SELECT (calculation) Calculated_Field, Field1, Field2
FROM myTable
ORDER BY 1
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
The field that I would like to order by is a calculated SUM. I can't
figure out how to add that to the sort.
--- posted by geoForum on http://delphi.newswhat.com
a
--- posted by geoForum on http://delphi.newswhat.com
Did you try adding SQL code similar to the psuedo code I gave below? I
believe SQL Server supports this type of action.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com