🙌
Hands-On Leetcode Database Solution with Hive SQL
(Online Course)Learning SQL with meMy BlogAbout meFollow me on FBFollow my IG
  • INTRODUCTION
    • About This Book
    • 作者簡介
  • Exercise 1:185.Department Top Three Salaries
    • Hive Solution
  • Exercise 2:262. Trips and Users
    • Hive Solution
  • Exercise 3:569.Median Employee Salary
    • Hive Solution
  • Exercise 4:571.Find Median Given Frequency of Numbers
    • Hive Solution
  • Exercise 5:579.Find Cumulative Salary Of An Employee Problem
    • Hive Solution
  • Exercise 6:601.Human Traffic of Stadium
    • Hive Solution
  • Exercise 7:615.Average Salary: Departments VS Company
    • Hive Solution
  • Exercise 8:618.Students Report By Geography
    • Hive Solution
  • Exercise 9:1097.Game Play Analysis V
    • Hive Solution
  • Exercise 10:1127.User Purchase Platform
    • Hive Solution
  • Exercise 11:1159.Market Analysis II
    • Hive Solution
  • Exercise 12:1194.Tournament Winners
    • Hive Solution
  • Exercise 13:1225.Report Contiguous Dates
    • Hive Solution
  • Exercise 14:1336.The number of transactions per visit
    • Hive Solution
  • Exercise 15:1369.Get The Second Most Recent Activity
    • Hive Solution
  • Exercise 16:1384.Total Sales Amount by Year
    • Hive Solution
  • Exercise 17:1412.Find the Quiet Students in All Exams
    • Hive Solution
  • Exercise 18:1479. Sales by Day of the Week
    • Hive Solution
  • Exercise 19:1635. Hopper Company Queries I
    • Hive Solution
  • Exercise 20:1645. Hopper Company Queries II
    • Hive Solution
  • Exercise21 :1651. Hopper Company Queries III
    • Hive Solution
  • Exercise 22:1767.Find the Subtasks That Did Not Execute
    • Hive Solution
  • Exercise 23:1892.Page Recommendations II
    • Hive Solution
  • Exercise 24:1917.Leetcodify Friends Recommendations
    • Hive Solution
  • Exercise 25:1919.Leetcodify Similar Friends
    • Hive Solution
  • Exercise 26:1972.First and Last Call On the Same Day
    • Hive Solution
  • Exercise 27:2004.The Number of Seniors and Juniors to Join the Company
    • Hive Solution
  • Exercise 28:2010.The Number of Seniors and Juniors to Join the Company II
    • Hive Solution
Powered by GitBook
On this page
  • Introduction
  • About leetcode SQL question
  • Hard Problems
  1. INTRODUCTION

About This Book

Next作者簡介

Last updated 3 years ago

Introduction

This book provides questions about Database Hard Level on Leetcod and Hive SQL answers. (There are 28 questions in total)

Hard level tests the ability of flexible ideas and require familiarity with the following :

  • Various Hive SQL functions, including Mathematical functions, data functions, string functions...

  • Multi-table join, including subquery, JOIN, UNION

  • Windows function

I strongly recommend that each question must be considered in-depth, and running Query to view the output results. Do not look at the answers directly, otherwise, it will reduce the learning effect.

In addition, the idea of solving the problem is not unique, so the answer is for reference only.

這本書提供Leetcod上 Database Hard Level的題目及Hive SQL解答,一共28題

Hard Level很考驗綜合運用的能力,你要具備靈活的思路以及熟悉以下查詢用法:

  • 各種函數的運用

  • 多表連結,包含子查詢、JOIN、UNION

  • Windows function

即是能高度掌握<入門數據分析 掌握Hive SQL取數能力>課程所有內容

本課程已上架Hahow平台,如您對課程有興趣,可點擊查看課程詳細說明

強烈建議每道題目需經過思考,若一時無法想出一步到位的Query,可先運行片段的Query查看輸出結果,與題目希望的result對比,再思考差異及延伸Query,勿直接看答案,否則學習效果將打(骨)折。

另外,解題思路並不唯一,故答案僅供參考。

About leetcode SQL question

  • Enter the Problem page and filter the topic of Database, here are all SQL questions.

  • Problems are three difficulty levels (Easy, Medium, and Hard) , most of the questions need to be paid to unlock.

Hard Problems

My online course in Hahow platform provides the big data environment and HUE (Hue is a Web interface for analyzing data with Apache Hadoop), you can create a database (such as leetcode) to store the data for each exercises.

create database if not exists leetcode ;
exercise id
exercise_name

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

is one of the most well-known online judge platforms that you can use to practice your programming skills by solving coding questions

This is a list of and solutions with Hive SQL.

此鏈結
Leetcode
LeetCode's Hard Level Database problems
185. Department Top Three Salaries
262. Trips and Users
569.Median Employee Salary
571.Find Median Given Frequency of Numbers
579.Find Cumulative Salary Of An Employee Problem
601.Human Traffic of Stadium
615.Average Salary: Departments VS Company
618. Students Report By Geography
1097. Game Play Analysis V
1127. User Purchase Platform
1159. Market Analysis II
1194. Tournament Winners
1225.Report Contiguous Dates
1336.The number of transactions per visit
1369.Get The Second Most Recent Activity Proble
1384. Total Sales Amount by Year
1412.Find the Quiet Students in All Exams
1479. Sales by Day of the Week
1635. Hopper Company Queries I
1645. Hopper Company Queries II
1651. Hopper Company Queries III
1767.Find the Subtasks That Did Not Execute
1892.Page Recommendations II
1917.Leetcodify Friends Recommendations
1919.Leetcodify Similar Friends
1972.First and Last Call On the Same Day
2004.The Number of Seniors and Juniors to Join the Company
2010.The Number of Seniors and Juniors to Join the Company II