Jump to content

sql experts please come


4Vikram

Recommended Posts

14 minutes ago, JollyBoy said:

yes.. sarigga cheyak pote tholu teestadi.. my manager oncch up on a tym @3$%

tyalented vundi vunty inpact multy tyalented undi baby_dc1

9 minutes ago, Bangaruu said:

Miss u da vaishu :(

*7*^

Link to comment
Share on other sites

  • Replies 65
  • Created
  • Last Reply

Top Posters In This Topic

  • 4Vikram

    21

  • JollyBoy

    10

  • mettastar

    4

  • kittaya

    4

Top Posters In This Topic

11 hours ago, 4Vikram said:

i have a requirement like this..

Select AB, AC, AD, AE FROM Tbl.ABC 

Aite AD lo values are like Alabama, Alaska, Arkansas and so on..

I need to create a view which gets me results like 

IF AD = Alabama then 1 if AD = Alaska then 2 atla continuation and this will be like an added new column AF anukondi.. suggestions please and thanks

case statement vundhi ga adhi vaduko bro

Link to comment
Share on other sites

15 hours ago, JollyBoy said:

 

;with SS  as

(select 
      ,A.[STRING_VALUE1],STATE_ID
          , ROW_NUMBER() over (partition by A.[STRING_VALUE1] order by A.[STRING_VALUE1])  RN 
FROM [tbl_APP_DROPDOWN_VALUES] ) 

UPDATE  T SET T.STATE_ID = S.RN FROM [tbl_APP_DROPDOWN_VALUES] T inner join  SS S on S.[STRING_VALUE1] = T.[STRING_VALUE1]

bhaiyyya STATE_ID ane column ledu i am retrieving it as a result column.. the query not working

Link to comment
Share on other sites

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...