Article View: pl.comp.lang.delphi.bazy-danych
Article #70517Re: problem z czasem wykonania zapytania
From: wloochacz
Date: Tue, 31 Jul 2007 09:05
Date: Tue, 31 Jul 2007 09:05
52 lines
1925 bytes
1925 bytes
Jaka baza?
Podaj pełne DDL dla tabeli TRE.
--
wloochacz
PS. Poza tym wolę tak: ;-)
select GRUPA,
MODEL,
DZAL,
DEKOR,
OPIS,
NTP,
P,
M,
ZL,
SUM(ILE) as ILE
from TRE
where M = 'Prod' and
(ZL is null or
ZL = '200707311') and
MODEL not like 'ŁAWA%' and
MODEL not like 'STOLIK%' and
MODEL not like 'STÓŁ%' and
MODEL <> 'IMPERIUM' and
MODEL <> 'MONTANA' and
MODEL <> 'VENETO' and
MODEL <> 'DOMINO' and
MODEL <> 'SPARTA' and
MODEL <> 'WARKA' and
MODEL <> 'SPARTAN' and
MODEL not like 'CONF ŁAWA%' and
MODEL <> 'REKLAMACJA ŁAWA' and
GRUPA <> 'TAPI' and
GRUPA <> 'KUCH' and
ZAM is not null
group by GRUPA,
MODEL,
DZAL,
DEKOR,
OPIS,
NTP,
P,
M,
ZL
order by 1,
2,
3,
4,
5,
6
Technical Details
Message-ID:
<f8mu84$hic$1@nemesis.news.tpi.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.nask.pl!news.nask.org.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mailReferences:
<f8mtrj$gop$1@nemesis.news.tpi.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.nask.pl!news.nask.org.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail From: wloochacz <wl@no.spam> Newsgroups: pl.comp.lang.delphi.bazy-danych Subject: Re: problem z czasem wykonania zapytania Date: Tue, 31 Jul 2007 11:05:23 +0200 Organization: tp.internet - http://www.tpi.pl/ Lines: 52 Message-ID: <f8mu84$hic$1@nemesis.news.tpi.pl> References: <f8mtrj$gop$1@nemesis.news.tpi.pl> NNTP-Posting-Host: plast-box.pl Mime-Version: 1.0 X-Trace: nemesis.news.tpi.pl 1185872964 17996 195.205.119.237 (31 Jul 2007 09:09:24 GMT) X-Complaints-To: usenet@tpi.pl NNTP-Posting-Date: Tue, 31 Jul 2007 09:09:24 +0000 (UTC) User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) In-Reply-To: <f8mtrj$gop$1@nemesis.news.tpi.pl> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit