题解 | #组合 Products 表中的产品名称#

组合 Products 表中的产品名称和 Customers 表中的顾客名称

https://www.nowcoder.com/practice/461077c0ba0f473abecf5ee79c632acd

select prod_name
from Products
union all
select cust_name as prod_name
from Customers
order by prod_name;

使用union all拼接两个查询结果

全部评论

相关推荐

大佬们,在大厂实习的都是几百一天???
爱睡觉的冰箱哥:实习工资这个不都是公开的吗,a不了,字节400,快手350,有些有房补餐补这样
点赞 评论 收藏
分享
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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