摘要: MemStore 详解 Store A Store hosts a MemStore and 0 or more StoreFiles (HFiles). A Store corresponds to a column family for a table for a given region. 多 阅读全文
posted @ 2021-06-21 19:18 yuexiuping 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 9.用户玩法分析 Activity表:显示了某些游戏的玩家的活动情况。 player_id device_id event_date games_played 1 2 2016-03-01 5 1 2 2016-03-02 6 2 3 2017-06-25 1 3 1 2016-03-01 0 3 阅读全文
posted @ 2021-06-17 22:29 yuexiuping 阅读(89) 评论(0) 推荐(0) 编辑
摘要: Armed to the teeth 全副武装 Definition: carrying many weapons. Example: Being faced with such a fierce battle,every soldier has armed to the teeth. 面对如此惨烈 阅读全文
posted @ 2021-06-16 09:03 yuexiuping 阅读(37) 评论(0) 推荐(0) 编辑
摘要: 8.行程和用户 需求:写一段 SQL 语句查出 2019年10月1日 至 2019年10月3日 期间非禁止用户的取消率。基于上表,你的 SQL 语句应返回如下结果,取消率(Cancellation Rate)保留两位小数。取消率的计算方式如下:(被司机或乘客取消的非禁止用户生成的订单数量) / (非 阅读全文
posted @ 2021-06-15 22:49 yuexiuping 阅读(52) 评论(0) 推荐(0) 编辑
摘要: 7.上升的温度 需求:编写一个 SQL 查询,来查找与之前(昨天的)日期相比温度更高的所有日期的 Id。 结果展示: Id 2 4 建表语句: Create table If Not Exists Weather (Id int, RecordDate date, Temperature int); 阅读全文
posted @ 2021-06-14 21:42 yuexiuping 阅读(49) 评论(0) 推荐(0) 编辑
摘要: HBase HBase简介 Hbase是一种分布式、可扩展、支持海量存储的NoSQL数据库。 基于Hadoop可分布式,基于HDFS可扩展,可存储数十亿行百万列海量数据。 说明: HBase的数据虽然存储在HDFS上,且HDFS只支持追加写而不支持随机写,但HBase通过技术手段实现随机、实时读写。 阅读全文
posted @ 2021-06-14 18:18 yuexiuping 阅读(312) 评论(0) 推荐(0) 编辑
摘要: 4.从不订购的客户 需求:某网站包含两个表,Customers表和Orders表,编写SQL查询,找出所有从不订购商品的客户。 展示效果: Customers Henry Max 建表语句: Create table If Not Exists Customers (Id int, Name var 阅读全文
posted @ 2021-06-09 22:48 yuexiuping 阅读(49) 评论(0) 推荐(0) 编辑
摘要: 2. 分数排名 需求:通过SQL查询实现分数排名,如果两个分数相同,则两个分数排名相同,要求名次之间不能有间隔。 展示效果: Score Rank 4.00 1 4.00 1 3.85 2 3.65 3 3.65 3 3.50 4 建表语句: Create table If Not Exists S 阅读全文
posted @ 2021-06-08 22:55 yuexiuping 阅读(30) 评论(0) 推荐(0) 编辑
摘要: Phrase-1 1.Knock your socks off 叹为观止 Meaning:If something knocks your socks off, it amazes and surprises you, usually in a positive way. Example: The 阅读全文
posted @ 2021-06-03 22:54 yuexiuping 阅读(52) 评论(0) 推荐(0) 编辑
摘要: 1.求员工薪水 需求一:获取 Employee 表中第二高的薪水(Salary),如果不存在第二高的薪水,那么查询应返回 null。 结果: SecondHighestSalary 200 建表语句: Create table If Not Exists Employee (Id int, Sala 阅读全文
posted @ 2021-06-03 21:57 yuexiuping 阅读(40) 评论(0) 推荐(0) 编辑