From 7545ae24b3d2aa30747cef53560941a1bba07fcd Mon Sep 17 00:00:00 2001 From: CyC2018 <1029579233@qq.com> Date: Sat, 9 Jun 2018 21:43:10 +0800 Subject: [PATCH] auto commit --- notes/Leetcode-Database 题解.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/notes/Leetcode-Database 题解.md b/notes/Leetcode-Database 题解.md index 5fd4eadf..9bf9bf22 100644 --- a/notes/Leetcode-Database 题解.md +++ b/notes/Leetcode-Database 题解.md @@ -554,7 +554,7 @@ VALUES ```sql SELECT - C.NAME AS Customers + C.Name AS Customers FROM Customers C LEFT JOIN Orders O ON C.Id = O.CustomerId @@ -566,11 +566,11 @@ WHERE ```sql SELECT - C.NAME AS Customers + Name AS Customers FROM - Customers C + Customers WHERE - C.Id NOT IN ( SELECT CustomerId FROM Orders ); + Id NOT IN ( SELECT CustomerId FROM Orders ); ``` # 184. Department Highest Salary @@ -637,7 +637,7 @@ VALUES 创建一个临时表,包含了部门员工的最大薪资。可以对部门进行分组,然后使用 MAX() 汇总函数取得最大薪资。 -之后使用连接将找到一个部门中薪资等于临时表中最大薪资的员工。 +之后使用连接找到一个部门中薪资等于临时表中最大薪资的员工。 ```sql SELECT