I am working with SQL Server. I have two columns in a table. The date column stores date as varchar. A sample data stored in the date column is 2006-05-29 00:00:00.000. The time column is also stored as varchar. A sample data stored in the time column is 02:00 PM. I have to concatenate data and time and compare to another date and time in a similar format.
Essentially I have to concatenate 2006-05-29 00:00:00.000 and 02:00 PM and then concatenate another piece of data 2006-05-29 00:00:00.000 and 08:00 PM and compare them.