Click here to Skip to main content
15,891,657 members
Home / Discussions / Database
   

Database

 
AnswerRe: SQL Server 2008 Pin
Blue_Boy7-Jun-11 1:28
Blue_Boy7-Jun-11 1:28 
GeneralRe: SQL Server 2008 Pin
Member 46502877-Jun-11 2:03
Member 46502877-Jun-11 2:03 
GeneralRe: SQL Server 2008 Pin
Blue_Boy7-Jun-11 4:08
Blue_Boy7-Jun-11 4:08 
AnswerRe: SQL Server 2008 Pin
Corporal Agarn7-Jun-11 3:34
professionalCorporal Agarn7-Jun-11 3:34 
AnswerRe: SQL Server 2008 Pin
thatraja7-Jun-11 9:49
professionalthatraja7-Jun-11 9:49 
GeneralRe: SQL Server 2008 Pin
Member 46502877-Jun-11 19:37
Member 46502877-Jun-11 19:37 
AnswerRe: SQL Server 2008 Pin
jschell7-Jun-11 10:09
jschell7-Jun-11 10:09 
QuestionDate Convertion Pin
yesu prakash6-Jun-11 23:02
yesu prakash6-Jun-11 23:02 
Hi,
When i execute the query

select convert(varchar(2),datepart(day,'2011-11-06'))

the result i get is 6, i need to get the answer as 06 if only one digit, if 2 then no need of 0 in the first place.
How to get that?

Regards,
YPKI
AnswerRe: Date Convertion Pin
That's Aragon7-Jun-11 1:09
That's Aragon7-Jun-11 1:09 
AnswerRe: Date Convertion Pin
Blue_Boy7-Jun-11 1:12
Blue_Boy7-Jun-11 1:12 
GeneralRe: Date Convertion Pin
Corporal Agarn7-Jun-11 5:29
professionalCorporal Agarn7-Jun-11 5:29 
AnswerRe: Date Convertion [modified] Pin
Tim Carmichael7-Jun-11 9:21
Tim Carmichael7-Jun-11 9:21 
QuestionRe: Date Convertion Pin
Luc Pattyn7-Jun-11 9:45
sitebuilderLuc Pattyn7-Jun-11 9:45 
GeneralRe: Date Convertion Pin
Tim Carmichael7-Jun-11 9:50
Tim Carmichael7-Jun-11 9:50 
GeneralRe: Date Convertion Pin
yesu prakash7-Jun-11 18:10
yesu prakash7-Jun-11 18:10 
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 
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 

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.