How to use alias name for a column in sql query [message #315590] |
Tue, 22 April 2008 01:41 |
yogeshyl
Messages: 50 Registered: October 2007 Location: Silvassa
|
Member |
|
|
I have a column TD_SUB_ACNT_CODE in Oracle table. I want to split the details in this column in two columns namely Debit and Credit. How could i use the same column for this purpose?
The column contains the following data:
E0516001
E0522003
E0522004
A0402004
E0522002
A0402004
Here the account code A0402004 should be displayed separately in Credit column, and the other details in Debit column.
Kindly sugget?
Yogesh
|
|
|
|
|
|