I am writing a SQL query where the query should first search the first value, and only if this value is missing from the query Search for another value.
I have two tables, one of these tables is the date of amendment (it is not always full and it can be null
) and a creation date which always gets filled up
Now what I need is that the query first appears in the table along with the date of the revision and only when it is zero
, the table appears with the date of creation .
Example of the query:
Choose from all_ articles * where to_char (amended_date, 'yYYYMMDD') = to_char (sysdate, 'YYYYMMDD') - 1 - If this blank record Is
Can anyone help me with this question?
No comments:
Post a Comment