Hi,
I am practising SQL Serverso my question is from the basics. I could not get the right answer from other search engines but i am sure i will be rightly guided here.
date and time are stored in a single field 'gps_date' and each field shows details like this: 2011-02-05 10:21:47.000
I need to filter the date and time field to list:
my very basic sql statement is show below. How can I add the above features to it.
I am practising SQL Serverso my question is from the basics. I could not get the right answer from other search engines but i am sure i will be rightly guided here.
date and time are stored in a single field 'gps_date' and each field shows details like this: 2011-02-05 10:21:47.000
I need to filter the date and time field to list:
- Todays Data
- Data Between Two Dates
my very basic sql statement is show below. How can I add the above features to it.
Code:
SELECT * FROM gps_data where gps_device_id = '0123456'
Comment