Author |
Message |
Blazewada
Bewarse Legend Username: Blazewada
Post Number: 17027 Registered: 08-2008 Posted From: 202.124.30.8
Rating: N/A Votes: 0 (Vote!) | Posted on Tuesday, June 14, 2011 - 2:53 am: |
|
Ravanabrahma:
twanksee bemmam baa.. its working. procedure update chesi test cheyali ika. Mind lo Fix Aithey Blind gaa ellipotaa...
|
Ravanabrahma
Bewarse Legend Username: Ravanabrahma
Post Number: 15880 Registered: 06-2004 Posted From: 72.129.47.191
Rating: N/A Votes: 0 (Vote!) | Posted on Tuesday, June 14, 2011 - 1:33 am: |
|
select * from (select original_client_order_id, qty, price, status, approved_time_stamp from table_name start with client_order_id = :1 connect by prior original_client_order_id = client_order_id) a where a.status = 'APPROVED' AND a.approved_time_stamp = .... ala use chesuko bhayya.. |
Ravanabrahma
Bewarse Legend Username: Ravanabrahma
Post Number: 15879 Registered: 06-2004 Posted From: 72.129.47.191
Rating: N/A Votes: 0 (Vote!) | Posted on Tuesday, June 14, 2011 - 1:31 am: |
|
Lilliput:SQL lo 6 chapters sadhivaan annai .... asalu ee problem ento kuda ardham kaaledhu naaku MOVIEART--rt.thoo edanna inter college ki prof lekka ellipovadam better anukunta
initial ga attage untadi kani once edo oka job join ayyaka edo okati atta research chesthunte solution ade vasthadi.. |
Ravanabrahma
Bewarse Legend Username: Ravanabrahma
Post Number: 15878 Registered: 06-2004 Posted From: 72.129.47.191
Rating: N/A Votes: 0 (Vote!) | Posted on Tuesday, June 14, 2011 - 1:30 am: |
|
Ravanabrahma:neeku kavalsina query vachesi.. select original_client_order_id, qty, price from table_name start with client_order_id = :1 connect by prior original_client_order_id = client_order_id; :1 bind variable is nothing but the client order that you are passing.. ee query ni tweek chesuko bhayya neeku kavalsinattu..
This will give the multiple rows data data as client_order_id original_client_order_id TEST-1308029407077-21 TEST-1308029291243-20 TEST-1308029407077-21 TEST-1308029252872-19 TEST-1308029407077-21 TEST-1308029252872-18 TEST-1308029407077-21 TEST-1308029252872-17 and other columns..but based on other where conditions get your exact row,.. you may not use the where clause when you are using connect by start with..so once you get the data use where clause... |
Penkonda_tiger
Mudiripoyina Bewarse Username: Penkonda_tiger
Post Number: 4931 Registered: 06-2005 Posted From: 82.157.134.169
Rating: N/A Votes: 0 (Vote!) | Posted on Tuesday, June 14, 2011 - 1:26 am: |
|
Lilliput:r u musugu namitha fan penkul annai
Mussugu Malashri fan here
kanapade nijam: Good manners , kanapadanidhi: abusive language
|
Lilliput
Celebrity Bewarse Username: Lilliput
Post Number: 9543 Registered: 08-2010 Posted From: 76.185.40.73
Rating: N/A Votes: 0 (Vote!) | Posted on Tuesday, June 14, 2011 - 1:26 am: |
|
Ravanabrahma:
SQL lo 6 chapters sadhivaan annai .... asalu ee problem ento kuda ardham kaaledhu naaku edanna inter college ki prof lekka ellipovadam better anukunta |
Penkonda_tiger
Mudiripoyina Bewarse Username: Penkonda_tiger
Post Number: 4930 Registered: 06-2005 Posted From: 82.157.134.169
Rating: N/A Votes: 0 (Vote!) | Posted on Tuesday, June 14, 2011 - 1:26 am: |
|
Bazeee , as mentioned by other bedars .. Hierarchical query can sort out ur problem .. kanapade nijam: Good manners , kanapadanidhi: abusive language
|
Ravanabrahma
Bewarse Legend Username: Ravanabrahma
Post Number: 15877 Registered: 06-2004 Posted From: 72.129.47.191
Rating: N/A Votes: 0 (Vote!) | Posted on Tuesday, June 14, 2011 - 1:24 am: |
|
Lilliput:
nenu ee connect by start with prior untadi ani thelsukovataniki 2 days pattindi..evo patha code vethikithe dorikindi..research chesthe vaarni anukunna..adhiripoyindi anukunna. |
Lilliput
Celebrity Bewarse Username: Lilliput
Post Number: 9542 Registered: 08-2010 Posted From: 76.185.40.73
Rating: N/A Votes: 0 (Vote!) | Posted on Tuesday, June 14, 2011 - 1:22 am: |
|
Penkonda_tiger:
r u musugu namitha fan penkul annai |
Ravanabrahma
Bewarse Legend Username: Ravanabrahma
Post Number: 15876 Registered: 06-2004 Posted From: 72.129.47.191
Rating: N/A Votes: 0 (Vote!) | Posted on Tuesday, June 14, 2011 - 1:22 am: |
|
neeku kavalsina query vachesi.. select original_client_order_id, qty, price from table_name start with client_order_id = :1 connect by prior original_client_order_id = client_order_id; :1 bind variable is nothing but the client order that you are passing.. ee query ni tweek chesuko bhayya neeku kavalsinattu.. |
Penkonda_tiger
Mudiripoyina Bewarse Username: Penkonda_tiger
Post Number: 4929 Registered: 06-2005 Posted From: 82.157.134.169
Rating: N/A Votes: 0 (Vote!) | Posted on Tuesday, June 14, 2011 - 1:21 am: |
|
Lilliput:ast poster ki initiator ki confuse ayya ee saari
http://www.ndtv.com/album/listing/entertainment/review-in-pics-namitha-i-love-yo u-7343#/slide/9 kanapade nijam: Good manners , kanapadanidhi: abusive language
|
Vja
Yavvanam Kaatesina Bewarse Username: Vja
Post Number: 2485 Registered: 12-2009 Posted From: 72.184.151.231
Rating: N/A Votes: 0 (Vote!) | Posted on Tuesday, June 14, 2011 - 1:19 am: |
|
select clientorderid,qty,price,status from temp start with ORIGINALCLIENTORDERID is null connect by prior clientorderid = ORIGINALCLIENTORDERID; Strictly Jai Balayya
|
Lilliput
Celebrity Bewarse Username: Lilliput
Post Number: 9540 Registered: 08-2010 Posted From: 76.185.40.73
Rating: N/A Votes: 0 (Vote!) | Posted on Tuesday, June 14, 2011 - 1:15 am: |
|
last poster ki initiator ki confuse ayya ee saari |
Ravanabrahma
Bewarse Legend Username: Ravanabrahma
Post Number: 15875 Registered: 06-2004 Posted From: 72.129.47.191
Rating: N/A Votes: 0 (Vote!) | Posted on Tuesday, June 14, 2011 - 1:15 am: |
|
example.. http://www.adp-gmbh.ch/ora/sql/connect_by.html start with connect prior should give you that recursive data.. |
Ravanabrahma
Bewarse Legend Username: Ravanabrahma
Post Number: 15874 Registered: 06-2004 Posted From: 72.129.47.191
Rating: N/A Votes: 0 (Vote!) | Posted on Tuesday, June 14, 2011 - 1:14 am: |
|
use start with connect by.. |
Blazewada
Bewarse Legend Username: Blazewada
Post Number: 17026 Registered: 08-2008 Posted From: 202.124.30.8
Rating: N/A Votes: 0 (Vote!) | Posted on Tuesday, June 14, 2011 - 1:07 am: |
|
Vja:got yaa 'which is last aproved'
yuppu. last approved di kaavali. BTW, Approval time stamp kooda undi. adi miss chesaa ee table lo. Mind lo Fix Aithey Blind gaa ellipotaa...
|
Vja
Yavvanam Kaatesina Bewarse Username: Vja
Post Number: 2484 Registered: 12-2009 Posted From: 72.184.151.231
Rating: N/A Votes: 0 (Vote!) | Posted on Tuesday, June 14, 2011 - 1:01 am: |
|
got yaa 'which is last aproved' Strictly Jai Balayya
|
Vja
Yavvanam Kaatesina Bewarse Username: Vja
Post Number: 2483 Registered: 12-2009 Posted From: 72.184.151.231
Rating: N/A Votes: 0 (Vote!) | Posted on Tuesday, June 14, 2011 - 1:00 am: |
|
ekkad o miss ayindi baaaji baa second daanloo original lcient order id 17 ki client order id 17 kooda undi ... so 34000,123.32 kadaa display avvalsindi...25000,199.32 antavendii
Strictly Jai Balayya
|
Blazewada
Bewarse Legend Username: Blazewada
Post Number: 17025 Registered: 08-2008 Posted From: 202.124.30.8
Rating: N/A Votes: 0 (Vote!) | Posted on Tuesday, June 14, 2011 - 12:48 am: |
|
I need to have a recursive sql which can fetch the Order details for the parent Order (which is last approved). Like, kindunna tables lo, 1st table lo: For client Order:TEST-1308029407077-19, I should get output as: TEST-1308029252872-17 , Quantity: 34000 , price: 123.32
Client Order ID | Original Client Order ID | Order type | Qty | Price | Status | TEST-1308029252872-17 | | New | 34000 | 123.32 | Approved | | TEST-1308029291243-18 | TEST-1308029252872-17 | Amend | 25000 | 199.32 | Rejected | | TEST-1308029407077-19 | TEST-1308029291243-18 | Amend | 54000 | 200.32 | Pending | | For client Order:TEST-1308029407077-21, I should get output as: TEST-1308029291243-18 , Quantity: 25000, price: 199.32
Client Order ID | Original Client Order ID | Order Type | Qty | Price | Status | TEST-1308029252872-17 | | New | 34000 | 123.32 | Approved | | TEST-1308029291243-18 | TEST-1308029252872-17 | Amend | 25000 | 199.32 | Approved | | | TEST-1308029291243-19 | TEST-1308029252872-18 | Cancel | 25000 | 199.32 | Rejected | | | TEST-1308029291243-20 | TEST-1308029252872-19 | Amend | 100000 | 200.32 | Rejected | | | | TEST-1308029407077-21 | TEST-1308029291243-20 | Amend | 54000 | 200.32 | Pending | |
Mind lo Fix Aithey Blind gaa ellipotaa...
|