Please I am doing a where clause from a select query as below, can some help me with how I can add ----[CSI JOB] IS NULL OR >= '9/3/2010' AND to the where query. look at the query bellow
SELECT *
FROM ABNESCCX
WHERE SQL <> 'C'
AND [MYSQL] = 'B' OR [MYSQL] = 'D'
AND [CSI JOB] IS NULL
OR >= '9/3/2010'
AND [TNE TYPE] = 'Radio'
ORDER BY [TNE Completed];
And you might also want to write [MYSQL] with parenthesis:
SELECT *
FROM ABNESCCX
WHERE SQL <> 'C'
AND ([MYSQL] = 'B' OR [MYSQL] = 'D')
AND ([CSI JOB] IS NULL OR [CSI JOB] >= '9/3/2010')
AND [TNE TYPE] = 'Radio'
ORDER BY [TNE Completed];
您必须编写这样的条件:
([CSI JOB] IS NULL OR [CSI JOB] >= '9/3/2010') AND
SELECT *
FROM ABNESCCX
WHERE
[SQL] != 'C'
AND [MYSQL] IN ('B', 'D')
AND ([CSI JOB] IS NULL OR [CSI JOB] >= '9/3/2010')
AND [TNE TYPE] = 'Radio'
ORDER BY [TNE Completed];
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.