I have oracle View
where i want to create column SYSTEM_INSERTED_DATE
which does not exist in table TUA_PTI
.
In this SYSTEM_INSERTED_DATE
column the value should be set for example if the current day is from Tuesday till Friday then the previous date should be shown and if the day is Monday then the date from Friday should be shown. Is it possible ?
Below is the DDL from the view
:
Create View TES_RUS
(
CLASS,
TE_RPI
)
AS
Select
CLASS,
TE_RPI
FROM TUA_PTI
question from:https://stackoverflow.com/questions/65902898/case-when-condition-to-handle-dates-in-weekdays-in-oracle-sql