I want to make a query to retrieve active client from different areas
any client that is active in Cities (‘A’,’B’,’C’,’D’) as well as (‘X’ or ’Y’)?
any client that is active in Cities (’E’, ‘F’,’G’,’H’) as well as (‘X’ or ‘Y’)?
I write
Where
(( OrdDate Between FromDate And ToDate
And c.status = ‘V’
And City IN (‘A’,’B’,’C’,’D’,’X’))
OR
( OrdDate Between FromDate And ToDate
And c.status = ‘V’
And City IN (‘A’,’B’,’C’,’D’,’Y’))
AND
(( OrdDate Between FromDate And ToDate
And c.status = ‘V’
And City IN (‘E’,’F’,’G’,’H’,’X’))
OR
( OrdDate Between FromDate And ToDate
And c.status = ‘V’
And City IN (‘E’,’F’,’G’,’H’,’Y’))
Can any body tell me that I am doing righ or not. because I am not getting any results
Thanks
any client that is active in Cities (‘A’,’B’,’C’,’D’) as well as (‘X’ or ’Y’)?
any client that is active in Cities (’E’, ‘F’,’G’,’H’) as well as (‘X’ or ‘Y’)?
I write
Where
(( OrdDate Between FromDate And ToDate
And c.status = ‘V’
And City IN (‘A’,’B’,’C’,’D’,’X’))
OR
( OrdDate Between FromDate And ToDate
And c.status = ‘V’
And City IN (‘A’,’B’,’C’,’D’,’Y’))
AND
(( OrdDate Between FromDate And ToDate
And c.status = ‘V’
And City IN (‘E’,’F’,’G’,’H’,’X’))
OR
( OrdDate Between FromDate And ToDate
And c.status = ‘V’
And City IN (‘E’,’F’,’G’,’H’,’Y’))
Can any body tell me that I am doing righ or not. because I am not getting any results
Thanks