query a query
I am having a nightmare with this query. I am trying to use the results from 1 query and then use it in the second but it will only give me 1 result when the it should give me 5. The first query returns 5 ids so the second should give me the same
<cfquery name="getquote" datasource="conveyancingshoppers">
select solicitorsid from UUID
where UUID='#UUID#'
</cfquery>
<cfoutput query="getquote">
<CFQUERY name="getname" datasource="conveyancingshoppers">
SELECT *
FROM solicitors
WHERE solicitorsid = #getquote.solicitorsid#
</CFQUERY>
</cfoutput>
I have tried so many different ways and cannot get it to work. In the second query i want to be able to select solicitorsid from the tables solicitors and fees.
Please help me fix this
