Jump to content

sql experts please come


Recommended Posts

  • Replies 65
  • Created
  • Last Reply

Top Posters In This Topic

  • 4Vikram

    21

  • JollyBoy

    10

  • mettastar

    4

  • kittaya

    4

Top Posters In This Topic

Posted
4 minutes ago, kittaya said:

function rasi danini call chesuko statement lo ... rayali mari aekkado oka chota thappadhu

will check thanks

1 minute ago, ceelogreen said:

oka table la 47 entries eskoni  aa table ni nee query lo join sesko...

nice thanks 

Posted
5 minutes ago, johnubhai_01 said:

aa output ki kotthaga inkem chestham man.. @3$%

 

nasty vuncle

Posted

select

A.state,

NVL(B.RNK,'SOMEDEFAULT') 

from table A

left join (select distinct state, dense_rank() (order by state) rnk from table) B

on A.STATE=B.STATE

 

 

This works if you are numbering the states in sequential order

Posted
5 minutes ago, johnubhai_01 said:

RANK vadda @3$%

 

rank kuda raasa vuncle ^^

Posted
3 minutes ago, mettastar said:

rank kuda raasa vuncle ^^

nenu ade iddamanukunna but varchar ki ranking ivvaru kada ani post cheyaled.

Posted
8 minutes ago, mettastar said:

select

A.state,

NVL(B.RNK,'SOMEDEFAULT') 

from table A

left join (select distinct state, dense_rank() (order by state) rnk from table) B

on A.STATE=B.STATE

 

 

This works if you are numbering the states in sequential order

this would be perfect but ipude susna aa table la states names tho paatu inka chaala unai like  numbers and some other values also _%~

Posted

select var = ROW_NUMBER() over (partition by AD order by AD) from your table

Posted
1 hour ago, 4Vikram said:

this would be perfect but ipude susna aa table la states names tho paatu inka chaala unai like  numbers and some other values also _%~

still tat works

Posted
6 minutes ago, kick_seenu said:

select var = ROW_NUMBER() over (partition by AD order by AD) from your table

this works if I have only states man but akada aa table lo inka vere values kuda unai so idhi not working.. paina mettastar vuncle chepindi working

Posted
Just now, 4Vikram said:

this works if I have only states man but akada aa table lo inka vere values kuda unai so idhi not working.. paina mettastar vuncle chepindi working

select only state field

Posted
13 minutes ago, Manikyam said:

select only state field

yeah cheyochu but county ani inko column kuda undi adi kuda kavale anduke not working

Posted

mettastar ichina ref table with rank is the best way to do, migatha values as per state untey add chesuko 

Posted
19 minutes ago, 4Vikram said:

yeah cheyochu but county ani inko column kuda undi adi kuda kavale anduke not working

nuv rasina query ikada vey.. sample columns and update column

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...