Click here to Skip to main content
15,908,115 members
Home / Discussions / Database
   

Database

 
AnswerRe: MultiLine Cell in DataGridView Pin
Frank Kerrigan18-Sep-07 2:42
Frank Kerrigan18-Sep-07 2:42 
QuestionOrder by Pin
Sebastian T Xavier16-Sep-07 19:19
Sebastian T Xavier16-Sep-07 19:19 
AnswerRe: Order by Pin
Blue_Boy16-Sep-07 20:36
Blue_Boy16-Sep-07 20:36 
GeneralRe: Order by Pin
Sebastian T Xavier16-Sep-07 20:58
Sebastian T Xavier16-Sep-07 20:58 
GeneralRe: Order by Pin
Colin Angus Mackay16-Sep-07 21:25
Colin Angus Mackay16-Sep-07 21:25 
GeneralRe: Order by Pin
Sebastian T Xavier16-Sep-07 23:08
Sebastian T Xavier16-Sep-07 23:08 
GeneralRe: Order by Pin
Colin Angus Mackay17-Sep-07 2:21
Colin Angus Mackay17-Sep-07 2:21 
AnswerRe: Order by Pin
Krish - KP16-Sep-07 21:25
Krish - KP16-Sep-07 21:25 
is this what you are looking for ....

select case when c1 = '31-dec-9999' then null else c1 end as c1 <br />
from (<br />
	select top 1000 * <br />
	from (<br />
			select case when c1 is null then '31-dec-9999' else c1 end as c1 from a <br />
		)a order by c1<br />
	)a



i've checked this query with following sample table and data

CREATE TABLE a (c1 datetime)

insert into a values('01-jan-07')
insert into a values(null)
insert into a values('21-jan-07')
insert into a values('10-jan-07')
insert into a values('11-apr-07')
insert into a values(null)
insert into a values('10-apr-07')
insert into a values(null)
insert into a values('30-apr-07')

and output is
2007-01-01 00:00:00.000
2007-01-10 00:00:00.000
2007-01-21 00:00:00.000
2007-04-10 00:00:00.000
2007-04-11 00:00:00.000
2007-04-30 00:00:00.000
NULL
NULL
NULL


Regards
KP

GeneralRe: Order by Pin
Sebastian T Xavier16-Sep-07 23:11
Sebastian T Xavier16-Sep-07 23:11 
GeneralRe: Order by Pin
Krish - KP16-Sep-07 23:42
Krish - KP16-Sep-07 23:42 
QuestionLogin control help Pin
sjp70016-Sep-07 8:45
sjp70016-Sep-07 8:45 
AnswerRe: Login control help Pin
Colin Angus Mackay16-Sep-07 11:42
Colin Angus Mackay16-Sep-07 11:42 
QuestionMaintaining a maximum number of rows in a table, by date Pin
chaiguy133716-Sep-07 5:30
chaiguy133716-Sep-07 5:30 
AnswerRe: Maintaining a maximum number of rows in a table, by date Pin
Colin Angus Mackay16-Sep-07 11:40
Colin Angus Mackay16-Sep-07 11:40 
GeneralRe: Maintaining a maximum number of rows in a table, by date Pin
chaiguy133716-Sep-07 14:52
chaiguy133716-Sep-07 14:52 
GeneralRe: Maintaining a maximum number of rows in a table, by date Pin
Colin Angus Mackay16-Sep-07 21:10
Colin Angus Mackay16-Sep-07 21:10 
GeneralRe: Maintaining a maximum number of rows in a table, by date Pin
chaiguy133717-Sep-07 2:59
chaiguy133717-Sep-07 2:59 
QuestionIs it possible to have a global untyped dataset Pin
steve_rm16-Sep-07 0:31
steve_rm16-Sep-07 0:31 
QuestionPROCEDURE Update Pin
TAREQ F ABUZUHRI15-Sep-07 23:18
TAREQ F ABUZUHRI15-Sep-07 23:18 
AnswerRe: PROCEDURE Update Pin
TAREQ F ABUZUHRI15-Sep-07 23:22
TAREQ F ABUZUHRI15-Sep-07 23:22 
Questionselect * where clause Pin
amraouf15-Sep-07 21:26
amraouf15-Sep-07 21:26 
AnswerRe: select * where clause Pin
Colin Angus Mackay16-Sep-07 1:03
Colin Angus Mackay16-Sep-07 1:03 
GeneralRe: select * where clause Pin
amraouf16-Sep-07 6:14
amraouf16-Sep-07 6:14 
GeneralRe: select * where clause Pin
Paul Conrad16-Sep-07 6:51
professionalPaul Conrad16-Sep-07 6:51 
GeneralRe: select * where clause Pin
Colin Angus Mackay16-Sep-07 9:58
Colin Angus Mackay16-Sep-07 9:58 

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.