iccsi
2012-03-25 03:17:08 UTC
I want to compare date part of 2 datetime type field.
I think the best way is to cast to date part data only, since if I
compare whole data which include time part of value will not get right
result.
My question is which data type is best way to do like char(20) or
integer?
If I use integer than i can just compare 2 value. The only thing is
does SQL cast function consider datetime is a float and date part is
inter part of the value?
Your information and help is great appreciated,
iccsi
I think the best way is to cast to date part data only, since if I
compare whole data which include time part of value will not get right
result.
My question is which data type is best way to do like char(20) or
integer?
If I use integer than i can just compare 2 value. The only thing is
does SQL cast function consider datetime is a float and date part is
inter part of the value?
Your information and help is great appreciated,
iccsi