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
what is top in tsql? : Transact sql
What is a recursive stored procedure?
what is a composite key ? : Sql dba
What is sql scripting?
What is union?
Describe sql comments?
What is the basic form of sql query?
How many disk partitions should I have?
Explain polymorphism in pl/sql.
Explain what is a subquery ?
What is the difference between joins?
What is java sql connection?
What is cold data?
Is join and inner join the same?
What is dcl in sql?