Click here to Skip to main content
15,914,780 members
Home / Discussions / Database
   

Database

 
GeneralRe: Date Convertion Pin
That's Aragon7-Jun-11 20:21
That's Aragon7-Jun-11 20:21 
AnswerRe: Date Convertion Pin
jschell7-Jun-11 10:11
jschell7-Jun-11 10:11 
AnswerRe: Date Convertion Pin
Prasanta_Prince9-Jun-11 1:21
Prasanta_Prince9-Jun-11 1:21 
QuestionHow to build this partial SUM... Pin
Jun Du3-Jun-11 4:47
Jun Du3-Jun-11 4:47 
AnswerRe: How to build this partial SUM... Pin
Blue_Boy3-Jun-11 4:50
Blue_Boy3-Jun-11 4:50 
AnswerRe: How to build this partial SUM... Pin
Corporal Agarn3-Jun-11 4:57
professionalCorporal Agarn3-Jun-11 4:57 
AnswerRe: How to build this partial SUM... Pin
David Mujica3-Jun-11 5:21
David Mujica3-Jun-11 5:21 
AnswerRe: How to build this partial SUM... [modified] Pin
Luc Pattyn3-Jun-11 6:07
sitebuilderLuc Pattyn3-Jun-11 6:07 
Jun Du wrote:
Does ">" or "<" work?

yes, all operators work on strings that represent numbers, provided the number of characters is constant (i.e. leading zeroes are used when fewer significant digits would be present). Under these conditions alphabetical and numerical sort order is the same [ADDED] for positive integer numbers [/ADDED].

and yes, date sorting chronologically and numerically works the same provided your date, time or datetime is structured from most significant to least significant, so year first, then month, then day, then hour.

therefore, when having YYYYMM (with leading zeroes in MM!), all sort orders are the same (alpha, numeric, chrono).

Nevertheless, it is always wise to store date, time, datetime information in an appropriate type, not a string.

Smile | :)
Luc Pattyn [My Articles] Nil Volentibus Arduum
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Please use <PRE> tags for code snippets, they improve readability.
CP Vanity has been updated to V2.3

modified on Sunday, June 5, 2011 1:03 PM

GeneralRe: How to build this partial SUM... Pin
dasblinkenlight5-Jun-11 7:08
dasblinkenlight5-Jun-11 7:08 
GeneralRe: How to build this partial SUM... Pin
J4amieC6-Jun-11 6:19
J4amieC6-Jun-11 6:19 
GeneralRe: How to build this partial SUM... Pin
dasblinkenlight6-Jun-11 6:38
dasblinkenlight6-Jun-11 6:38 
QuestionTop 1 distinct or something like that Pin
Paul E Davies2-Jun-11 23:21
Paul E Davies2-Jun-11 23:21 
AnswerRe: Top 1 distinct or something like that Pin
Blue_Boy2-Jun-11 23:49
Blue_Boy2-Jun-11 23:49 
GeneralRe: Top 1 distinct or something like that Pin
Paul E Davies3-Jun-11 0:44
Paul E Davies3-Jun-11 0:44 
GeneralRe: Top 1 distinct or something like that Pin
Blue_Boy3-Jun-11 1:06
Blue_Boy3-Jun-11 1:06 
AnswerRe: Top 1 distinct or something like that Pin
dasblinkenlight3-Jun-11 1:20
dasblinkenlight3-Jun-11 1:20 
GeneralRe: Top 1 distinct or something like that Pin
David Mujica3-Jun-11 2:43
David Mujica3-Jun-11 2:43 
GeneralRe: Top 1 distinct or something like that Pin
Paul E Davies3-Jun-11 3:33
Paul E Davies3-Jun-11 3:33 
AnswerRe: Top 1 distinct or something like that Pin
Simon_Whale3-Jun-11 1:32
Simon_Whale3-Jun-11 1:32 
QuestionSQL Server: One connection vs Connection Per Client Pin
Eli Nurman2-Jun-11 5:59
Eli Nurman2-Jun-11 5:59 
AnswerRe: SQL Server: One connection vs Connection Per Client Pin
David Mujica2-Jun-11 6:14
David Mujica2-Jun-11 6:14 
AnswerRe: SQL Server: One connection vs Connection Per Client Pin
jschell2-Jun-11 9:48
jschell2-Jun-11 9:48 
QuestionDistinct + Count Pin
JP_Rocks1-Jun-11 23:51
JP_Rocks1-Jun-11 23:51 
AnswerRe: Distinct + Count Pin
Ravi Sant1-Jun-11 23:56
Ravi Sant1-Jun-11 23:56 
GeneralRe: Distinct + Count Pin
JP_Rocks2-Jun-11 0:03
JP_Rocks2-Jun-11 0:03 

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.