摘要: Write a SQL query to find all duplicate emails in a table named Person. For example, your query should return the following for the above table: Note: 阅读全文
posted @ 2017-01-16 14:36 lettuan 阅读(132) 评论(0) 推荐(0) 编辑
摘要: Write a SQL query to get the second highest salary from the Employee table. For example, given the above Employee table, the second highest salary is 阅读全文
posted @ 2017-01-16 13:53 lettuan 阅读(435) 评论(0) 推荐(0) 编辑
摘要: Given a Weather table, write a SQL query to find all dates' Ids with higher temperature compared to its previous (yesterday's) dates. For example, ret 阅读全文
posted @ 2017-01-16 12:47 lettuan 阅读(167) 评论(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-01-16 12:28 lettuan 阅读(110) 评论(0) 推荐(0) 编辑
摘要: Table: Person Table: Address Write a SQL query for a report that provides the following information for each person in the Person table, regardless if 阅读全文
posted @ 2017-01-16 11:45 lettuan 阅读(551) 评论(0) 推荐(0) 编辑