Formulate a SQL string to display results to a LIST block via ASP

Hi All,

I am trying to render a LIST block to screen via an ASP page – however I need to create a complex SQL string in the ASP page that will retrieve the rows to display in the list. Can you please advise on how i can formulate a sql string and execute the results to the list block in ASP?

Thanks

Adrian