ADO Select Case When... statements?
From: Radu Stanciu (urgur_at_home.ro)
Date: 03/16/05
- Previous message: Mike Shkolnik: "Re: millisecond in select GetDate()"
- Next in thread: Del M: "Re: ADO Select Case When... statements?"
- Reply: Del M: "Re: ADO Select Case When... statements?"
- Reply: jarl_at_mimer.com: "Re: ADO Select Case When... statements?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 16 Mar 2005 01:08:06 +0200
Hi,
I'm trying to run a query that sounds something like this:
SELECT SUM(CASE WHEN Quantity=1 THEN 2 ELSE 3 END) FROM Inventory
It's not the standard SQL syntax, but it's the closest I've found while searching the
net for ADO examples. Does anyone have an exmaple on such a query? As silly as it may
seems, I was unable to find anything pointing to this.
Thanks,
Radu Stanciu
- Previous message: Mike Shkolnik: "Re: millisecond in select GetDate()"
- Next in thread: Del M: "Re: ADO Select Case When... statements?"
- Reply: Del M: "Re: ADO Select Case When... statements?"
- Reply: jarl_at_mimer.com: "Re: ADO Select Case When... statements?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|