Click here to Skip to main content
15,902,938 members
Home / Discussions / Database
   

Database

 
AnswerRe: Typed vs ubtyped datasets Pin
Nouman Bhatti7-Aug-07 19:36
Nouman Bhatti7-Aug-07 19:36 
QuestionUpdate command..., Pin
Member 38798817-Aug-07 18:33
Member 38798817-Aug-07 18:33 
AnswerRe: Update command..., Pin
HemMagesh7-Aug-07 20:10
HemMagesh7-Aug-07 20:10 
GeneralRe: Update command..., Pin
Blue_Boy8-Aug-07 0:38
Blue_Boy8-Aug-07 0:38 
QuestionCrossTab Pin
Amit Kumar G7-Aug-07 15:28
Amit Kumar G7-Aug-07 15:28 
AnswerRe: CrossTab Pin
Pete O'Hanlon7-Aug-07 22:09
mvePete O'Hanlon7-Aug-07 22:09 
GeneralRe: CrossTab Pin
Amit Kumar G8-Aug-07 2:32
Amit Kumar G8-Aug-07 2:32 
AnswerRe: CrossTab Pin
fasih19818-Aug-07 3:00
fasih19818-Aug-07 3:00 
see the following example : it may help u (run it in sql query analyser)

CREATE TABLE #T1(id int,Name varchar(10))

insert into #T1 (id,Name) values (1,'Haris')
insert into #T1 (id,Name) values (2,'Arshad')
--select * from #T1


CREATE TABLE #T2(id int,Name varchar(5))

insert into #T2 (id,Name) values (1,'X')
insert into #T2 (id,Name) values (2,'Y')
insert into #T2 (id,Name) values (1,'Z')
insert into #T2 (id,Name) values (1,'X')

SELECT Id,Emp,X,Y,Z
FROM
(
SELECT #T1.Id,#T1.Name AS Emp,#T2.Name
FROM #T1
INNER JOIN #T2 ON #T2.Id = #T1.Id
) s
PIVOT
(
COUNT(Name)
FOR Name IN (X,Y,Z)
) p
drop table #T1
drop table #T2

fasih_is_my_signature

GeneralRe: CrossTab Pin
Amit Kumar G8-Aug-07 5:12
Amit Kumar G8-Aug-07 5:12 
QuestionSQL and Microsoft Access Pin
daalle27-Aug-07 10:18
daalle27-Aug-07 10:18 
AnswerRe: SQL and Microsoft Access Pin
Kschuler8-Aug-07 8:17
Kschuler8-Aug-07 8:17 
QuestionWhy @@Error Is not Working Pin
Amit Kumar G7-Aug-07 8:08
Amit Kumar G7-Aug-07 8:08 
AnswerRe: Why @@Error Is not Working Pin
fasih19817-Aug-07 21:05
fasih19817-Aug-07 21:05 
QuestionAdding method for GridView DeleteButton for to OnClick event Pin
--miCZar--7-Aug-07 5:11
--miCZar--7-Aug-07 5:11 
Questionno query analyser Pin
hepsy.i7-Aug-07 0:59
hepsy.i7-Aug-07 0:59 
AnswerRe: no query analyser Pin
Pete O'Hanlon7-Aug-07 1:30
mvePete O'Hanlon7-Aug-07 1:30 
AnswerRe: no query analyser Pin
Vasudevan Deepak Kumar7-Aug-07 2:49
Vasudevan Deepak Kumar7-Aug-07 2:49 
AnswerDataAdapter [modified] Pin
Baz7-Aug-07 0:23
Baz7-Aug-07 0:23 
GeneralRe: DataAdapter Pin
Pete O'Hanlon7-Aug-07 1:40
mvePete O'Hanlon7-Aug-07 1:40 
GeneralRe: DataAdapter Pin
Baz7-Aug-07 1:53
Baz7-Aug-07 1:53 
GeneralRe: DataAdapter Pin
Pete O'Hanlon7-Aug-07 2:06
mvePete O'Hanlon7-Aug-07 2:06 
QuestionLogin Pin
SVb.net7-Aug-07 0:03
SVb.net7-Aug-07 0:03 
AnswerRe: Login [modified] Pin
Krish - KP7-Aug-07 1:56
Krish - KP7-Aug-07 1:56 
Questionnewbie: returning multiple top 30 items Pin
Phillip Hodges6-Aug-07 23:37
Phillip Hodges6-Aug-07 23:37 
AnswerRe: newbie: returning multiple top 30 items Pin
Colin Angus Mackay6-Aug-07 23:44
Colin Angus Mackay6-Aug-07 23:44 

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.