Click here to Skip to main content
15,894,180 members
Home / Discussions / Database
   

Database

 
QuestionCalculating the space occupied by each row in a table Pin
vijay25835-Jul-07 20:14
vijay25835-Jul-07 20:14 
AnswerRe: Calculating the space occupied by each row in a table Pin
Vishu Gurav6-Jul-07 11:13
Vishu Gurav6-Jul-07 11:13 
GeneralRe: Calculating the space occupied by each row in a table Pin
vijay25837-Jul-07 4:23
vijay25837-Jul-07 4:23 
AnswerRe: Calculating the space occupied by each row in a table Pin
Vishu Gurav7-Jul-07 13:26
Vishu Gurav7-Jul-07 13:26 
QuestionRe: Calculating the space occupied by each row in a table Pin
vijay25839-Jul-07 0:01
vijay25839-Jul-07 0:01 
AnswerRe: Calculating the space occupied by each row in a table Pin
Vishu Gurav9-Jul-07 6:44
Vishu Gurav9-Jul-07 6:44 
QuestionRe: Calculating the space occupied by each row in a table Pin
Vishu Gurav10-Jul-07 17:00
Vishu Gurav10-Jul-07 17:00 
QuestionProblem displaying colums as rows => need help Pin
masyarial5-Jul-07 16:09
masyarial5-Jul-07 16:09 
Hi, I have simple table1 like this:
name type value
-----------------------
aa A 0.1
aa B 0.2
aa C 0.3
bb A 0.4
bb B 0.5
bb C 0.6

Then, I doing the code from Krish
SELECT nama,
CASE WHEN test_type = 'A' THEN value ELSE 0 END AS 'A',
CASE WHEN test_type = 'B' THEN value ELSE 0 END AS 'B',
CASE WHEN test_type = 'C' THEN value ELSE 0 END AS 'C'
FROM table1

But the result is:
name A B C
--------------------------
aa 0.1 0 0
aa 0 0.2 0
aa 0 0 0.3
bb 0.4 0 0
bb 0 0.5 0
bb 0 0 0.6

But, I'm expecting table like this:
name A B C
--------------------------
aa 0.1 0.2 0.3
bb 0.4 0.5 0.6

Thanks a lot !!!
AnswerRe: Problem displaying colums as rows => revised Pin
masyarial5-Jul-07 21:36
masyarial5-Jul-07 21:36 
QuestionSQL Server 2005 Changing Table Names Pin
Richard Andrew x645-Jul-07 14:50
professionalRichard Andrew x645-Jul-07 14:50 
AnswerRe: SQL Server 2005 Changing Table Names Pin
originSH5-Jul-07 22:09
originSH5-Jul-07 22:09 
QuestionBind with an intermediate table Pin
Richard Blythe5-Jul-07 10:24
Richard Blythe5-Jul-07 10:24 
AnswerRe: Bind with an intermediate table Pin
Humble Programmer6-Jul-07 6:26
Humble Programmer6-Jul-07 6:26 
QuestionADO and MSACCESS [modified] Pin
AmirAlilou5-Jul-07 2:39
AmirAlilou5-Jul-07 2:39 
AnswerRe: ADO and MSACCESS Pin
martin_hughes5-Jul-07 3:11
martin_hughes5-Jul-07 3:11 
GeneralRe: ADO and MSACCESS Pin
AmirAlilou5-Jul-07 3:18
AmirAlilou5-Jul-07 3:18 
AnswerRe: ADO and MSACCESS Pin
martin_hughes5-Jul-07 5:49
martin_hughes5-Jul-07 5:49 
GeneralRe: ADO and MSACCESS Pin
AmirAlilou5-Jul-07 6:16
AmirAlilou5-Jul-07 6:16 
GeneralRe: ADO and MSACCESS Pin
martin_hughes5-Jul-07 7:00
martin_hughes5-Jul-07 7:00 
GeneralRe: ADO and MSACCESS Pin
AmirAlilou5-Jul-07 7:48
AmirAlilou5-Jul-07 7:48 
Questionerror while try to attach database to sql server2005 Pin
combo_ci5-Jul-07 1:01
combo_ci5-Jul-07 1:01 
AnswerRe: error while try to attach database to sql server2005 Pin
kubben5-Jul-07 2:40
kubben5-Jul-07 2:40 
GeneralAgent Job error Pin
Mircea Grelus5-Jul-07 0:30
Mircea Grelus5-Jul-07 0:30 
Questionhi...How to store datas temp in database Pin
Exelioindia4-Jul-07 23:38
Exelioindia4-Jul-07 23:38 
AnswerRe: hi...How to store datas temp in database Pin
originSH4-Jul-07 23:48
originSH4-Jul-07 23:48 

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.