HiI have a select query as followsSelect ID FROM table1
I have a function which takes the input ID and year and returns some vlauesMyFunction(1234,2008)
This returns a tabledivision cost A 2000 B 2456 C 1589
What I want to do is join the results ofSELECT sum(cost) FROM MyFunction(1234,2008)
to Select ID FROM table1
Where each id in the select replaces 1234 in the functionSo something likeSelect ID,SUM(cost) FROM table1,MyFunction(ID,2008)
This doesn't work. Is there any way to do this?