Click here to Skip to main content
15,918,243 members
Home / Discussions / Database
   

Database

 
AnswerRe: Access Database Manager Pin
Eric Dahlvang22-May-06 8:08
Eric Dahlvang22-May-06 8:08 
GeneralRe: Access Database Manager Pin
Paul Conrad22-May-06 8:23
professionalPaul Conrad22-May-06 8:23 
QuestionRe: Access Database Manager Pin
Kschuler22-May-06 9:10
Kschuler22-May-06 9:10 
QuestionGroup by date Pin
Sasuko22-May-06 3:25
Sasuko22-May-06 3:25 
AnswerRe: Group by date Pin
Kschuler22-May-06 3:36
Kschuler22-May-06 3:36 
GeneralRe: Group by date Pin
Sasuko22-May-06 3:49
Sasuko22-May-06 3:49 
GeneralRe: Group by date Pin
Kschuler22-May-06 4:24
Kschuler22-May-06 4:24 
AnswerRe: Group by date Pin
Colin Angus Mackay22-May-06 5:21
Colin Angus Mackay22-May-06 5:21 
Okay, I'm assuming you are using SQL Server, and the column is a DATETIME or SMALLDATETIME.

For a single day you can use this:
SELECT * FROM MyTable WHERE [date] >= '2006-04-20 00:00:00' AND [date] <= '2006-04-20 23:59:59'
If you are only storing the date element without the time then you can do a simpler [date] = '2006-04-20' instead.

The same works for longer date ranges. e.g.
SELECT * FROM MyTable WHERE [date] >= '2006-04-14 00:00:00' AND [date] <= '2006-05-21 23:59:59'


Does this help?


"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)

My: Website | Blog
AnswerRe: Group by date Pin
Eric Dahlvang22-May-06 8:40
Eric Dahlvang22-May-06 8:40 
GeneralRe: Group by date Pin
Colin Angus Mackay22-May-06 11:28
Colin Angus Mackay22-May-06 11:28 
QuestionRe: Group by date Pin
Eric Dahlvang22-May-06 11:38
Eric Dahlvang22-May-06 11:38 
AnswerRe: Group by date Pin
Colin Angus Mackay22-May-06 12:10
Colin Angus Mackay22-May-06 12:10 
QuestionSQL 2000 Reporting Services - HTTP Error 403 Pin
Kevin McFarlane22-May-06 3:16
Kevin McFarlane22-May-06 3:16 
AnswerRe: SQL 2000 Reporting Services - HTTP Error 403 Pin
Paul Conrad22-May-06 6:13
professionalPaul Conrad22-May-06 6:13 
GeneralRe: SQL 2000 Reporting Services - HTTP Error 403 Pin
Kevin McFarlane22-May-06 23:31
Kevin McFarlane22-May-06 23:31 
AnswerRe: SQL 2000 Reporting Services - HTTP Error 403 Pin
Kevin McFarlane23-May-06 5:48
Kevin McFarlane23-May-06 5:48 
QuestionSelect QUERY from a collection Pin
NICE TO MEET22-May-06 3:04
NICE TO MEET22-May-06 3:04 
AnswerRe: Select QUERY from a collection Pin
Paul Brower22-May-06 10:11
Paul Brower22-May-06 10:11 
QuestionDeadlock in the MS Sql server 2000 Pin
srinivasaRaoS22-May-06 0:51
srinivasaRaoS22-May-06 0:51 
AnswerRe: Deadlock in the MS Sql server 2000 Pin
Colin Angus Mackay22-May-06 1:32
Colin Angus Mackay22-May-06 1:32 
GeneralRe: Deadlock in the MS Sql server 2000 Pin
srinivasaRaoS29-May-06 2:05
srinivasaRaoS29-May-06 2:05 
GeneralRe: Deadlock in the MS Sql server 2000 Pin
Colin Angus Mackay29-May-06 4:47
Colin Angus Mackay29-May-06 4:47 
GeneralRe: Deadlock in the MS Sql server 2000 Pin
srinivasaRaoS29-May-06 23:48
srinivasaRaoS29-May-06 23:48 
GeneralRe: Deadlock in the MS Sql server 2000 Pin
Colin Angus Mackay30-May-06 12:06
Colin Angus Mackay30-May-06 12:06 
Questiondata binding Pin
maaran21-May-06 23:33
maaran21-May-06 23:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.