题解 | #纠错4#

纠错4

https://www.nowcoder.com/practice/bde1451b91084c8cab467387a0e0969c

#在union中只能使用一个order by 语句,并且得放在最后一个select语句之后


SELECT
    cust_name,
    cust_contact,
    cust_email
FROM
    Customers
WHERE
    cust_state = 'MI'
UNION all
SELECT
    cust_name,
    cust_contact,
    cust_email
FROM
    Customers
WHERE
    cust_state = 'IL'
ORDER BY
    cust_name

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务