Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

find salary on random given date

kalyan vedagiriOct 9 2018 — edited Oct 9 2018

This question is asked by an interviewer and i am unable to figure out since so many days.

I have a tableĀ  employee like

name
salerydateincrement
jhon1000020-Aug-20090
jhon1500031-Sep-20135000
jhon1800022-Jan-20153000
jhon2000012-Feb_20162000

Now i need a query where i give some random date as input and it should produce employee salary on that date as output.

example: input date = 12-Jun-2015 (which is actually not in the table)

now the output should be salary on that date.

I am unable to figure out how to give random date which is not in table as input.

Could anyone please help me to solve this?

Comments
Post Details
Added on Oct 9 2018
6 comments
896 views