Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Diff between elapsed time and execution time ???

645300Jun 30 2010 — edited Jul 2 2010
Hi all,

I ran similar query say
    
     
select a.col1,
       a.col2,
       a.col3,
       b.col4,
       b.col5,
       b.col6
       from table1 a,
            table2 b
       where a.col5 = b.col5
             a.col4 = b.col4;
        
     
    
When i ran this query in sqlplus
     sqlplus
       It fetched 26k all the rows in sqlplus
             With Elapsed time 15:20 (mi:ss)

       
But when i ran the same query in TOAD(Third party Editor)
                
            TOAD

              I could see in query analyzer saying execution time is 3:26 (mi:ss)  and rows processed 26k
         
           {code}


          When i ran the same query with count(*) with same filter condidtions i,e in *SQLPLUS*

           {code}
                  
                  SQLPLUS
                  select count(*)    
                                  from table1 a,
                                          table2 b
                               where a.col5 = b.col5
                                         a.col4 = b.col4;
                   
                        I see the elapsed time 1:20 (MI:SS)  for row count26k
             
           {code}

       
                 
So i m little confused ...can you gurus justify which one is correct and more valid ??? Thank you so much!!

Edited by: user642297 on Jun 30, 2010 4:37 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 30 2010
Added on Jun 30 2010
9 comments
2,877 views