ranjith23 Posted May 30, 2019 Report Posted May 30, 2019 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 Quote
xano917 Posted May 30, 2019 Report Posted May 30, 2019 select EMPLOYEE _ID ,EFFECTIVE_DATE ,SALARY, Min (EFFECTIVE_DATE) OVER ( PARTITION BY EMPLOYEE _ID,SALARY ) from table Quote
ranjith23 Posted May 30, 2019 Author Report Posted May 30, 2019 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'. Quote
Popular Post xano917 Posted May 30, 2019 Popular Post Report Posted May 30, 2019 22 minutes ago, ranjith23 said: Msg 207, Level 16, State 1, Line 16 Invalid column name 'EMPLOYEE_ID'. yevadu va neeku udhyogam icchindi ? 3 2 Quote
samaja_varagamana Posted May 30, 2019 Report Posted May 30, 2019 2 minutes ago, xano917 said: yevadu va neeku udhyogam icchindi ? DONT ASK THAT OSTHE CHEPPU LEKUNTE LEDHU ANTUNNA TOMBHAYYA COMPANY PPL Quote
xano917 Posted May 30, 2019 Report Posted May 30, 2019 1 minute ago, samaja_varagamana said: DONT ASK THAT OSTHE CHEPPU LEKUNTE LEDHU ANTUNNA TOMBHAYYA COMPANY PPL Quote
reality Posted May 30, 2019 Report Posted May 30, 2019 20 minutes ago, xano917 said: yevadu va neeku udhyogam icchindi ? We have offshore suffort ferson to do spellcheck ani antunna neti IT exfarts Quote
samaja_varagamana Posted May 30, 2019 Report Posted May 30, 2019 10 minutes ago, reality said: We have offshore suffort ferson to do spellcheck ani antunna neti IT exfarts Offshore telangana or AP vuuuu Quote
fasak_vachadu Posted May 30, 2019 Report Posted May 30, 2019 33 minutes ago, xano917 said: yevadu va neeku udhyogam icchindi ? devudu ayi untadu nelanti vadu ... goppollu swammy Quote
Edo_Okati Posted May 30, 2019 Report Posted May 30, 2019 1 hour ago, ranjith23 said: Msg 207, Level 16, State 1, Line 16 Invalid column name 'EMPLOYEE_ID'. seriuosly??? shame on u man Quote
fasak_vachadu Posted May 30, 2019 Report Posted May 30, 2019 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 Quote
GlassMate Posted May 30, 2019 Report Posted May 30, 2019 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 Quote
Edo_Okati Posted May 30, 2019 Report Posted May 30, 2019 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 Quote
JambuLingam Posted May 30, 2019 Report Posted May 30, 2019 1 hour ago, xano917 said: yevadu va neeku udhyogam icchindi ? Quote
fasak_vachadu Posted May 30, 2019 Report Posted May 30, 2019 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 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.