bcap wrote on 25 jul 2009 in microsoft.public.inetserver.asp.general:
> I am looking to write a piece of code better. Better than what?
Show us your code, only the essence please.
> Lets say I have a table called CustInfo with CustID, FirstName, > LastName, and Subscription Level for simplicity. No, let us hear what engine you are using.
> 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 Is this a school assignment? Did you read some of the many SQL tutorials?
> 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. What is a "status type"?
> I'd like to learn a more efficent way to do this. Any > advise would be appreciated! Learning is not letting someone else do the task!
 Signature Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
|