mettastar Posted January 11, 2017 Author Report Posted January 11, 2017 and another is it always going to be 4 records in each set ? Quote
rakeshchinna Posted January 11, 2017 Report Posted January 11, 2017 2 minutes ago, mettastar said: what is the relation vuncle.. question is not clear... 24567898 ->12345668 how are these two related? first set lo first dhi second set lo first dhi ala relate chesava ? pattern choosi think uncle oka column lo 8 rows unnayi 4 rows oka column lo kavali inko 4 rows inko column lo kavali Quote
mettastar Posted January 11, 2017 Author Report Posted January 11, 2017 Just now, rakeshchinna said: pattern choosi think uncle oka column lo 8 rows unnayi 4 rows oka column lo kavali inko 4 rows inko column lo kavali i got that but , A-->B relation ela telusthadi.. can I get 4 rows from second set into B column in any random order ? Quote
rakeshchinna Posted January 11, 2017 Report Posted January 11, 2017 2 minutes ago, mettastar said: i got that but , A-->B relation ela telusthadi.. can I get 4 rows from second set into B column in any random order ? yes in any random order Quote
Spartan Posted January 11, 2017 Report Posted January 11, 2017 MSSQL DB ni MYSQL lo ki convert chese script veyi. @mettastar Quote
mettastar Posted January 11, 2017 Author Report Posted January 11, 2017 with a as select a, rank() over(partition by substring(a,1,1) order by a ) rnk from table select a1.a, a2.a from a a1 inner join a a2 on a1.rnk=a2.rnk and substring(a2.a='1') and substring(a1.a='2') any other best/simple solution for this Quote
mettastar Posted January 11, 2017 Author Report Posted January 11, 2017 6 minutes ago, Spartan said: MSSQL DB ni MYSQL lo ki convert chese script veyi. @mettastar conversion ante alochinchali not on top of my head.. jai google thalli Quote
mettastar Posted January 11, 2017 Author Report Posted January 11, 2017 2 minutes ago, mettastar said: with a as select a, rank() over(partition by substring(a,1,1) order by a ) rnk from table select a1.a, a2.a from a a1 inner join a a2 on a1.rnk=a2.rnk and substring(a2.a='1') and substring(a1.a='2') any other best/simple solution for this @rakeshchinna Quote
k2s Posted January 11, 2017 Report Posted January 11, 2017 Learn USQL man... azure sql DW lo use setharu Quote
mettastar Posted January 11, 2017 Author Report Posted January 11, 2017 Just now, k2s said: Learn USQL man... azure sql DW lo use setharu ey sql aina ade concept kada thatha... questions emanna adugu Quote
dkchinnari Posted January 11, 2017 Report Posted January 11, 2017 get t mobile tuesday hit of tfi hero nbk and compare with boss Quote
former Posted January 11, 2017 Report Posted January 11, 2017 44 minutes ago, mettastar said: I want now.. meru general ga interview lo face chesina questions or meru interview chesetapudu adige questions veyandi Join on the Null Value? How to handle null values in the join ? Quote
Srimantudu Posted January 11, 2017 Report Posted January 11, 2017 Resetting Identity column on a table. Quote
rakeshchinna Posted January 11, 2017 Report Posted January 11, 2017 Just now, Srimantudu said: Resetting Identity column on a table. Truncate Table Quote
mettastar Posted January 11, 2017 Author Report Posted January 11, 2017 1 minute ago, former said: Join on the Null Value? How to handle null values in the join ? Nulls meda join avadhu .. so NVL use chesi convert null to some default to join Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.