pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Doc comments form <noreply@postgresql.org>
To: pgsql-docs@lists.postgresql.org
Cc: makams@labcorp.com
Subject: Except does not work as in the documentation
Date: Tue, 25 Feb 2025 17:37:43 +0000
Message-ID: <174050506399.1964953.12433408927009759611@wrigleys.postgresql.org> (raw)

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/17/queries-union.html
Description:

The current documentation does not give the right syntax for using the
EXCEPT in a query.
This is the error when I ran the below:
select appt_id from wayfinder.patient_details where create_timestamp between
('2025-02-24 00:00:00' and '2025-02-25 00:00:00')
EXCEPT
select appt_id from wayfinder.appointment_details where create_timestamp
between ('2025-02-24 00:00:00' and '2025-02-25 00:00:00')
ERROR:  syntax error at or near "EXCEPT"
LINE 2: EXCEPT
        ^
SQL state: 42601
Character: 128


view thread (2+ messages)  latest in thread

Message-ID: <174050506399.1964953.12433408927009759611@wrigleys.postgresql.org>
Permalink:  ../174050506399.1964953.12433408927009759611@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/174050506399.1964953.12433408927009759611@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-docs@lists.postgresql.org, makams@labcorp.com
  Subject: Re: Except does not work as in the documentation
  In-Reply-To: <174050506399.1964953.12433408927009759611@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox