Title: Message
If I remember correctly it would be executed once for every resulting row.

if you placed it in the where clause it would be diffierent.
-----Original Message-----
From: Steve Haas [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 13, 2001 8:20 AM
To: Multiple recipients of list ORACLE-L
Subject: SQL Question

Good morning,
 
Env't:  Oracle 8.1.5, HP-UX 11.0 (64 bit)
 
Given the following tables:
emp with 100 rows
dept with 10 rows
 
and this SQL:
select emp.ename, initcap(dept.deptname)
from emp.dept
where emp.deptno = emp.deptno;
 
The questions -
How many times is the initcap(dept.deptname) function actually "executed"?
Is it once for each emp row (100 times) or once for each dept row (10 times) or some other value?
 
Another scenario -
Would it be faster to retrieve rows with a bunch of similar functions (initcap, concatenations of columns and/or literals, etc) or to have and maintain the data in columns with the data formatted as such?
 
TIA gurus...
 
Steve Haas
Opus Consultants, LLC

Reply via email to