🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.bazy-danych
Article #195746

Re: MS-SQL - szukanie wielu wystąpień

#195746
From: Adam
Date: Sat, 23 Oct 2021 21:09
17 lines
1318 bytes
Dnia Fri, 22 Oct 2021 03:38:13 -0700 (PDT), irq napisał(a):

> select tre_id, tre_ean, count(*) from tabela_z_pozycjami group by tre_id, tre_ean having count(*) > 1;

Dzięki, to jest to :)

Wcześniej martwiłem się, że trzeba postawić kursor na _tabeli_z_naglowkami
i dopiero z niego wjeżdżać do tabeli_z_pozycjami - a to by trwało długo, bo
tabela_z_elementami ma kilka milionów pozycji.

Co prawda to i tak jeszcze zrobię joiny, ale to już drobiazg.


-- 
Pozdrawiam.

Adam
Technical Details
Message-ID: <2t47dd45kzfl$.f8nou76m24mb$.dlg@40tude.net>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.chmurka.net!.POSTED.185.152.121.246!not-for-mail
References: <lmz06qub8i0m.18dflaw61hs5g.dlg@40tude.net> <4ba1e8f9-90f3-4ba1-bcc8-4ff192d629d2n@googlegroups.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.chmurka.net!.POSTED.185.152.121.246!not-for-mail
From: Adam <a.g@poczta.onet.pl>
Newsgroups: pl.comp.bazy-danych
Subject: Re: MS-SQL - szukanie wielu wystąpień
Date: Sat, 23 Oct 2021 23:09:25 +0200
Organization: news.chmurka.net
Message-ID: <2t47dd45kzfl$.f8nou76m24mb$.dlg@40tude.net>
References: <lmz06qub8i0m.18dflaw61hs5g.dlg@40tude.net> <4ba1e8f9-90f3-4ba1-bcc8-4ff192d629d2n@googlegroups.com>
NNTP-Posting-Host: 185.152.121.246
Mime-Version: 1.0
Injection-Info: news.chmurka.net; posting-account="Adam"; posting-host="185.152.121.246"; logging-data="21790"; mail-complaints-to="abuse-news.(at).chmurka.net"
User-Agent: 40tude_Dialog/2.0.15.1pl
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit