Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1onKZb-0002uk-Li for pgsql-general@arkaria.postgresql.org; Tue, 25 Oct 2022 14:06:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1onKZa-0000gl-HA for pgsql-general@arkaria.postgresql.org; Tue, 25 Oct 2022 14:06:30 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1onKZa-0000ga-4V for pgsql-general@lists.postgresql.org; Tue, 25 Oct 2022 14:06:30 +0000 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1onKZX-0005WQ-VL for pgsql-general@lists.postgresql.org; Tue, 25 Oct 2022 14:06:29 +0000 Received: by mail-pf1-x42d.google.com with SMTP id 192so4745398pfx.5 for ; Tue, 25 Oct 2022 07:06:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:from:to:cc:subject:date:message-id :reply-to; bh=nEI934RWQEMwneCk5T8WNiKVsTMQXb06ajxD0/z24To=; b=LJprue3Xd3ojy+uhJGk8WHlJVy/cB5SDd5rCAbtgHeG9Pku7j0BKq0JjEAf06RmwiR C7WF1pqlDVpPPr+q5rGjqtgpNLLsdVj1QeG3ctD+BlyhE5F8cNlFrPxI7akft100NbLQ 6CkgAZsg+BfE5ypmgPPgu+VkLZhFNofqnfQxjfM/NM8ddV47AHdjpWRabp2BwTMtk/oq HGgMCIkEWjZ69SyjqZ0Y+4twyf1dExcxoK7j6mQr1HqTZSRmvEVC/KAjHQUobPUNrO1f X4CniPARECn1ZYPGwrMv66vWrdPMlmvh2KvG0hDtzHt41C7yZxVhs/m729wWwBQoZfbV 5Ehg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nEI934RWQEMwneCk5T8WNiKVsTMQXb06ajxD0/z24To=; b=IC68KnAEjjB1A+O63Dk0QW8piIBQXm2iwwcApL6XDQBUU4PUoz1QH/YgFEOmdRFocE WOwtYQhK/cMAaktdLIkY6XFWrXWo2dE7cI3vhkFy53s+nxVApkUvS0alw07R20JY2hGc LimTqoXYiHq/y21kYzEeQunutFaa8iytu2spbWFQaTsFJ7XB2FVbkt+bO5A6FK0Df/gs vsB3KieVLurJ0touL3b9Q5Per6UPw05tguugUWUvPSEu5BwABG4SHysranDkxKNkIJ6Y C7spJ3NiUAxOMUXYwm/hEuBKRUex7IRpaYo8vaxfhsGbV/rIjzv4XI/owWyel31jwFyW 8JwA== X-Gm-Message-State: ACrzQf3hfCMmmO9y4e3AOCuX9ut46lyXAuCIKQM3/WMb1PRAR6/bxlqj UCgt0Jgo1tKBGhtvaKD59xo= X-Google-Smtp-Source: AMsMyM6BfXbfjeiKJAy74SA/4FZV9C1a6zURuOf4jp3Sn5dnJk/sEU7eJi+Ron0sO3+E9WqkfmHrPQ== X-Received: by 2002:a65:6856:0:b0:46e:bcc2:8b36 with SMTP id q22-20020a656856000000b0046ebcc28b36mr18897732pgt.378.1666706786986; Tue, 25 Oct 2022 07:06:26 -0700 (PDT) Received: from smtpclient.apple ([2601:681:5a00:f790:e016:95e6:dc98:6444]) by smtp.gmail.com with ESMTPSA id r33-20020a634421000000b00434760ee36asm1283283pga.16.2022.10.25.07.06.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 25 Oct 2022 07:06:26 -0700 (PDT) Content-Type: multipart/alternative; boundary=Apple-Mail-02A5F0F9-207D-4242-9586-AE82BF5BAA72 Content-Transfer-Encoding: 7bit From: Rob Sargent Mime-Version: 1.0 (1.0) Subject: Re: please give me select sqls examples to distinct these! Date: Tue, 25 Oct 2022 08:06:25 -0600 Message-Id: <8E137936-5D93-49FF-93A3-EB4E97D3416C@gmail.com> References: <202210252154573516405@gmail.com> Cc: pgsql-general In-Reply-To: <202210252154573516405@gmail.com> To: jacktby@gmail.com X-Mailer: iPhone Mail (19G82) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --Apple-Mail-02A5F0F9-207D-4242-9586-AE82BF5BAA72 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable > On Oct 25, 2022, at 7:55 AM, jacktby@gmail.com wrote: >=20 > =EF=BB=BF >=20 > typedef enum SetOperation > { > SETOP_NONE =3D 0, > SETOP_UNION, > SETOP_INTERSECT, > SETOP_EXCEPT > } SetOperation; > jacktby@gmail.com Please use just text.=20 What =E2=80=98dialect=E2=80=99 are using? In Postgres 0: select * from table 1: select * from table union select * from table is same shape 2: select * from table join table b on Id =3D idb=20 3: select * from table except select * from tableb --Apple-Mail-02A5F0F9-207D-4242-9586-AE82BF5BAA72 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable

On Oct 25, 2022, at 7:= 55 AM, jacktby@gmail.com wrote:

=EF=BB=BF

typedef <= span style=3D"color: #569cd6;">enum S= etOperation
{
    SETOP_NONE =3D 0,
    SETOP_UNION,
    SETOP_INTERSECT,
    SETOP_EXCEPT
} SetOperation;