Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

The University of California Statistics Department; where mean is normal, and deviation standard.


devel / comp.databases.ingres / ANY and ALL

SubjectAuthor
* ANY and ALLRoy Hann
`* Re: ANY and ALLnikosv
 `- Re: ANY and ALLRoy Hann

1
ANY and ALL

<t9jme1$1doo$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=249&group=comp.databases.ingres#249

  copy link   Newsgroups: comp.databases.ingres
Path: i2pn2.org!i2pn.org!aioe.org!ow2HZ3WUoSa7bUAoHqrJ8A.user.46.165.242.75.POSTED!not-for-mail
From: specia...@processed.almost.meat (Roy Hann)
Newsgroups: comp.databases.ingres
Subject: ANY and ALL
Date: Thu, 30 Jun 2022 08:21:21 -0000 (UTC)
Organization: Aioe.org NNTP Server
Message-ID: <t9jme1$1doo$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="46872"; posting-host="ow2HZ3WUoSa7bUAoHqrJ8A.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: XPN/1.2.6 (Street Spirit ; Windows)
X-Notice: Filtered by postfilter v. 0.9.2
 by: Roy Hann - Thu, 30 Jun 2022 08:21 UTC

I have never been able to come up with a good example showing the
ANY/ALL construct is a clearer alternative to something else, nor
an example of a query that can be done only using them.

A bit of googling has turned up a lot of unimaginative examples that
seem just to illustrate the syntax (plus a distressing number of
examples that flat-out don't do what they claim to do).

Rick van der Lans' _SQL Guide to Ingres_ manages some plausible examples
but nothing that isn't more easily and clearly done another way (IMO).

Can anyone suggest some interesting examples?

I have a hazy intuition there may be some interesting queries that
depend on a subquery that returns no rows to ANY/ALL, but I can't bring
one into focus...

Roy

Re: ANY and ALL

<d98ba218-5a45-4a15-b50a-765e2e838bd4n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=250&group=comp.databases.ingres#250

  copy link   Newsgroups: comp.databases.ingres
X-Received: by 2002:a05:600c:4081:b0:3a0:47c4:8dd0 with SMTP id k1-20020a05600c408100b003a047c48dd0mr11724073wmh.178.1656622734634;
Thu, 30 Jun 2022 13:58:54 -0700 (PDT)
X-Received: by 2002:a9d:3f1:0:b0:616:80b3:47e8 with SMTP id
f104-20020a9d03f1000000b0061680b347e8mr4746768otf.213.1656622733896; Thu, 30
Jun 2022 13:58:53 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!feeder1.feed.usenet.farm!feed.usenet.farm!2.eu.feeder.erje.net!feeder.erje.net!proxad.net!feeder1-2.proxad.net!209.85.128.88.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.databases.ingres
Date: Thu, 30 Jun 2022 13:58:53 -0700 (PDT)
In-Reply-To: <t9jme1$1doo$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=2a02:214a:830c:5000:84f:6c82:1152:e5a5;
posting-account=HVjXiwoAAABbMuZJSsy6aGtjsYOerfGt
NNTP-Posting-Host: 2a02:214a:830c:5000:84f:6c82:1152:e5a5
References: <t9jme1$1doo$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d98ba218-5a45-4a15-b50a-765e2e838bd4n@googlegroups.com>
Subject: Re: ANY and ALL
From: nikos.va...@gmail.com (nikosv)
Injection-Date: Thu, 30 Jun 2022 20:58:54 +0000
Content-Type: text/plain; charset="UTF-8"
 by: nikosv - Thu, 30 Jun 2022 20:58 UTC

I don't know if it is interesting,but I've once used ANY to remove duplicate rows

https://www.i-programmer.info/programming/database/8296-sql-workshop-removing-duplicate-rows-.html

Re: ANY and ALL

<t9mfmh$lk0$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=251&group=comp.databases.ingres#251

  copy link   Newsgroups: comp.databases.ingres
Path: i2pn2.org!i2pn.org!aioe.org!ow2HZ3WUoSa7bUAoHqrJ8A.user.46.165.242.75.POSTED!not-for-mail
From: specia...@processed.almost.meat (Roy Hann)
Newsgroups: comp.databases.ingres
Subject: Re: ANY and ALL
Date: Fri, 1 Jul 2022 09:44:49 -0000 (UTC)
Organization: Aioe.org NNTP Server
Message-ID: <t9mfmh$lk0$1@gioia.aioe.org>
References: <t9jme1$1doo$1@gioia.aioe.org> <d98ba218-5a45-4a15-b50a-765e2e838bd4n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="22144"; posting-host="ow2HZ3WUoSa7bUAoHqrJ8A.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: XPN/1.2.6 (Street Spirit ; Windows)
X-Notice: Filtered by postfilter v. 0.9.2
 by: Roy Hann - Fri, 1 Jul 2022 09:44 UTC

nikosv wrote:

> I don't know if it is interesting,but I've once used ANY to remove duplicate rows
>
> https://www.i-programmer.info/programming/database/8296-sql-workshop-removing-duplicate-rows-.html

Thank you Nikos.

You walk very patiently through what is not a very intuitive bit of SQL.
If someone can get their head around that they understand a lot.

I also applaud your goal of encouraging set-wise processing instead of
row-by-agonizing-row procedural code! :-)

If anyone else has any very apt or concise examples where ANY/ALL make
life easier I'm still keen to see them.

Roy

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor