我有点迷失了这个简单的查询
以下是日期查询(SERVICE_DATE):
SELECT DISTINCT JOB_ID,
SERVICE_DATE,
GRAND_TOTAL,
TYPE_INSERT,
PAYMENT_ID
FROM TBL_XXX
WHERE USER_ID = 100
AND PAYMENT_ID <> 0
ORDER BY JOB_ID DESC;
我得到了这个结果:
467 18/10/2012 16 Upload 527811
467 18/10/2012 16 Upload 527811
466 18/10/2012 4 Key-In 527806
465 18/10/2012 4 Key-In 527804
464 17/10/2012 24 Upload 527784
464 17/10/2012 24 Upload 527784
464 17/10/2012 24 Upload 527784
而这个没有日期的查询(SERVICE_DATE)
SELECT DISTINCT JOB_ID,
GRAND_TOTAL,
TYPE_INSERT,
PAYMENT_ID
FROM TBL_XXX
WHERE USER_ID = 100
AND PAYMENT_ID <> 0
ORDER BY JOB_ID DESC;
结果:
467 16 Upload 527811
466 4 Key-In 527806
465 4 Key-In 527804
464 24 Upload 527784
我在这里缺少什么?