Answers for "how to compare only date from datetime in sql server"

SQL
0

SQL server datetime compare

Pressupondo uma tabela utilizador u.

year(u.DataInicio) --> Retorna o ano
month() --> Retorna o mês
day() --> dia

Exemplo:
u.Ativo = 1 AND year(u.DataInicio)<= 2018
Posted by: Guest on October-20-2020

Code answers related to "how to compare only date from datetime in sql server"

Code answers related to "SQL"

Browse Popular Code Answers by Language