Which are the SQL improvements you are waiting for?

后端 未结 30 1325
感情败类
感情败类 2021-02-01 22:29

Dealing with SQL shows us some limitations and gives us an opportunity to imagine what could be.

Which improvements to SQL are you waiting for? Which would you put on t

30条回答
  •  礼貌的吻别
    2021-02-01 22:59

    String Agregation on Group by (In Oracle is possible with this trick):

    SELECT deptno, string_agg(ename) AS employees
    FROM   emp
    GROUP BY deptno;
    
    DEPTNO EMPLOYEES
    ---------- --------------------------------------------------
        10 CLARK,KING,MILLER
        20 SMITH,FORD,ADAMS,SCOTT,JONES
        30 ALLEN,BLAKE,MARTIN,TURNER,JAMES,WARD
    

提交回复
热议问题