| Author |
Complex SQL Statements
|
Steve Dyke
Ranch Hand
Joined: Nov 16, 2004
Posts: 1254
|
|
I have a report using jasperreports(itext)
Is there any way to have a function in the SQL statement as a column and have that function run a seperate SQL statement?
Somthing like "Select f1, myfunction(f1) As f2 From mytable"
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19216
|
|
I have done similar things quite often:
Of course this function can have only a single row in the result set.
Moving to the JDBC forum.
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
Jan Cumps
Bartender
Joined: Dec 20, 2006
Posts: 2343
|
|
|
What is your database? Oracle has stored functions that can be used in queries.
|
OCUP UML fundamental
ITIL foundation
|
 |
 |
|
|
subject: Complex SQL Statements
|
|
|