kedharinath Posted March 19, 2015 Report Posted March 19, 2015 with cte as ( select colA,colB,row_number() over(partition by colA) as rid ) update cte set colA = colB where rid = 1;
kedharinath Posted March 19, 2015 Report Posted March 19, 2015 2 diff tbls ante join cheyyalevaa two tbls ni?? no comon col a?? ne rotta..em sesavo nekaina ardam aindha..
kedharinath Posted March 19, 2015 Report Posted March 19, 2015 Column A Column B 1 55 1 45 1 79 1 64 1 89 2 23 2 87 3 45 4 123 4 111 4 65 5 72 5 31 5 18 5 05 Ila unnai bro.. so 1st should be replaced to 55 1- 55 2-23 3-45 4-123 chepandi bhayya koncham ippudu with cte as ( select colA,colB,row_number() over(partition by colA) as rid ) update cte set colA = colB where rid = 1;
mtkr Posted March 19, 2015 Report Posted March 19, 2015 ne rotta..em sesavo nekaina ardam aindha.. ardam kaakaponiki emundhii... nen joins esina... Nuv cte esinavv... anthe gaa...
mtkr Posted March 19, 2015 Report Posted March 19, 2015 with cte as ( select colA,colB,row_number() over(partition by colA) as rid ) update cte set colA = colB where rid = 1; row num la order by eadii???
kedharinath Posted March 19, 2015 Report Posted March 19, 2015 ardam kaakaponiki emundhii... nen joins esina... Nuv cte esinavv... anthe gaa... goti tho poyedhaniki goddali dhaka y ani..
kedharinath Posted March 19, 2015 Report Posted March 19, 2015 row num la order by eadii??? his req is to grab the first record..not the asc or desc of colB..date criteria petkundo or vere attributes tho 10ginchkuntado teldh ga..andhke petle..
mtkr Posted March 19, 2015 Report Posted March 19, 2015 goti tho poyedhaniki goddali dhaka y ani.. akkada goddali kuda saripodu anta... cranes neededd...
mtkr Posted March 19, 2015 Report Posted March 19, 2015 his req is to grab the first record..not the asc or desc of colB..date criteria petkundo or vere attributes tho 10ginchkuntado teldh ga..andhke petle.. assal em pettakapothe 10gichukodaaniki kuda padiki raad gaa
kedharinath Posted March 19, 2015 Report Posted March 19, 2015 akkada goddali kuda saripodu anta... cranes neededd... ekada petkuntadanta cranes..
kedharinath Posted March 19, 2015 Report Posted March 19, 2015 assal em pettakapothe 10gichukodaaniki kuda padiki raad gaa emi pettanavsram le..req batti change seskovale..
sanbk Posted March 19, 2015 Author Report Posted March 19, 2015 emi pettanavsram le..req batti change seskovale.. PM chesa koncham chudu
loveindia Posted March 19, 2015 Report Posted March 19, 2015 row num la order by eadii??? sorry reverse lo cheppa... edited....
pachimirchi Posted March 19, 2015 Report Posted March 19, 2015 RowNumber() lo order by is not compulsory man... its just something you can add if you want ordered list of data. rownumber in tsql ki order by vundali bro partition by optional .. rownum in oracle sql is a pseudo column..
loveindia Posted March 19, 2015 Report Posted March 19, 2015 rownumber in tsql ki order by vundali bro partition by optional .. rownum in oracle sql is a pseudo column.. partition by anukoni aavesham lo esaaa man post... andukey edit chesaa... india nunchi ee rathri poota work chestuntey vachina sql kuda marchipoyettu unna...
Recommended Posts