 




<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: SQL select command</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/sql-select-command/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-select-command/</link>
	<description></description>
	<lastBuildDate>Tue, 21 May 2013 20:11:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: abrahm75</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-select-command/#comment-66395</link>
		<dc:creator>abrahm75</dc:creator>
		<pubDate>Mon, 03 Aug 2009 06:55:22 +0000</pubDate>
		<guid isPermaLink="false">#comment-66395</guid>
		<description><![CDATA[Hi All again,

thank you Carlosdl, thank you all, its working now perfectly ...

the thing is i just made the Group By according to the (auction_items.auction_item_nr) only ... as below:

SELECT customers.first_name, customers.last_name, customers.email, customers.cellPhone, customers.phone, 
items.title, items.price, auction_items.auction_item_nr, auction_items.reserv_price, MAX (biddings.price)
FROM customers, biddings, auction_items, items, auctions
WHERE customers.customer_nr = biddings.customer_nr
AND auction_items.auction_item_nr = biddings.auction_item_nr
AND items.item_nr = auction_items.item_nr
AND auction_items.auction_nr = auctions.auction_nr
AND auctions.auction_nr =7
GROUP BY auction_items.auction_item_nr 
ORDER BY auction_items.item_nr]]></description>
		<content:encoded><![CDATA[<p>Hi All again,</p>
<p>thank you Carlosdl, thank you all, its working now perfectly &#8230;</p>
<p>the thing is i just made the Group By according to the (auction_items.auction_item_nr) only &#8230; as below:</p>
<p>SELECT customers.first_name, customers.last_name, customers.email, customers.cellPhone, customers.phone,<br />
items.title, items.price, auction_items.auction_item_nr, auction_items.reserv_price, MAX (biddings.price)<br />
FROM customers, biddings, auction_items, items, auctions<br />
WHERE customers.customer_nr = biddings.customer_nr<br />
AND auction_items.auction_item_nr = biddings.auction_item_nr<br />
AND items.item_nr = auction_items.item_nr<br />
AND auction_items.auction_nr = auctions.auction_nr<br />
AND auctions.auction_nr =7<br />
GROUP BY auction_items.auction_item_nr<br />
ORDER BY auction_items.item_nr</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: abrahm75</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-select-command/#comment-66394</link>
		<dc:creator>abrahm75</dc:creator>
		<pubDate>Mon, 03 Aug 2009 06:40:04 +0000</pubDate>
		<guid isPermaLink="false">#comment-66394</guid>
		<description><![CDATA[Hi again, 
i tried to use Group By, its look like better but am still getting duplication on (auction_items.auction_item_nr), as am not getting the max(biddings.price):

result is:
auction_items.auction_item_nr, auction_items.reserv_price, MAX (biddings.price)

50	450	400
50	450	300
51	300	300
52	8000	299
52	8000	199
48	1300	500
48	1300	400
49	800	500

as you can notice that the (auction_items.auction_item_nr) been duplicated two times for (50, 52, also 48), i don&#039;t know what is the problem but it must gets like below ...

auction_items.auction_item_nr, auction_items.reserv_price, MAX (biddings.price)

50	450	400
51	300	300
52	8000	299
48	1300	500
49	800	500

so any suggestion !!!

thank you for advance ...]]></description>
		<content:encoded><![CDATA[<p>Hi again,<br />
i tried to use Group By, its look like better but am still getting duplication on (auction_items.auction_item_nr), as am not getting the max(biddings.price):</p>
<p>result is:<br />
auction_items.auction_item_nr, auction_items.reserv_price, MAX (biddings.price)</p>
<p>50	450	400<br />
50	450	300<br />
51	300	300<br />
52	8000	299<br />
52	8000	199<br />
48	1300	500<br />
48	1300	400<br />
49	800	500</p>
<p>as you can notice that the (auction_items.auction_item_nr) been duplicated two times for (50, 52, also 48), i don&#8217;t know what is the problem but it must gets like below &#8230;</p>
<p>auction_items.auction_item_nr, auction_items.reserv_price, MAX (biddings.price)</p>
<p>50	450	400<br />
51	300	300<br />
52	8000	299<br />
48	1300	500<br />
49	800	500</p>
<p>so any suggestion !!!</p>
<p>thank you for advance &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mrdenny</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-select-command/#comment-66351</link>
		<dc:creator>mrdenny</dc:creator>
		<pubDate>Fri, 31 Jul 2009 18:35:27 +0000</pubDate>
		<guid isPermaLink="false">#comment-66351</guid>
		<description><![CDATA[You will want to switch away from the older JOIN syntax as it can cause incorrect data to be returned in some cases.  Also support for that syntax will be dropped at some point in the future.]]></description>
		<content:encoded><![CDATA[<p>You will want to switch away from the older JOIN syntax as it can cause incorrect data to be returned in some cases.  Also support for that syntax will be dropped at some point in the future.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 6/9 queries in 0.018 seconds using memcached
Object Caching 296/299 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-21 22:08:22 -->