I have a table with one column (t1date) as:
Table1
t1date
----------
2011-05-24
There is also a function which takes one parameter dfunction(fdate). I want to pass the value of the t1date to the function. Something like:
SELECT *
FROM dfunction(SELECT t1date
FROM Table1
ORDER BY t1date
LIMIT 1)
which is equivalent to
SELECT *
FROM dfunction('2011-05-24')
I don't want to write another function for this. What I'm looking for is to use the select statement. Is it possible? If so how.