Click here to Skip to main content
15,917,174 members
Home / Discussions / Database
   

Database

 
GeneralRe: Find tables used in stored procedures Pin
Corporal Agarn5-Jan-10 8:09
professionalCorporal Agarn5-Jan-10 8:09 
GeneralRe: Find tables used in stored procedures Pin
Eddy Vluggen5-Jan-10 9:21
professionalEddy Vluggen5-Jan-10 9:21 
GeneralRe: Find tables used in stored procedures Pin
Corporal Agarn5-Jan-10 9:38
professionalCorporal Agarn5-Jan-10 9:38 
QuestionOracle 10g server is not starting on system startup Pin
A k ch4-Jan-10 23:11
A k ch4-Jan-10 23:11 
AnswerRe: Oracle 10g server is not starting on system startup Pin
Eddy Vluggen5-Jan-10 7:37
professionalEddy Vluggen5-Jan-10 7:37 
QuestionGROUP BY Clause... Pin
Illegal Operation4-Jan-10 15:28
Illegal Operation4-Jan-10 15:28 
AnswerRe: GROUP BY Clause... Pin
Niladri_Biswas4-Jan-10 15:56
Niladri_Biswas4-Jan-10 15:56 
AnswerRe: GROUP BY Clause... [modified] Pin
Mycroft Holmes4-Jan-10 19:07
professionalMycroft Holmes4-Jan-10 19:07 
Group by only the date part of the datetime, modified being the datetime field

GROUP BY CONVERT(DATETIME,Modified,103)


[edit] the above does not work, if you are usiong 2008 the following will work using the new DATE data type.

SELECT COUNT(*)
FROM EquityCounter
GROUP BY CONVERT(DATE,Modified)


If you are using 2005 I would suggest chopping up the string daettime like so:

GROUP BY CONVERT(DATETIME,LEFT(CONVERT(VARCHAR(50),Modified),11))


[/edit]

Still gotta be better than a temp table!

Never underestimate the power of human stupidity
RAH

modified on Tuesday, January 5, 2010 1:16 AM

GeneralRe: GROUP BY Clause... Pin
J4amieC4-Jan-10 21:52
J4amieC4-Jan-10 21:52 
GeneralRe: GROUP BY Clause... Pin
Mycroft Holmes4-Jan-10 22:42
professionalMycroft Holmes4-Jan-10 22:42 
QuestionGeneral Performance Question Pin
#realJSOP4-Jan-10 11:22
professional#realJSOP4-Jan-10 11:22 
AnswerRe: General Performance Question Pin
Eddy Vluggen4-Jan-10 12:15
professionalEddy Vluggen4-Jan-10 12:15 
GeneralRe: General Performance Question Pin
#realJSOP4-Jan-10 12:21
professional#realJSOP4-Jan-10 12:21 
GeneralRe: General Performance Question Pin
Eddy Vluggen4-Jan-10 13:22
professionalEddy Vluggen4-Jan-10 13:22 
GeneralRe: General Performance Question Pin
#realJSOP4-Jan-10 14:32
professional#realJSOP4-Jan-10 14:32 
AnswerRe: General Performance Question Pin
Mycroft Holmes4-Jan-10 13:13
professionalMycroft Holmes4-Jan-10 13:13 
AnswerRe: General Performance Question Pin
Mycroft Holmes4-Jan-10 19:01
professionalMycroft Holmes4-Jan-10 19:01 
GeneralRe: General Performance Question Pin
#realJSOP4-Jan-10 23:25
professional#realJSOP4-Jan-10 23:25 
GeneralRe: General Performance Question Pin
Mycroft Holmes5-Jan-10 0:12
professionalMycroft Holmes5-Jan-10 0:12 
AnswerRe: General Performance Question Pin
David Skelly5-Jan-10 2:10
David Skelly5-Jan-10 2:10 
GeneralRe: General Performance Question Pin
#realJSOP6-Jan-10 0:35
professional#realJSOP6-Jan-10 0:35 
GeneralRe: General Performance Question Pin
David Skelly6-Jan-10 2:24
David Skelly6-Jan-10 2:24 
AnswerRe: General Performance Question Pin
Tim Carmichael5-Jan-10 6:31
Tim Carmichael5-Jan-10 6:31 
GeneralRe: General Performance Question Pin
#realJSOP6-Jan-10 0:36
professional#realJSOP6-Jan-10 0:36 
QuestionUpdating Data on Other Server?? [modified] Pin
AmbiguousName4-Jan-10 7:05
AmbiguousName4-Jan-10 7:05 

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.