Jump to content

Comparar Datas


Guest NoOne

Recommended Posts

Preciso de criar um trigger que compare duas datas a verificar qual a "MAIOR"

supostamente deveria fazer algo do genero

extract year das duas datas s uma delas for superior então essa é a data a "maior"

se forem iguais entao

extract month das duas datas e verificar s uma delas é maior que a outra .. etc.

mas n tou a conseguir fazer os extract's, devo ter mal a sintaxe :S Alguem me pode ajudar?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.