<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forum PostgreSQL - problem z zapytaniem sql]]></title>
	<link rel="self" href="http://forum.postgresql.org.pl/extern.php?action=feed&amp;tid=126&amp;type=atom"/>
	<updated>2009-01-26T19:40:53Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.postgresql.org.pl/viewtopic.php?id=126</id>
		<entry>
			<title type="html"><![CDATA[Odp: problem z zapytaniem sql]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=475#p475"/>
			<content type="html"><![CDATA[Można tak powiedziec. Taki Select jak w zapytaniu musi być aliasowany.]]></content>
			<author>
				<name><![CDATA[rski]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=26</uri>
			</author>
			<updated>2009-01-26T19:40:53Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=475#p475</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: problem z zapytaniem sql]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=474#p474"/>
			<content type="html"><![CDATA[wielkie dzięki coś takiego chciałam uzyskać ;]
foo mam rozumieć jako tabelę tymczasową?]]></content>
			<author>
				<name><![CDATA[martka]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=577</uri>
			</author>
			<updated>2009-01-26T08:57:25Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=474#p474</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: problem z zapytaniem sql]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=469#p469"/>
			<content type="html"><![CDATA[To może tak
[code]select foo.*, count(*) as count from (SELECT * from listy_prod where (listy_id,updated) in (select listy_id,max(updated) from listy_prod group by listy_id)) as foo, listy_prod where foo.listy_id=listy_prod.listy_id group by foo.id,foo.listy_id,foo.prod_id,foo.updated,listy_prod.listy_id order by foo.listy_id;[/code]]]></content>
			<author>
				<name><![CDATA[rski]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=26</uri>
			</author>
			<updated>2009-01-23T22:57:40Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=469#p469</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: problem z zapytaniem sql]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=465#p465"/>
			<content type="html"><![CDATA[dzięki ;]

potrzebuje jeszcze dorzucić count(prod_id) (ile produktow jest na kazdej liscie) do tego zapytania]]></content>
			<author>
				<name><![CDATA[martka]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=577</uri>
			</author>
			<updated>2009-01-19T10:22:03Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=465#p465</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: problem z zapytaniem sql]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=461#p461"/>
			<content type="html"><![CDATA[Moze tak
[code]SELECT * from listy_prod where (listy_id,updated) in (select listy_id,max(updated) from listy_prod group by listy_id)[/code]]]></content>
			<author>
				<name><![CDATA[rski]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=26</uri>
			</author>
			<updated>2009-01-12T16:42:49Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=461#p461</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[problem z zapytaniem sql]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=460#p460"/>
			<content type="html"><![CDATA[Witam,

mam tabele LISTY_PROD
                    id
                    listy_id
                    prod_id
                    updated
potrzebuje wyciągnąć z niej  ostatnio dodany produkt(prod_id) do każdej listy(listy_id). Jakieś pomysły?

pozdrawiam]]></content>
			<author>
				<name><![CDATA[martka]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=577</uri>
			</author>
			<updated>2009-01-12T14:38:58Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=460#p460</id>
		</entry>
</feed>
