View previous topic :: View next topic
|
Author |
Message |
yourchoice_amit
New User
Joined: 01 Sep 2005 Posts: 5 Location: Mysore
|
|
|
|
Hi,
I need to code a ascending cursor for a table with the following index,
DATE
TYPE
PRICE
CONTRA (NULL exist)
ADD_TIMESTAMP
Can anybody help me in writing a cursor to fetch the rows in an ascending pattern. My ORDER_BY preference would be in the order mentioned above.
Thanks in Advance. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Where is the difficulty? Declare the cursor as
select from..
where. . .
order by . . .
If you are having problems (syntax or undesired sql return codes), post your code and the error(s) and someone will be able to clarify. |
|
Back to top |
|
|
yourchoice_amit
New User
Joined: 01 Sep 2005 Posts: 5 Location: Mysore
|
|
|
|
how do i give a WHERE clause for CONTRA which has NULL values and VALID Alpha numeric in it.
??? |
|
Back to top |
|
|
ashimer
Active Member
Joined: 13 Feb 2004 Posts: 551 Location: Bangalore
|
|
|
|
Amit .. are you concerned about your order by or where clause ...
post the current SQL and the problem you are facing with an example ...
it would be easy for us to help ... |
|
Back to top |
|
|
|