Hello All, Could any well write a query for the following
scenario.
Account(table name)
No Name Amount
1 ABCD 2000.00
2 DEFG -2000.00
3 GHIJ 3000.50
4 JKLM 4000.00
5 MNOP 6000.00
O/p Should be in this format
No Name Credit Debit
1 ABCD 2000.00 0
2 DEFG 0 -2000.00
3 GHIJ 3000.50
4 JKLM 0 -4000.00
5 MNOP 6000.00 o
could any one give appropriate query for this
Thnks in Advance
Suneel Reddy
Answer Posted / suresh kumar somayajula
Select No,Name,to_char(Sal,'$9999.99') amount from emp;
| Is This Answer Correct ? | 0 Yes | 12 No |
Post New Answer View All Answers
Is clustered index a primary key?
What are crud methods?
What are the advantages of pl sql over sql?
What is consistency?
What is delimiter in pl sql?
what are all the different types of indexes? : Sql dba
How do I save the results of sql query in a file?
Why plvtab is considered as the easiest way to access the pl/sql table?
Explain alias in sql?
How many primary keys can a table have?
how to start mysql server? : Sql dba
Why is %isopen always false for an implicit cursor?
Can two tables have same primary key?
what are the different type of sql's statements ? : Sql dba
What is multiple columns?