Home » SQL & PL/SQL » SQL & PL/SQL » resetting variable value
resetting variable value [message #10754] Sun, 15 February 2004 21:42 Go to next message
Riaz
Messages: 112
Registered: February 2002
Senior Member
Hi...Barbara
How can I reset the variable (say a) to its initial value if regno changes from 2001% to 2002%, 2003% etc.....also I want to reset the same variable again if another field (faculty) in another table(grn) changes. All the required data I get in a cursor. (I wonder how can I get the following output.. ) Please guide and thanks for giving time..

regno faculty sgpa rank

2002052 EE 4 Rank 1
2002027 EE 3.94 Rank 2
2002143 EE 3.94 Rank 2
2002002 CS 3.87 Rank 1
2002124 CS 3.8 Rank 2
2002024 EE 3.76 Rank 3
2003196 CS 3.73 Rank 1
2003160 CS 3.71 Rank 2
2003026 CS 3.67 Rank 3
2003073 EE 3.61 Rank 1
2003148 EE 3.61 Rank 1
2003005 EE 3.6 Rank 2
Re: resetting variable value [message #10759 is a reply to message #10754] Mon, 16 February 2004 02:47 Go to previous messageGo to next message
Barbara Boehmer
Messages: 9090
Registered: November 2002
Location: California, USA
Senior Member
I didn't see this before I added my response to your e-mail in the other thread. Please continue in one thread, instead of starting a new one. Please click on the link below for my response in the other thread.

[Updated on: Fri, 18 February 2005 23:32]

Report message to a moderator

Re: resetting variable value [message #10760 is a reply to message #10759] Mon, 16 February 2004 02:53 Go to previous message
Barbara Boehmer
Messages: 9090
Registered: November 2002
Location: California, USA
Senior Member
Please disregard my comments about the e-mails and the threads. It looks like I got the e-mail before the post was visible and didn't realize that the e-mail was just a copy of the post and when I saw the second post I was viewing the posts by date and didn't realize that it was posted on the same thread. You did everything correctly. Sorry for the confusion. Too much multi-tasking on my part. I think it's time for me to take a break.
Previous Topic: Invoke a Java Programs when an event triggers
Next Topic: Doubt about sequence
Goto Forum:
  


Current Time: Wed Apr 24 15:12:57 CDT 2024