I need to know if there is a wildcard character for a number field parameter. I am using crystal reports from the web and passing parameters into the where clause of my SQL Query via a URL string.
SELECT
VFleetSurvey.* FROM
Database
WHERE
ClientID = 123 AND '123 and 176 are the params
DepotID = 176
ORDER BY
ClientName ASC,
DepotName ASC
This works fine if I want to see the details for this particular client and depot, but if I want to see the details for this client and all depots associated with it, how can I pass in the parameter without changing the SQL query. Is there a like clause that I can use with numbers?
Something like
WHERE
ClientID = 123 AND
DepotID like *
SELECT
VFleetSurvey.* FROM
Database
WHERE
ClientID = 123 AND '123 and 176 are the params
DepotID = 176
ORDER BY
ClientName ASC,
DepotName ASC
This works fine if I want to see the details for this particular client and depot, but if I want to see the details for this client and all depots associated with it, how can I pass in the parameter without changing the SQL query. Is there a like clause that I can use with numbers?
Something like
WHERE
ClientID = 123 AND
DepotID like *