Topic: SQL*Plus and PL/SQL >> query please
|
Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property.
You may review the entire Oracle Certification Program Candidate Agreement online Here.
|
|
|
|
| sunil |
Posted: Mar 26, 2007 06:26:17 AM |
Total Post: 20
Joined: Nov, 2006
|
Hi all,
I have a table with following four cols
file_size run_date prev_day_file_size status
the prev_day_file_size should be updated with file_size of last run_date |
|
|
parth |
| Posted: Apr 02, 2007 12:21:47 PM | |
|
Total Post: 17
Joined: Apr, 2007
|
update <TABLE_NAME> set file_size = (select file_size from <TABLE> where run_date like (select max(run_date) from <table> order by run_date desc)
it may work ...!
|
|
|
|
|
| Time Zone: EDT |
Send this thread to your friend |
|
|
|
|
Forum Rules & Description
Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user
|
| |
Get FREE Magazines
|
Top 10 Forum User
|
| Murtuja Khokhar | 857 |
| Mohammed Taj | 746 |
| positive fanatic | 483 |
| Jayanta Sur | 479 |
| Vigyan Kaushik | 386 |
| Gopu Gopi | 335 |
| Gitesh Trivedi | 322 |
| Vinoth Kumar | 264 |
| neeraj sharma | 258 |
| Ramesh Jois | 246 |
|
|