🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.multi-tier
Article #1740

Performing 'Logical AND' in a SQL query on Paradox tables, how?

#1740
From: Olaf Schutten
Date: Mon, 21 Jun 1999 00:00
54 lines
2328 bytes
--------------13BFE1D22E63EECA4417BE84
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

What is the syntax for performing an 'logical and' between a field of a
paradox table and an user defined variable at runtime in a SQL-Query?

my query looks like this:

select * from RecTable where
( RecTable.Days & :ConnectDay )

Note: - ConnectDay is variable which is filled runtime
          - & must be 'Logical AND'
          - Days is field of RecTable Database
          - RecTable is of type Paradox

& as 'logical and' does not work, so what is the syntax for 'logical
and' when using a Paradox table?

Thanks in advance.

Olaf Schutten
TeleCats BV


--------------13BFE1D22E63EECA4417BE84
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
What is the syntax for performing an <b>'logical and'</b> between a field
of a
<br><b>paradox table</b> and an user defined variable at runtime in a SQL-Query?
<p><b>my query looks like this:</b>
<p><i>select * from RecTable where</i>
<br><i>( RecTable.Days &amp; :ConnectDay )</i>
<p>Note: - ConnectDay is variable which is filled runtime
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - &amp; must
be 'Logical AND'
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - Days is field
of RecTable Database
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - RecTable is
of type Paradox
<p>&amp; as <b>'logical and'</b> does not work, so what is the syntax for
<b>'logical and'</b> when using a Paradox table?
<p>Thanks in advance.
<p>Olaf Schutten
<br>TeleCats BV
<br>&nbsp;</html>

--------------13BFE1D22E63EECA4417BE84--
Technical Details
Message-ID: <376EA9B1.FC42DA49@home.nl>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fcd2b,e8b78f1b5a3b6e4c,start
X-Google-Attributes: gidfcd2b,public
From: Olaf Schutten <olaf01@home.nl>
Subject: Performing 'Logical AND' in a SQL query on Paradox tables, how?
Date: 1999/06/21
Message-ID: <376EA9B1.FC42DA49@home.nl>
X-Deja-AN: 492248028
X-Accept-Language: en
Content-Type: multipart/alternative; boundary="------------13BFE1D22E63EECA4417BE84"
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.cppbuilder.database.multi-tier