Several ColdFusion tags provide a way to retrieve data from a database and work with query data. Use the cfquery tag to query a data source, the cfoutput tag to output the query results to a web page, and the cfqueryparam tag to help reduce security risks in your applications.