Hi everyone, i have a table with a column that is nvarchar and contains words and a date like dd/mm/yyyy. I try to run a select query with a where clause that search rows with the today date like this: select * from table where column like (select CONVERT(NVARCHAR(10),GETDATE(),103)) but found nothing. The query is wrong or needs another command? There are rows with the today date nevertheless. thank you
Your LIKE expression is only looking for an exact match on the date. Try adding wildcards like LIKE '%' + CONVERT(NVARCHAR(10),GETDATE(),103) + '%'