题解 | #纠错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

全部评论

相关推荐

星辰再现:裁员给校招生腾地方
点赞 评论 收藏
分享
测试糕手手:社会第一课,随便吹牛逼,直接说四个月,别老实。老实人只会被欺负
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务