The query I have written is:
delete from featured where featuredID IN(
select top(@removeAmnt) * from featured
order by featured.createdon asc)
which doesn’t appear to work. The error I get is, “Only one expression can be specified in the select list when the subquery is not introduced with EXISTS.”. I’m not to familiar with sql queries. I’m basically trying to order these by their createdon field who’s default value is the date function. also, the the sp allows a value removeAmnt to be passed in, which is the # of table entries that will be selected from the top to be deleted.
most likely you need to remove the
*: