Search
 
SCRIPT & CODE EXAMPLE
 

SQL

convert rows into columns in oracle

SELECT * FROM
( SELECT column1,column2
FROM
tables
WHERE conditions
)
PIVOT
(
aggregate_function(column2)
FOR column2
IN ( expr1, expr2, ... expr_n ) | subquery ) 

order by expression[asc | desc];
Comment

PREVIOUS NEXT
Code Example
Sql :: mysqli inner join (php) 
Sql :: linux bash run sql command 
Sql :: sql create table 
Sql :: mysql group concat 
Sql :: tsql pad left 
Sql :: right join sql 
Sql :: sql unique select 
Sql :: sql union operator 
Sql :: how to search query in python3 sqlite3 
Sql :: add primary key to database sql 
Sql :: sql where not like in list 
Sql :: oracle grant directory 
Sql :: delete all duplicate rows keep the latest except for one in mysql 
Sql :: setval in postgres 
Sql :: list foreign key oracle 
Sql :: split string and get first and last element in sql server 
Sql :: to show sp in sql server 
Sql :: sql to c# model 
Sql :: mysql nested query 
Sql :: microsoft sql server python connection 
Sql :: while in sql server 
Sql :: pgadmin postgres ERROR: database is being accessed by other users 
Sql :: mysql string split to array 
Sql :: oracle ora-00054 how to unlock 
Sql :: sqlyog clear cache query 
Sql :: what is delete in sql 
Sql :: oracle sql all days except weekends 
Sql :: How to take sum of column with same id and different table in SQL? 
Sql :: create atable copy in pgsql 
Sql :: update query in linked server 
ADD CONTENT
Topic
Content
Source link
Name
7+8 =