标签:
最近在学MYSQL,慢慢更新吧
推荐好书:SQL必知必会。靠这本书入了个门
以下均为MYSQL方式提交
select Email from Person group by email having count(*) >1
select E1.name as Employee from Employee as E1,Employee as E2 where E1.ManagerID=E2.Id and E1.Salary>E2.Salary
select FirstName,LastName,City,State from Person left join Address on Person.PersonId=Address.PersonId;
select name as Customers from Customers C where C.Id not in (select CustomerID from Orders);
标签:
原文地址:http://www.cnblogs.com/AraragiTsukihi/p/5840552.html