🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.vdbase.data.sql
Article #1396

Re: SQL and query designer (5.5)

#1396
From: Steve Koterski
Date: Tue, 20 Jan 1998 00:00
32 lines
1891 bytes
On Mon, 19 Jan 1998 23:07:38 GMT, Tim Smith wrote:

>I am trying to generate a simple report from our accounting programme.
>However the tables do not have a key field, and are read only. (they
>do have key fields, but the child table field is all zeros) I am told
>the tables are linked using tags. I can link the tables in access
>using the following SQL
>
>SELECT DISTINCTROW *
>FROM POP_ITEM INNER JOIN PURCHASE_ORDER ON POP_ITEM.ORDER_NUMBER =
>PURCHASE_ORDER.ORDER_NUMBER;
>
>I am not having much luck using this code in the vdb (praise be to
>Borland) query designer. I have read the manual - honest.

The SQL-92 specification does not include a DISTINCTROW keyword. This must
be some implementation-specific keyword used in Microsoft Access. The rest
of your SQL statement is SQL-92 compliant enough that local SQL should
accept it. Try using the SQL-92 DISTINCT keyword rather than that
nonstandard DISTINCTROW.

  SELECT DISTINCT *
  FROM POP_ITEM PI
    INNER JOIN PURCHASE_ORDER PO
      ON (PI.ORDER_NUMBER = PO.ORDER_NUMBER);

**************************************************************************
Steve Koterski
Borland International, Inc.
http://www.borland.com/delphi
(Remove the "SPICEDHAM2" from the address. Death to spam-bots!)
Technical Details
Message-ID: <34c3e924.27859321@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <34c3dafe.9355111@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: ff5a1,bf04adadd27a4fa9
X-Google-Attributes: gidff5a1,public
From: koterski@SPICEDHAM2borland.com (Steve Koterski)
Subject: Re: SQL and query designer (5.5)
Date: 1998/01/20
Message-ID: <34c3e924.27859321@forums.borland.com>
X-Deja-AN: 317504044
Content-Transfer-Encoding: 7bit
References: <34c3dafe.9355111@forums.borland.com>
Mime-Version: 1.0
Reply-To: koterski@SPICEDHAM2borland.com
Content-Type: text/plain; charset=us-ascii
Organization: Borland International, Technical Publications
Newsgroups: borland.public.vdbase.data.sql