I have a table with a datetime record. I need to select the record using date or time.
Let's say that I have this format 1/1/2001 13:33:00
in the database
My question is: If I enter the date, the time or both, I should obtain the rows that have either same date or the same time. How can I achieve this?
The convert function CONVERT(VARCHAR(10), Travel.Travel_DateTime, 110)
returns the dates if their time is like the default 00:00:00