上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 17 下一页
摘要: Write a SQL query to delete all duplicate email entries in a table named Person, keeping only unique emails based on its smallest Id. For example, aft 阅读全文
posted @ 2017-03-04 12:13 wilderness 阅读(168) 评论(0) 推荐(0) 编辑
摘要: The Employee table holds all employees. Every employee has an Id, and there is also a column for the department Id. The Department table holds all dep 阅读全文
posted @ 2017-03-03 23:33 wilderness 阅读(212) 评论(0) 推荐(0) 编辑
摘要: The Employee table holds all employees. Every employee has an Id, a salary, and there is also a column for the department Id. The Department table hol 阅读全文
posted @ 2017-03-03 23:16 wilderness 阅读(241) 评论(0) 推荐(0) 编辑
摘要: Given an array of strings, group anagrams together. For example, given: ["eat", "tea", "tan", "ate", "nat", "bat"], Return: 解法1: 把含有相同字母的字符串分之同一组,对每组的 阅读全文
posted @ 2017-03-03 22:36 wilderness 阅读(124) 评论(0) 推荐(0) 编辑
摘要: Suppose that a website contains two tables, the Customers table and the Orders table. Write a SQL query to find all customers who never order anything 阅读全文
posted @ 2017-03-03 12:21 wilderness 阅读(188) 评论(0) 推荐(0) 编辑
摘要: Write a SQL query to find all duplicate emails in a table named Person. 阅读全文
posted @ 2017-03-03 12:15 wilderness 阅读(107) 评论(0) 推荐(0) 编辑
摘要: The Employee table holds all employees including their managers. Every employee has an Id, and there is also a column for the manager Id. Given the Em 阅读全文
posted @ 2017-03-03 12:10 wilderness 阅读(189) 评论(0) 推荐(0) 编辑
摘要: Write a SQL query to find all numbers that appear at least three times consecutively. For example, given the above Logs table, 1 is the only number th 阅读全文
posted @ 2017-03-02 23:55 wilderness 阅读(207) 评论(0) 推荐(0) 编辑
摘要: Write a SQL query to rank scores. If there is a tie between two scores, both should have the same ranking. Note that after a tie, the next ranking num 阅读全文
posted @ 2017-03-02 23:53 wilderness 阅读(251) 评论(0) 推荐(0) 编辑
摘要: Write a SQL query to get the nth highest salary from the Employee table. For example, given the above Employee table, the nth highest salary where n = 阅读全文
posted @ 2017-03-02 23:50 wilderness 阅读(226) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 17 下一页