InstantDB Project
About InstantDB
Project Mail Lists
Short History
Reporting Bugs
Screen Shots
3rd Party Examples
FAQs

Software
Downloads
Documentation
CVS Repositories
Roadmap
License

About Enhydra.org
Who We Are
News, Articles & Events
Getting Involved
Contact Us

Community
Demos
Contributions
Resources
Case Studies
On The Edge! -NEW-
Commercial Vendors


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AW: InstantDB: SQL syntax question


Sehr geehrter Herr Herbst,

vielen Dank für die Übermittlung der Com!Online-Seite. Das hat mich auch
sehr gefreut. Insbesondere weil Ihre Inhalte sicherlich zu den besten im
Finanzbereich gehören.

Viele Grüße

Michael Kastner

-----Ursprüngliche Nachricht-----
Von: owner-instantDB@enhydra.org [mailto:owner-instantDB@enhydra.org]Im
Auftrag von Good, David
Gesendet: Donnerstag, 19. Oktober 2000 11:51
An: 'instantDB@enhydra.org'
Betreff: RE: InstantDB: SQL syntax question


Cindy

You could use:  WHERE (aColumn = ?) AND (zColumn = aColumb)

David

-----Original Message-----
From: Bill Karwin [mailto:bill.karwin@lutris.com]
Sent: 18 October 2000 18:36
To: instantDB@enhydra.org
Subject: Re: InstantDB: SQL syntax question


Cindy Tipper wrote:
>
> I've poured over the IDB syntax and can't seem to figure this one out,
> but perhaps it is due to a limited knowledge base of SQL....
>
> I want to write a query of the form:
>   SELECT * FROM myTBL WHERE (aColumn OR zColumn)=?

(<col> OR <col>) = <expr> is not legal SQL.  A bare <col> by itself is
not a valid boolean predicate, so it can't be combined with OR as a
boolean term in a search condition.

It's actually an ambiguous construction.  Would the condition be met if
<expr> is equal to the value of either <col>?  Or would the condition be
met if the boolean state of <expr> is the same as the state of the
boolean expression <col> OR <col>?

I know how _you_ want to use it today, but someone else might want the
other meaning.

--
Bill Karwin (bill@lutris.com)
Application Architect - Lutris Technologies Inc.
----------------------------------------------------------------------------
-
To unsubscribe from this mailing list, send email to majordomo@enhydra.org
with the text "unsubscribe instantdb" in the body of the email.
If you have other questions regarding this mailing list, send email to
the list admin at owner-instantdb@enhydra.org.

----------------------------------------------------------------------------
-
To unsubscribe from this mailing list, send email to majordomo@enhydra.org
with the text "unsubscribe instantdb" in the body of the email.
If you have other questions regarding this mailing list, send email to
the list admin at owner-instantdb@enhydra.org

-----------------------------------------------------------------------------
To unsubscribe from this mailing list, send email to majordomo@enhydra.org
with the text "unsubscribe instantdb" in the body of the email.
If you have other questions regarding this mailing list, send email to
the list admin at owner-instantdb@enhydra.org.