i got an int @count
i want to set it to the number of day differences in sql, i tried
even tried to cast datediff to int but it doesn't work, any suggestions?
i want to set it to the number of day differences in sql, i tried
Code:
@count = datediff(day,min(date),max(date))
Comment