Jump to content

sql experts please come


Recommended Posts

Posted
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*^

  • Replies 65
  • Created
  • Last Reply

Top Posters In This Topic

  • 4Vikram

    21

  • JollyBoy

    10

  • mettastar

    4

  • kittaya

    4

Top Posters In This Topic

Posted
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

Posted
1 hour ago, 4Vikram said:

vunty laang tame no see how you?

twins akkada busy kaka inkem vuntadi

Posted

Instead of CASE use DECODE 

Decode function like mapping.

Or else create mapping table Join back to main table.

Posted
7 hours ago, fake_Bezawada said:

twins akkada busy kaka inkem vuntadi

correst man 

Posted
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

Posted
4 minutes ago, solman said:

@4Vikram uncle case statement anta use cheyyi... sSc_hidingsofa

already camed man, ninane solve aindi matter but chaala mandhi helped no.. thanks 

Posted
Just now, 4Vikram said:

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

okasari copy paste chesi run chey above query 

Posted
2 minutes ago, 4Vikram said:

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

STATE_ID  already table lo unda.. leka create cheyala 

Posted
25 minutes ago, JollyBoy said:

STATE_ID  already table lo unda.. leka create cheyala 

create cheyale table lo ledu.. its like new column for result set anthe 

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