Article View: pl.comp.bazy-danych.msaccess
Article #136989Sql DISTINCT and DELETE - kwerenda wyszukująca oraz usuwająca duplikaty
From: piotr1011
Date: Mon, 24 Aug 2015 14:28
Date: Mon, 24 Aug 2015 14:28
10 lines
1903 bytes
1903 bytes
Witam Jak powinien wyglądać prawidłowy kod sql dla kwerendy wyszukującej duplikaty oraz od razu owe duplikaty kasujacy ? Na chwilę obecna mam cos takiego , ale nie wiem w którym miejscu powinno pojawić się DELETE . SELECT DISTINCT REG, Miesiac, [CCHBC Week], DemandAreaNumber, DemandArea, [SumOfNumber of Activities], [Reason (Code)], [Description of a Transaction], Forwagent, kontraktor, [Numer kierowcy], kierowca, Lokacja, miasto, lokacja1, miasto1, lokacja2, miasto2, Expr1, Expr2, Expr3, Expr4, Expr5 FROM [dane dla other2]; Pozdrawiam
Technical Details
Message-ID:
<10cb9281-27eb-4df9-a172-5119ad6e0466@googlegroups.com>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed.pionier.net.pl!feeder.erje.net!1.eu.feeder.erje.net!news.glorb.com!peer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!x6no4037484igd.0!news-out.google.com!nt1ni13714igb.0!nntp.google.com!se8no9506943igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mailShow Full Headers
Complete Article Headers
X-Received: by 10.182.45.138 with SMTP id n10mr22963589obm.4.1440426495200; Mon, 24 Aug 2015 07:28:15 -0700 (PDT) X-Received: by 10.50.61.235 with SMTP id t11mr28117igr.4.1440426495180; Mon, 24 Aug 2015 07:28:15 -0700 (PDT) Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed.pionier.net.pl!feeder.erje.net!1.eu.feeder.erje.net!news.glorb.com!peer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!x6no4037484igd.0!news-out.google.com!nt1ni13714igb.0!nntp.google.com!se8no9506943igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: pl.comp.bazy-danych.msaccess Date: Mon, 24 Aug 2015 07:28:14 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=185.59.4.10; posting-account=47nfkgoAAABjJcjiZ2peaIfyt_qjPWeo NNTP-Posting-Host: 185.59.4.10 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <10cb9281-27eb-4df9-a172-5119ad6e0466@googlegroups.com> Subject: Sql DISTINCT and DELETE - kwerenda wyszukująca oraz usuwająca duplikaty From: piotr1011 <piotr.stachowski1973@gmail.com> Injection-Date: Mon, 24 Aug 2015 14:28:15 +0000 X-Received-Bytes: 1701 X-Received-Body-CRC: 387377865 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit