Is it possible to have a variable number of elements selected in a single SQL statement? For eg. based on the number of parameters that have values, those are selected in the statement. If the statement is:
"Select x, y, z from table A where abc='123';"
and x, y and z are values being passed over from a previous page. So if only x and z have values then the statement should work like:
"Select x, z from table A where abc='123';"
and if only x has a value, it should select:
"Select x from table A where abc='123';"
Is this possible to do?