Question : want row

select * from productimagespd where productimagesid=max(productimagesid)


An aggregate may not appear in the WHERE clause unless it is in a subquery contained in a HAVING clause or a select list, and the column being aggregated is an outer reference.


I want the row where to column productimagesid is the max value

Answer : want row

here it is

select * from productimagespd where productimagesid = (SELECT max(productimagesid) FROM productimagespd)
Random Solutions  
 
programming4us programming4us