LeetCode数据库部分
嗯哼唉、
后端、云计算、大数据
展开
-
【LeetCode】197.上升的温度
197.上升的温度 给定一个Weather 表,编写一个SQL查询,查找与之前(昨天的)日期相比温度更高的所有日期的id。 例如根据上述给定的Weather 表格,返回如下id: 用到的表和数据SQL: -- ---------------------------- -- Table structure for `weather` -- ----------------------------...原创 2019-09-01 20:56:07 · 285 阅读 · 0 评论 -
【LeetCode】262.行程和用户
262.行程和用户 Trips 表中存所有出租车的行程信息。每段行程有唯一键 Id,Client_Id 和 Driver_Id 是 Users 表中 Users_Id 的外键。Status 是枚举类型,枚举成员为 (‘completed’, ‘cancelled_by_driver’, ‘cancelled_by_client’)。 Users 表存所有用户。每个用户有唯一键 Users_Id。...原创 2019-09-01 21:53:59 · 169 阅读 · 0 评论
分享