Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle sql listagg

SELECT
    job_title,
    LISTAGG(
        first_name,
        ','
    ) WITHIN GROUP(
    ORDER BY
        first_name
    ) AS employees
FROM
    employees
GROUP BY
    job_title
ORDER BY
    job_title;
Comment

PREVIOUS NEXT
Code Example
Sql :: mysql limit rows 
Sql :: postgres copy table from one schema to another 
Sql :: brew install mysql 8 
Sql :: sql server select value large text 
Sql :: postgresql create user 
Sql :: mysql else if 
Sql :: SHOW COLUMNS Statement 
Sql :: sql server concat string and int 
Sql :: sql in array query 
Sql :: postgresql get difference between two dates 
Sql :: postgres cast as decimal 
Sql :: display 2 numbers after decimal mysql 
Sql :: min salary in sql 
Sql :: drop row pgadmin 
Sql :: How do I modify a MySQL column to allow NULL? 
Sql :: rename column sql 
Sql :: date format in postgresql 
Sql :: check if database exists sql 
Sql :: select last row in sql 
Sql :: sql case 
Sql :: show table postgres command 
Sql :: how to check table exists or not in postgresql 
Sql :: write sql query to find the second highest salary of employee 
Sql :: postgres list users and roles 
Sql :: mysql get latest duplicate rows 
Sql :: add a day big query 
Sql :: incompatible sql_mode=only_full_group_by 
Sql :: sql select first and last record of each group 
Sql :: ERROR 1046 (3D000): No database selected 
Sql :: snowflake drop column 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =