This should work for you too: <cfquery name="getEmployeeDetails" datasource="db"> select TOP 1 reference, uniqueID, firstname, lastname FROM employee WHERE reference = 'cfcoder' ORDER BY reference asc </cfquery>
At 05:46 AM 10/20/04, cf coder wrote: ><cfquery name="getEmployeeDetails" datasource="db"> select distinct >reference, uniqueID, firstname, lastname FROM employee WHERE reference = >'cfcoder' >ORDER BY reference asc ></cfquery> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Purchase from House of Fusion, a Macromedia Authorized Affiliate and support the CF community. http://www.houseoffusion.com/banners/view.cfm?bannerid=36 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:182006 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54