Jump to content

Recommended Posts

Posted

Hi,

We are on SQL Server 2014 version and below is my requirement.

Using which function we can accomplish this? EMPLOYEE ID & EFFECTIVE DATE are key fields

EMPLOYEE ID   EFFECTIVE DATE     SALARY      My Requirement Column
23                        01/01/2019                50000       01/01/2017 
23                        01/01/2018               50000        01/01/2017 
23                        01/01/2017               50000        01/01/2017 
23                        01/01/2016               40000        01/01/2016
23                        01/01/2015               51000        01/01/2013
23                        01/01/2014               51000        01/01/2013
23                        01/01/2013               51000        01/01/2013

Posted

select EMPLOYEE _ID  ,EFFECTIVE_DATE ,SALARY, Min (EFFECTIVE_DATE) OVER (  PARTITION BY EMPLOYEE _ID,SALARY ) from table 

Posted
14 minutes ago, xano917 said:

select EMPLOYEE _ID  ,EFFECTIVE_DATE ,SALARY, Min (EFFECTIVE_DATE) OVER (  PARTITION BY EMPLOYEE _ID,SALARY ) from table 

Msg 207, Level 16, State 1, Line 16
Invalid column name 'EMPLOYEE_ID'.

Posted
2 minutes ago, xano917 said:

yevadu va neeku udhyogam icchindi ?

DONT ASK THAT OSTHE CHEPPU LEKUNTE LEDHU ANTUNNA TOMBHAYYA COMPANY PPL Related image

Posted
1 minute ago, samaja_varagamana said:

DONT ASK THAT OSTHE CHEPPU LEKUNTE LEDHU ANTUNNA TOMBHAYYA COMPANY PPL Related image

Related image  

Posted
20 minutes ago, xano917 said:

yevadu va neeku udhyogam icchindi ?

We have offshore suffort ferson to do spellcheck ani antunna neti IT exfarts

Posted
10 minutes ago, reality said:

We have offshore suffort ferson to do spellcheck ani antunna neti IT exfarts

Offshore telangana or AP vuuuu Related image

Posted
33 minutes ago, xano917 said:

yevadu va neeku udhyogam icchindi ?

devudu ayi untadu nelanti vadu ... goppollu swammy 

Posted
1 hour ago, ranjith23 said:

Msg 207, Level 16, State 1, Line 16
Invalid column name 'EMPLOYEE_ID'.

seriuosly??? shame on u man

Posted
Just now, Edo_Okati said:

seriuosly??? shame on u man

endukuvyya pillodiki nizzamgane telidu anukunta or non IT ayi untadu .... h4 vunty ..... who  knows .... okka chance ichi chudammu

Posted
54 minutes ago, xano917 said:

yevadu va neeku udhyogam icchindi ?

janalakkiii mari spoon feeding kavali antunnaru.... elanti vallaki It jobs ichi mana ijjat maname tesukuntunnam

Posted
4 minutes ago, fasak_vachadu said:

endukuvyya pillodiki nizzamgane telidu anukunta or non IT ayi untadu .... h4 vunty ..... who  knows .... okka chance ichi chudammu

mari ee range lo unte.... enni chances ichina waste ee

Posted
1 minute ago, Edo_Okati said:

mari ee range lo unte.... enni chances ichina waste ee

non IT ayithe oka 2 or 3 but same mistake malli chesthe lite.... ila 2010 ki mundu ok but ippudu unna market kurolla talent ki ela chesthe addam ga book ayi assam ayitharu

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