Click here to Skip to main content
15,889,403 members
Home / Discussions / Database
   

Database

 
AnswerRe: primary key and foreign key Pin
sam#31-May-07 19:07
sam#31-May-07 19:07 
QuestionSetFieldValue Pin
hero199531-May-07 17:32
hero199531-May-07 17:32 
AnswerRe: SetFieldValue Pin
Mike Dimmick1-Jun-07 3:20
Mike Dimmick1-Jun-07 3:20 
QuestionError with SQL Server 2005 Endpoints Pin
duaatul31-May-07 6:19
duaatul31-May-07 6:19 
QuestionFuzzy Grouping performance issue Pin
seee sharp31-May-07 6:18
seee sharp31-May-07 6:18 
QuestionConvert SQL datetime to just date Pin
kozu31-May-07 5:29
kozu31-May-07 5:29 
AnswerRe: Convert SQL datetime to just date Pin
kubben31-May-07 5:36
kubben31-May-07 5:36 
GeneralRe: Convert SQL datetime to just date Pin
kozu31-May-07 6:01
kozu31-May-07 6:01 
Kubben,
Thanks for the reply, but changing the where clause didn't work. I need to change the 'convert' part of the select in order to alter how the data is being displayed, but to what?

I tried casting it to char, and it partially fixed my problem:

select cast(OrderDate as char(11)), SUM(Qty)
from Orders
where convert(datetime,convert(char(10),OrderDate,101)) between '05/29/05' and '06/10/05'
group by cast(OrderDate as char(11))
order by cast(OrderDate as char(11))

The result is:

Jun 1 2005 2
Jun 2 2005 1
May 30 2005 1

but now the problem is that the ordering will be done alphabetically and not by date.
stuck again Frown | :(
AnswerRe: Convert SQL datetime to just date Pin
Shahil Shah31-May-07 6:13
Shahil Shah31-May-07 6:13 
GeneralRe: Convert SQL datetime to just date Pin
kozu31-May-07 6:24
kozu31-May-07 6:24 
GeneralRe: Convert SQL datetime to just date Pin
kozu31-May-07 6:36
kozu31-May-07 6:36 
GeneralRe: Convert SQL datetime to just date Pin
Shahil Shah31-May-07 6:38
Shahil Shah31-May-07 6:38 
AnswerRe: Convert SQL datetime to just date Pin
Michael Potter31-May-07 9:45
Michael Potter31-May-07 9:45 
QuestionPlease Heeelp - connection error driving me crazy Pin
ComCoderCsharp31-May-07 4:11
ComCoderCsharp31-May-07 4:11 
AnswerRe: Please Heeelp - connection error driving me crazy Pin
Colin Angus Mackay31-May-07 4:17
Colin Angus Mackay31-May-07 4:17 
GeneralRe: Please Heeelp - connection error driving me crazy Pin
ComCoderCsharp31-May-07 5:07
ComCoderCsharp31-May-07 5:07 
GeneralRe: Please Heeelp - connection error driving me crazy Pin
Colin Angus Mackay31-May-07 8:13
Colin Angus Mackay31-May-07 8:13 
QuestionHow to check if a field already exists in a table Pin
SWDevil31-May-07 3:13
SWDevil31-May-07 3:13 
AnswerRe: How to check if a field already exists in a table Pin
Colin Angus Mackay31-May-07 4:14
Colin Angus Mackay31-May-07 4:14 
GeneralRe: How to check if a field already exists in a table Pin
SWDevil31-May-07 5:12
SWDevil31-May-07 5:12 
GeneralRe: How to check if a field already exists in a table Pin
Colin Angus Mackay31-May-07 8:14
Colin Angus Mackay31-May-07 8:14 
GeneralNormalising Single Table to Two Pin
Brady Kelly31-May-07 2:06
Brady Kelly31-May-07 2:06 
GeneralRe: Normalising Single Table to Two Pin
kubben31-May-07 2:34
kubben31-May-07 2:34 
GeneralRe: Normalising Single Table to Two Pin
Brady Kelly31-May-07 3:17
Brady Kelly31-May-07 3:17 
GeneralRe: Normalising Single Table to Two Pin
kubben31-May-07 3:23
kubben31-May-07 3:23 

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.