Click here to Skip to main content
15,887,027 members
Home / Discussions / Database
   

Database

 
GeneralRe: sql query parser Pin
me_aaryan25-Feb-09 22:12
me_aaryan25-Feb-09 22:12 
GeneralRe: sql query parser Pin
Rupesh Kumar Swami25-Feb-09 22:35
Rupesh Kumar Swami25-Feb-09 22:35 
AnswerRe: sql query parser Pin
Mycroft Holmes26-Feb-09 0:03
professionalMycroft Holmes26-Feb-09 0:03 
QuestionSql query to select Date between the range Pin
pavanip25-Feb-09 18:56
pavanip25-Feb-09 18:56 
AnswerRe: Sql query to select Date between the range Pin
Mycroft Holmes25-Feb-09 19:13
professionalMycroft Holmes25-Feb-09 19:13 
GeneralRe: Sql query to select Date between the range Pin
pavanip25-Feb-09 22:35
pavanip25-Feb-09 22:35 
GeneralRe: Sql query to select Date between the range Pin
J4amieC25-Feb-09 22:47
J4amieC25-Feb-09 22:47 
GeneralRe: Sql query to select Date between the range Pin
Mycroft Holmes25-Feb-09 23:56
professionalMycroft Holmes25-Feb-09 23:56 
As Jamie said, mistake 1 STORE YOUR DATES AS DATE TIME.

So now that your have screwed your data you have 2 choices.
Convert the dates from varchar to datetime - this is the recommended solution
Make all the date values into datetime in your query.

Select * from table name where convert(datetime,Stupiddate) between thisdate and thathdate

Never underestimate the power of human stupidity
RAH

GeneralRe: Sql query to select Date between the range Pin
pavanip26-Feb-09 0:50
pavanip26-Feb-09 0:50 
AnswerRe: Sql query to select Date between the range Pin
Rupesh Kumar Swami25-Feb-09 19:48
Rupesh Kumar Swami25-Feb-09 19:48 
GeneralRe: Sql query to select Date between the range Pin
pavanip25-Feb-09 22:46
pavanip25-Feb-09 22:46 
GeneralRe: Sql query to select Date between the range Pin
Mycroft Holmes25-Feb-09 23:58
professionalMycroft Holmes25-Feb-09 23:58 
QuestionMultiple Database Connections Pin
devi g25-Feb-09 16:23
devi g25-Feb-09 16:23 
QuestionWhat is the best way to place database on client 's machine? Pin
r_mohd25-Feb-09 15:48
r_mohd25-Feb-09 15:48 
AnswerRe: What is the best way to place database on client 's machine? Pin
PIEBALDconsult25-Feb-09 16:06
mvePIEBALDconsult25-Feb-09 16:06 
GeneralRe: What is the best way to place database on client 's machine? Pin
Ashfield26-Feb-09 1:20
Ashfield26-Feb-09 1:20 
AnswerRe: What is the best way to place database on client 's machine? Pin
N a v a n e e t h25-Feb-09 17:16
N a v a n e e t h25-Feb-09 17:16 
QuestionSome Oracle Question Pin
E_Gold25-Feb-09 9:53
E_Gold25-Feb-09 9:53 
AnswerRe: Some Oracle Question Pin
N a v a n e e t h25-Feb-09 17:20
N a v a n e e t h25-Feb-09 17:20 
QuestionHow to impove my query to execute more quickly Pin
dasha_pl25-Feb-09 3:37
dasha_pl25-Feb-09 3:37 
GeneralRe: How to impove my query to execute more quickly Pin
Luc Pattyn25-Feb-09 3:47
sitebuilderLuc Pattyn25-Feb-09 3:47 
GeneralRe: How to impove my query to execute more quickly Pin
dasha_pl25-Feb-09 4:02
dasha_pl25-Feb-09 4:02 
AnswerRe: How to impove my query to execute more quickly Pin
Wendelius25-Feb-09 4:21
mentorWendelius25-Feb-09 4:21 
QuestionSelecting a default always and return the other results after to it Pin
gottimukkala25-Feb-09 2:38
gottimukkala25-Feb-09 2:38 
AnswerRe: Selecting a default always and return the other results after to it Pin
Rob Philpott25-Feb-09 2:53
Rob Philpott25-Feb-09 2:53 

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.