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

Database

 
AnswerRe: Relocate the datbase Pin
Colin Angus Mackay15-Dec-08 3:03
Colin Angus Mackay15-Dec-08 3:03 
QuestionTrigger error. help me plz Pin
Karan_TN14-Dec-08 19:37
Karan_TN14-Dec-08 19:37 
AnswerRe: Trigger error. help me plz Pin
Ashfield14-Dec-08 21:29
Ashfield14-Dec-08 21:29 
AnswerRe: Trigger error. help me plz Pin
Colin Angus Mackay14-Dec-08 23:20
Colin Angus Mackay14-Dec-08 23:20 
QuestionJoining two columns together Pin
Muammar©13-Dec-08 20:23
Muammar©13-Dec-08 20:23 
AnswerRe: Joining two columns together Pin
Mycroft Holmes13-Dec-08 20:37
professionalMycroft Holmes13-Dec-08 20:37 
AnswerRe: Joining two columns together Pin
Mycroft Holmes13-Dec-08 20:38
professionalMycroft Holmes13-Dec-08 20:38 
GeneralRe: Joining two columns together Pin
Muammar©13-Dec-08 21:01
Muammar©13-Dec-08 21:01 
Thanks Holmes,
I've found something but it doesn't work well, maybe you can advise me as I'm not professional when it comes to SQL..

//I'm sorry but I have to get your database dirty with this test table
CREATE TABLE TEST(F1 NUMBER(1),F2 NUMBER(1),F3 NUMBER(1))
/
INSERT INTO TEST VALUES(1,2,3)
/

SELECT X.C1 AS "COLUMN NAME", Y.C2 AS "VALUE"
FROM
(SELECT column_name AS C1 from user_tab_columns where table_name = 'TEST') X,
(
SELECT  F1 AS C2 FROM TEST
UNION
SELECT F2 FROM TEST
UNION
SELECT F3 FROM TEST
) Y
/

The bloody output is:
COLUMN NAME                         VALUE
------------------------------ ----------
F1                                      1
F1                                      2
F1                                      3
F2                                      1
F2                                      2
F2                                      3
F3                                      1
F3                                      2
F3                                      3

9 rows selected.


Why is it matching every left value with all the values?? Please help HolmesFrown | :(


All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)

GeneralRe: Joining two columns together Pin
Mycroft Holmes14-Dec-08 14:03
professionalMycroft Holmes14-Dec-08 14:03 
GeneralRe: Joining two columns together Pin
Muammar©14-Dec-08 18:29
Muammar©14-Dec-08 18:29 
Questioncan't get "# of rows affected" when executing a tored procedure Pin
Mohammad A Gdeisat12-Dec-08 22:48
Mohammad A Gdeisat12-Dec-08 22:48 
AnswerRe: can't get "# of rows affected" when executing a tored procedure Pin
Wendelius13-Dec-08 9:46
mentorWendelius13-Dec-08 9:46 
GeneralRe: can't get "# of rows affected" when executing a tored procedure Pin
Mohammad A Gdeisat13-Dec-08 22:13
Mohammad A Gdeisat13-Dec-08 22:13 
AnswerRe: can't get "# of rows affected" when executing a tored procedure Pin
Mycroft Holmes13-Dec-08 20:34
professionalMycroft Holmes13-Dec-08 20:34 
GeneralRe: can't get "# of rows affected" when executing a tored procedure Pin
Mohammad A Gdeisat13-Dec-08 22:12
Mohammad A Gdeisat13-Dec-08 22:12 
QuestionTranspose rows with columns [modified] Pin
Muammar©12-Dec-08 20:41
Muammar©12-Dec-08 20:41 
AnswerRe: Transpose rows with columns Pin
Mycroft Holmes12-Dec-08 21:58
professionalMycroft Holmes12-Dec-08 21:58 
GeneralRe: Transpose rows with columns Pin
Muammar©12-Dec-08 22:04
Muammar©12-Dec-08 22:04 
GeneralRe: Transpose rows with columns Pin
Mycroft Holmes12-Dec-08 22:18
professionalMycroft Holmes12-Dec-08 22:18 
GeneralRe: Transpose rows with columns Pin
Muammar©13-Dec-08 0:36
Muammar©13-Dec-08 0:36 
Questionabout connection to informix database server for connection Pin
rajendrarmv112-Dec-08 20:33
rajendrarmv112-Dec-08 20:33 
AnswerRe: about connection to informix database server for connection Pin
rajendrarmv112-Dec-08 21:13
rajendrarmv112-Dec-08 21:13 
AnswerRe: about connection to informix database server for connection Pin
Mycroft Holmes12-Dec-08 22:03
professionalMycroft Holmes12-Dec-08 22:03 
QuestionDuplicate fields ? Pin
Mohammad Dayyan12-Dec-08 17:02
Mohammad Dayyan12-Dec-08 17:02 
AnswerRe: Duplicate fields ? Pin
Mycroft Holmes12-Dec-08 22:06
professionalMycroft Holmes12-Dec-08 22:06 

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.