I'm sure this is such a simple answer but I'm new to this and haven't been able to either ask the question of Google or anything in the right way.
I have a query, utilising the same input multiple times, and what I need to know is how can I get the input only once to be used several times?
ie the last line of the below is used at least five times and my current format asks it five times
Partial fix in place (Thank you Kaushik Nayak and your answer) now but it doesn't work correctly. I think the several join are where I have the issue, the initial select for the value of v.dt appears fine
FROM Bmtrread Rd
INNER JOIN CUSTIMA.BSVCHRGE
ON Rd.CUST_REF = CUSTIMA.BSVCHRGE.U##CUST_REF
WHERE EXISTS
(SELECT *
FROM Bsvchrge Ch t cross join v
WHERE Rd.CUST_REF = Ch.U##CUST_REF
AND Ch.U##TARIFF_CODE = 'TB12'
AND Ch.CHG_PERCENT = 1
AND Rd.CURREAD_DT >= v.dt