I want to compare results from subquery with the column in main query
--this returns multiple rows
select id, MAX(created_date) as maxdate from table
group by id
I want to use the result set in the another query to compare date (already exist in the table) with created_date for matching id, since sub query is return multiple rows unable to use it in a sub query I get the following error More than one value was returned by a subquery.
.
Any help is appreciated