but without having any information on your database, the data you want to display, any calculations you want to perform or groupings you want to show it's almost impossible to give you a better answer then the line above.
Your question is very open ended and is almost like asking "how long is a piece of string". If you want more help please provide details of your database (eg. is it MySQL, MS SQL Oracle), the data schema (what tables you have, what columns the tables have), and the structure you want for your result set (eg. what groupings you want your data in, any summary fields etc).