Using date and CASE

  • Ok, Share the scripts to create the table and test data. so that i can simulate the same on my machine, This would help me to help you.

    Thanks

    Ashok

  • Apart from individual DDL and test data, your logic seems incomplete. I would revisit this and better explain what the process is for computation.

    You can use CASE for some of this.

    CASE when day = 1 and month = 'Jan' then 0

    when day > 1 and month = 'Jan' then hours * rate

    end

Viewing 2 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply