<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Jak internet zwojowałem &#187; SQL</title>
	<atom:link href="http://www.arabek.net/tag/sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.arabek.net</link>
	<description>... czyli starca pieprzenie o dupie Maryni</description>
	<lastBuildDate>Sun, 25 Jul 2010 07:59:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>SQL: odwrócony SELECT DISTINCT</title>
		<link>http://www.arabek.net/sql-odwrocony-select-distinct/</link>
		<comments>http://www.arabek.net/sql-odwrocony-select-distinct/#comments</comments>
		<pubDate>Mon, 27 Apr 2009 16:19:48 +0000</pubDate>
		<dc:creator>arab</dc:creator>
				<category><![CDATA[Wpisy]]></category>
		<category><![CDATA[DISTINCT]]></category>
		<category><![CDATA[SELECT]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.arabek.net/sql-odwrocony-select-distinct/</guid>
		<description><![CDATA[Czasami człowiek zapomina takich perełek&#8230; TAK! Wiem, że jest to rozwiązanie nieoptymalne. select blabla from tab as t1, tab as t2 where t1.id t2.id and t1.name = t2.name; Alternatywą dla tego byłoby użycie: SELECT DISTINCT(id) from tabela; wrzucenie tego do tablicy w php, a następnie użycie negacji: SELECT * FROM tabela WHERE id NOT IN [...]]]></description>
			<content:encoded><![CDATA[<p>Czasami człowiek zapomina takich perełek&#8230; TAK! Wiem, że jest to rozwiązanie nieoptymalne.</p>
<p><code>select blabla from<br />
tab as t1,<br />
tab as t2<br />
where t1.id <> t2.id and t1.name = t2.name;</code></p>
<p>Alternatywą dla tego byłoby użycie:</p>
<p><code>SELECT DISTINCT(id) from tabela;</code></p>
<p>wrzucenie tego do tablicy w php, a następnie użycie negacji:</p>
<p><code>SELECT * FROM tabela WHERE id NOT IN ($tablica);</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.arabek.net/sql-odwrocony-select-distinct/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced)
Database Caching using disk
Object Caching 205/216 objects using disk

Served from: www.arabek.net @ 2010-07-30 12:30:14 -->