Hi again,
I'm back with another basic question I'm afraid... (This forum is great for training, I must say!)
I'm trying to select a list of user names, with start date, end date, last user date, etc. The problems start when I try to add a filter by date - I'm trying to get a list of all active Oracle users on the system, i.e. those who don't have an end date or those who have a future end date. I'm also trying to exclude some usernames.
So far, this part works very well:
SELECT USER_ID, USER_NAME, START_DATE, END_DATE, LAST_LOGON_DATE, DESCRIPTION, EMAIL_ADDRESS FROM FND_USER WHERE USER_NAME NOT IN ('GUEST', 'TEST');
However, the problems start when I try to add AND END_DATE is null or end_date is >= 01/07/2022;
I've tried different combinations but none seem to work.
Could someone suggest how I can fix this, please?
Many thanks.
I'm back with another basic question I'm afraid... (This forum is great for training, I must say!)
I'm trying to select a list of user names, with start date, end date, last user date, etc. The problems start when I try to add a filter by date - I'm trying to get a list of all active Oracle users on the system, i.e. those who don't have an end date or those who have a future end date. I'm also trying to exclude some usernames.
So far, this part works very well:
SELECT USER_ID, USER_NAME, START_DATE, END_DATE, LAST_LOGON_DATE, DESCRIPTION, EMAIL_ADDRESS FROM FND_USER WHERE USER_NAME NOT IN ('GUEST', 'TEST');
However, the problems start when I try to add AND END_DATE is null or end_date is >= 01/07/2022;
I've tried different combinations but none seem to work.
Could someone suggest how I can fix this, please?
Many thanks.