hey guys im having a problem with my query
select idmedicament,dateExpiration from stock where (SELECT DATEDIFF(day,dateExpiration,getdate()) FROM stock )>=21
but bring me this error below
Msg 512, Level 16, State 1, Line 13
Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.