Oracle SQL- Flag records based on record's date vs history

后端 未结 4 426
伪装坚强ぢ
伪装坚强ぢ 2021-01-27 06:01

This is my 1st post on the forum. Usually I was able to find what I needed - but to tell the truth - I am not really sure how to ask a correct question to the issue. Therefore,

4条回答
  •  迷失自我
    2021-01-27 06:47

    Another solution might be to outer Join "DATABASE"."SALES" T4 a second time as T5, wilter the fiscal year via WHERE to < t4.FiscalYear-2. If the Column is NULL, the record is new, if the outer join results in a value, the record is historic.

提交回复
热议问题