B
bcap
Hi,
I am looking to write a piece of code better.
Lets say I have a table called CustInfo with CustID, FirstName,
LastName, and Subscription Level for simplicity.
How can I create a query that I would be to:
1) Get all records no matter what subscription level they are in
2) Choose only records that have a selected status types
3) Declare that there are no records
Currently, I am using two queries (one that just selects all, another
that needs a parameter) and making a decision based on if there is a
status type. I'd like to learn a more efficent way to do this. Any
advise would be appreciated!
I am looking to write a piece of code better.
Lets say I have a table called CustInfo with CustID, FirstName,
LastName, and Subscription Level for simplicity.
How can I create a query that I would be to:
1) Get all records no matter what subscription level they are in
2) Choose only records that have a selected status types
3) Declare that there are no records
Currently, I am using two queries (one that just selects all, another
that needs a parameter) and making a decision based on if there is a
status type. I'd like to learn a more efficent way to do this. Any
advise would be appreciated!