<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Disqus - Latest Comments for elai</title><link>http://disqus.com/by/elai/</link><description></description><atom:link href="http://disqus.com/elai/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 17 Apr 2008 02:25:36 -0000</lastBuildDate><item><title>Re: Relational algebra: division in sql</title><link>http://oracletoday.blogspot.com/2008/04/relational-algebra-division-in-sql.html#comment-346028</link><description>&lt;p&gt;Yas,&lt;/p&gt;&lt;p&gt;Thanks for your postings and comments regarding Relational Algebra: division in sql!&lt;/p&gt;&lt;p&gt;elai&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">elai</dc:creator><pubDate>Thu, 17 Apr 2008 02:25:36 -0000</pubDate></item><item><title>Re: Relational algebra: division in sql</title><link>http://oracletoday.blogspot.com/2008/04/relational-algebra-division-in-sql.html#comment-345999</link><description>&lt;p&gt;How about these two sets of queries for division in the case of having all red parts:&lt;/p&gt;&lt;p&gt;select distinct sid&lt;br&gt;from catalog c, parts p&lt;br&gt;where &lt;a href="http://c.pid" rel="nofollow noopener" target="_blank" title="c.pid"&gt;c.pid&lt;/a&gt; = &lt;a href="http://p.pid" rel="nofollow noopener" target="_blank" title="p.pid"&gt;p.pid&lt;/a&gt; and color = 'Red'&lt;br&gt;group by sid&lt;br&gt;having count(distinct &lt;a href="http://c.pid" rel="nofollow noopener" target="_blank" title="c.pid"&gt;c.pid&lt;/a&gt;) =&lt;br&gt;(select count(distinct pid)&lt;br&gt;from parts&lt;br&gt;where color = 'Red');&lt;/p&gt;&lt;p&gt;select distinct sid&lt;br&gt;from catalog c1&lt;br&gt;where not exists (&lt;br&gt;(select pid&lt;br&gt;from parts&lt;br&gt;where color = 'Red')&lt;br&gt;minus&lt;br&gt;(slect pid&lt;br&gt;from catalog c2&lt;br&gt;where c1.sid = c2.sid));&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">elai</dc:creator><pubDate>Thu, 17 Apr 2008 02:09:48 -0000</pubDate></item><item><title>Re: Relational algebra: division in sql</title><link>http://oracletoday.blogspot.com/2008/04/relational-algebra-division-in-sql.html#comment-341345</link><description>&lt;p&gt;How about these two sets of queries for division:&lt;/p&gt;&lt;p&gt;select  distinct sid&lt;br&gt;from    catalog c, parts p&lt;br&gt;where &lt;a href="http://c.pid" rel="nofollow noopener" target="_blank" title="c.pid"&gt;c.pid&lt;/a&gt; = &lt;a href="http://p.pid" rel="nofollow noopener" target="_blank" title="p.pid"&gt;p.pid&lt;/a&gt;&lt;br&gt;group by sid&lt;br&gt;having count(distinct &lt;a href="http://c.pid" rel="nofollow noopener" target="_blank" title="c.pid"&gt;c.pid&lt;/a&gt;) =&lt;br&gt;(select count(distinct pid)&lt;br&gt; from    parts);&lt;/p&gt;&lt;p&gt;select distinct sid&lt;br&gt;from    catalog c1&lt;br&gt;where not exists (&lt;br&gt;(select pid&lt;br&gt;  from parts)&lt;br&gt;minus&lt;br&gt;(slect pid&lt;br&gt; from  catalog c2&lt;br&gt; where c1.sid = c2.sid));&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">elai</dc:creator><pubDate>Wed, 16 Apr 2008 07:06:45 -0000</pubDate></item></channel></rss>