Re: [sqlite] Re: Re: Testing For Empty Table

2006-11-04 Thread chetana bhargav
:23 AM Subject: [sqlite] Re: Re: Testing For Empty Table Rich Shepard <[EMAIL PROTECTED]> wrote: > I want the latter case. In other words, if there are no records > where 'category = "natural"' nothing should be returned. It would be > nice if there was a return

Re: [sqlite] Re: Re: Testing For Empty Table

2006-11-04 Thread P Kishor
I am curious -- why is the following not a viable option here? SELECT Count(*) FROM components WHERE category = 'natural'; On 11/4/06, Igor Tandetnik <[EMAIL PROTECTED]> wrote: Rich Shepard <[EMAIL PROTECTED]> wrote: > I want the latter case. In other words, if there are no records > where

[sqlite] Re: Re: Testing For Empty Table

2006-11-04 Thread Igor Tandetnik
Rich Shepard <[EMAIL PROTECTED]> wrote: I want the latter case. In other words, if there are no records where 'category = "natural"' nothing should be returned. It would be nice if there was a return value that told me explicitly "no records match the where". You could write select exists (s