select
customerFirstName,
customerLastName,
case when age > 18 then 'yes' elso 'No' end as canBuyBeer
from customer

On Thu, May 5, 2011 at 2:17 PM, Prakash Krishnan
<[email protected]> wrote:
> Hi
>
> I would like to know how to write a case when inside a select query.
>
> Thanking You
>
> Prakash
>
> --
> Keep in Touch
> Prakash
> [email protected]
>
> --
> You received this message because you are subscribed to the Google Groups
> "H2 Database" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/h2-database?hl=en.
>



-- 
Andreas Henningsson

"Vanligt sunt förnuft är inte särkilt vanligt." -- Voltaire

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to