----> There is a table T with two columns C1 and C2.
The data is as below:
C1 C2
1 4
2 5
3 6
Answers were Sorted based on User's Feedback
Answer / a.brahmam
please i want display the result as :
1 2 3
4 5 6
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / nihar meher
select replace(wm_concat(c1),',',' '),replace(wm_concat(c2),',',' ') from t;
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / ramaraju
select c1 as c1 from t1
union
select c2 as c1 from t1;
try this one.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / bhanuprakash d
select listagg(c1,' ') within group (order by c1) from T
union
select listagg(c2,' ') within group (order by c2) from T
| Is This Answer Correct ? | 0 Yes | 0 No |
What is db journal file?
Why do we need sharding?
how to enter characters as hex numbers? : Sql dba
Where is pl sql used?
What is the difference between unique and primary key constraints?
What are two statement types in sql?
How can I tell if sql is running?
What's the procedure?
Differences between Oracle 9i and 10g (Probably in terms of SQL and PL/SQL)?
which operator is used in query for pattern matching? : Sql dba
What does “select count(1) from tab” result?
consider a table which contain 4 columns,ename,eno,sal and deptno, from this table i want to know ename who having maximum salary in deptno 10 and 20.
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)