I have corrected my typo. I added another filter for alias name: Status in order to filter the record by Year and Status. Originally, the query is working well if filter by Year. Here is the query with values:
SELECT SchoolInfo.Year, (SELECT StatusInfo.StatusText FROM StatusInfo WHERE StatusInfo.StatusId = SchoolInfo.StatusId ) Status
FROM SchoolInfo
WHERE SchoolInfo.Year = '2006' AND Status = 'Graduated';
The error occurred at Status is invalid identifier??? I am new with Oracle, so an idea how to change the code to make it happen. Thanks in advance.