| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: SQL query in postgres |
Hi,
I think this is over complicated. There are multiples ways to do this (with
count, group by, etc) but the easiest way is :
SELECT s.ad
FROM swedro s
WHERE s.pt='23' AND s.ad NOT IN (
SELECT ad
FROM swedro
WHERE pt'23'
)
#!/bin/bash -e
myName="Tom"
echo "Cordially, "$myName
--- Mystic BBS v1.12 A31 (Windows)
* Origin: Agency BBS | telnet://agency.bbs.geek.nz (3:770/100) |
|
| SOURCE: echomail via QWK@docsplace.org | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.