答案 0 :(得分:0)
您可以使用:
SELECT * FROM employees
WHERE Month_ending BETWEEN 20150131 AND 20150228;
下次,先来看看:
答案 1 :(得分:0)
SELECT T1.Emp_id FROM yourTable T1
WHERE NOT EXISTS (SELECT 1
FROM yourTable T2
WHERE T2.Emp_id = T1.Emp_id
AND T2.Month_ending <> T1.Month_ending)
答案 2 :(得分:0)
使用查询
SELECT Emp_id
FROM Employee_details
WHERE [Month_ending] = '20150131'
AND [Emp_id] NOT IN(
SELECT [Emp_id]
FROM Employee_details
WHERE [Month_ending] = '20150228'
)