Click here to Skip to main content
15,881,248 members
Home / Discussions / Database
   

Database

 
Questionchecking database Pin
abhinish15-Oct-05 1:11
abhinish15-Oct-05 1:11 
AnswerRe: checking database Pin
Colin Angus Mackay15-Oct-05 2:07
Colin Angus Mackay15-Oct-05 2:07 
GeneralRe: checking database Pin
abhinish16-Oct-05 0:01
abhinish16-Oct-05 0:01 
Questionado vc++ - datetime string or numbers to variant Pin
compoundeye14-Oct-05 20:55
compoundeye14-Oct-05 20:55 
Questioncomplex query Pin
Joshua Lunsford14-Oct-05 12:02
Joshua Lunsford14-Oct-05 12:02 
AnswerRe: complex query Pin
Colin Angus Mackay14-Oct-05 13:14
Colin Angus Mackay14-Oct-05 13:14 
GeneralRe: complex query Pin
Joshua Lunsford17-Oct-05 11:49
Joshua Lunsford17-Oct-05 11:49 
AnswerRe: complex query Pin
miah alom17-Oct-05 4:46
miah alom17-Oct-05 4:46 
Here you go

CREATE TABLE dbo.ctm
(
Type varchar(32) NULL,
Indx int NULL,
Val varchar(32) NULL
)
go


Insert ctm Values('VER', 1, '8.0.0')
Insert ctm Values('VDF', 1, '4417')
Insert ctm Values('DRL', 1, '10/13/2005')
Insert ctm Values('ACT', 1, 'VirusScan Running')
Insert ctm Values('DIN', 1, '05/05/2005')
Insert ctm Values('NMM', 1, 'Network Associates')
Insert ctm Values('NMP', 1, 'McAfee VirusScan Enterprise')
Insert ctm Values('NMP', 2, 'MarimbaEndPoint')
Insert ctm Values('NMM', 2, 'Marimba Inc.')
Insert ctm Values('DIN', 2, '04/01/2004')
Insert ctm Values('ACT', 2, 'Marimba Running')
Insert ctm Values('VER', 2, '6.0')

select t1.Val1, ctm.Type, t1.Indx, ctm.Val from ctm
inner join
(select distinct Indx, case when Type = 'NMP' then Val end as Val1 from ctm) as t1
on t1.Indx = ctm.Indx
where Type <> 'NMP' and t1.Val1 <> null
QuestionADO.NET Update / delete without primary keys Pin
Jasonc22114-Oct-05 11:10
Jasonc22114-Oct-05 11:10 
AnswerRe: ADO.NET Update / delete without primary keys Pin
miah alom17-Oct-05 5:52
miah alom17-Oct-05 5:52 
GeneralRe: ADO.NET Update / delete without primary keys Pin
Jasonc22117-Oct-05 7:33
Jasonc22117-Oct-05 7:33 
GeneralRe: ADO.NET Update / delete without primary keys Pin
miah alom17-Oct-05 8:35
miah alom17-Oct-05 8:35 
GeneralRe: ADO.NET Update / delete without primary keys Pin
Jasonc22118-Oct-05 9:22
Jasonc22118-Oct-05 9:22 
GeneralRe: ADO.NET Update / delete without primary keys Pin
l a u r e n21-Oct-05 15:04
l a u r e n21-Oct-05 15:04 
AnswerRe: ADO.NET Update / delete without primary keys Pin
S Douglas20-Oct-05 1:45
professionalS Douglas20-Oct-05 1:45 
AnswerRe: ADO.NET Update / delete without primary keys Pin
l a u r e n21-Oct-05 15:06
l a u r e n21-Oct-05 15:06 
GeneralRe: ADO.NET Update / delete without primary keys Pin
Jasonc22124-Oct-05 12:37
Jasonc22124-Oct-05 12:37 
QuestionSQL connection in servicedcomponents Pin
eliprand14-Oct-05 5:43
eliprand14-Oct-05 5:43 
AnswerRe: SQL connection in servicedcomponents Pin
eliprand14-Oct-05 6:08
eliprand14-Oct-05 6:08 
QuestionHow does Oracle support unicode text? Pin
Xiangyang Liu 刘向阳14-Oct-05 5:35
Xiangyang Liu 刘向阳14-Oct-05 5:35 
AnswerRe: How does Oracle support unicode text? Pin
DiWa14-Oct-05 19:30
DiWa14-Oct-05 19:30 
GeneralRe: How does Oracle support unicode text? Pin
Xiangyang Liu 刘向阳14-Oct-05 19:50
Xiangyang Liu 刘向阳14-Oct-05 19:50 
QuestionConnection String Pin
kenexcelon13-Oct-05 14:27
kenexcelon13-Oct-05 14:27 
AnswerRe: Connection String Pin
Mike Dimmick14-Oct-05 4:42
Mike Dimmick14-Oct-05 4:42 
GeneralRe: Connection String Pin
Anonymous14-Oct-05 15:32
Anonymous14-Oct-05 15:32 

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.