I have a query:
SELECT
ZIPSECvc255Zip,ZIPSECCODIServiceType
FROM towSearch_ZIP_ZipCodesSecondary
WHERE ZIPSECCOMlAPAssignee = 57055
AND ZIPSECCODlAPStatus = 302
AND ZIPSECCODIServiceType in (263,1012)
AND ZIPSECADDIKey = 314105
I am getting follow result:
ZIPSECvc255Zip ZIPSECCODIServiceType
17001 263
17003 1012
17007 1012
17003 263
我只想要一条 17003 的记录,因为它与 ZIPSECCODIServiceType(即 263,1012)都相关。如何使用查询来实现?