<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forum PostgreSQL - Rozbicie jednej kolumny na 3]]></title>
	<link rel="self" href="http://forum.postgresql.org.pl/extern.php?action=feed&amp;tid=212&amp;type=atom"/>
	<updated>2009-05-19T08:22:24Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.postgresql.org.pl/viewtopic.php?id=212</id>
		<entry>
			<title type="html"><![CDATA[Odp: Rozbicie jednej kolumny na 3]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=905#p905"/>
			<content type="html"><![CDATA[Juz zrobilem:) Dodalem nowa kolumne i updatowalem ja.. I teraz dziala:

select NAZWISKO, CENA_JED, PLACA_MIES from pracownicy JOIN wypozyczenia where PLACA_MIES >= '400' order by NAZWISKO;

:)]]></content>
			<author>
				<name><![CDATA[tidon]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=904</uri>
			</author>
			<updated>2009-05-19T08:22:24Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=905#p905</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: Rozbicie jednej kolumny na 3]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=904#p904"/>
			<content type="html"><![CDATA[no wlsnie widze:P MySQL'a mam od pol roku ale masz racje! Musze troszke poczytac. Powinno byc order by :)]]></content>
			<author>
				<name><![CDATA[tidon]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=904</uri>
			</author>
			<updated>2009-05-19T08:12:11Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=904#p904</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: Rozbicie jednej kolumny na 3]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=903#p903"/>
			<content type="html"><![CDATA[Wiesz co chyba musisz troche pouczyć się, bo masz problemy ze składnią. Wiesz co robi GROUP BY? Słyszałeś kiedyś o klauzuli WHERE?]]></content>
			<author>
				<name><![CDATA[rski]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=26</uri>
			</author>
			<updated>2009-05-19T07:55:17Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=903#p903</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: Rozbicie jednej kolumny na 3]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=902#p902"/>
			<content type="html"><![CDATA[DZieki! jest wszystko ok! A mozesz mi powiedziec co w tym zapytaniu jest zle?:

select NAZWISKO, CENA_JED, DATA_ODD-DATA_WYP * CENA_JED >= '400' AS PLACA  from pracownicy JOIN wypozyczenia group by NAZWISKO;

Musze odjac dni i pomnozyc je razy cene jednego dnia. Wyswietlic te ktore przekraczaja 400zl. Probowalem tez DATEDIFF() ale nie dziala.]]></content>
			<author>
				<name><![CDATA[tidon]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=904</uri>
			</author>
			<updated>2009-05-19T07:44:24Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=902#p902</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: Rozbicie jednej kolumny na 3]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=901#p901"/>
			<content type="html"><![CDATA[Skorzystaj z datediff()

Tu masz opis [url]http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html#function_datediff[/url]]]></content>
			<author>
				<name><![CDATA[rski]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=26</uri>
			</author>
			<updated>2009-05-19T06:47:48Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=901#p901</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: Rozbicie jednej kolumny na 3]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=900#p900"/>
			<content type="html"><![CDATA[Wzielem ten kod i usunelem slowa "date" i wyszlo tylko w tabeli DNI wyszedl taki wynik:
101.0000000000000000000000000000000 przy okresie miesiaca gdzie powinno wyjsc 30.]]></content>
			<author>
				<name><![CDATA[tidon]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=904</uri>
			</author>
			<updated>2009-05-19T06:39:05Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=900#p900</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: Rozbicie jednej kolumny na 3]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=899#p899"/>
			<content type="html"><![CDATA[To nastepne zadanie :P mam wyswietlic ilosc dni na ktore samochod zostal wypozyczony.. Naskrobalem cos i moze latwiej bedzie poprawic moje wiec pokazuje:

select NAZWISKO, NR_WYPOZYCZENIA, DATA_WYP, DATA_ODD, date DATA_ODD - date DATA_WYP as DNI from klienci JOIN wypozyczenia;

data_ODD - oddania
data_WYP - wypozyczenia

Chcialem odjac date wyp od daty odd zeby wyszlo na ile dni byl wypozyczony. 

Podrawiam]]></content>
			<author>
				<name><![CDATA[tidon]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=904</uri>
			</author>
			<updated>2009-05-19T06:30:52Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=899#p899</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: Rozbicie jednej kolumny na 3]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=898#p898"/>
			<content type="html"><![CDATA[Zrobilem:) 

select IMIE, NAZWISKO,EXTRACT(YEAR FROM DATA_ZATR) AS ROK, EXTRACT(MONTH FROM DATA_ZATR) AS MIESIAC, EXTRACT(DAY FROM DATA_ZATR) AS DZIEN from pracownicy;

DZieki bardzo!]]></content>
			<author>
				<name><![CDATA[tidon]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=904</uri>
			</author>
			<updated>2009-05-19T06:22:43Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=898#p898</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: Rozbicie jednej kolumny na 3]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=897#p897"/>
			<content type="html"><![CDATA[Zapytania tworze w MySQL Front.]]></content>
			<author>
				<name><![CDATA[tidon]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=904</uri>
			</author>
			<updated>2009-05-19T06:06:39Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=897#p897</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: Rozbicie jednej kolumny na 3]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=895#p895"/>
			<content type="html"><![CDATA[A jakiego masz postgresa?]]></content>
			<author>
				<name><![CDATA[rski]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=26</uri>
			</author>
			<updated>2009-05-18T11:58:10Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=895#p895</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: Rozbicie jednej kolumny na 3]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=894#p894"/>
			<content type="html"><![CDATA[chyba to date_part nie dziala.. bo przypisuje normalne zmienne Rok= '2006' i dziala..]]></content>
			<author>
				<name><![CDATA[tidon]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=904</uri>
			</author>
			<updated>2009-05-18T11:14:47Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=894#p894</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: Rozbicie jednej kolumny na 3]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=893#p893"/>
			<content type="html"><![CDATA[SQL execution error #1305. Response from the database:
FUNCTION tidon.date_part does not Exist.

taki error wychodzi..]]></content>
			<author>
				<name><![CDATA[tidon]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=904</uri>
			</author>
			<updated>2009-05-18T11:01:25Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=893#p893</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: Rozbicie jednej kolumny na 3]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=892#p892"/>
			<content type="html"><![CDATA[no jak chcesz 'updateować
[code]
update pracownicy set
rok=date_part('year', data_zatr),
miesiac=date_part('month', data_zatr),
dzien=date_part('day', data_zatr)
[/code]]]></content>
			<author>
				<name><![CDATA[rski]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=26</uri>
			</author>
			<updated>2009-05-18T10:47:25Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=892#p892</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: Rozbicie jednej kolumny na 3]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=891#p891"/>
			<content type="html"><![CDATA[A gdzie to umiescic w zapytaniu 

select IMIE, NAZWISKO, ROK, MIESIAC, DZIEN from pracownicy;


np ROK(date_part('day, DATA_ZATR)), ...  ?]]></content>
			<author>
				<name><![CDATA[tidon]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=904</uri>
			</author>
			<updated>2009-05-18T09:58:36Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=891#p891</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: Rozbicie jednej kolumny na 3]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=890#p890"/>
			<content type="html"><![CDATA[spróbuj date_partem
[code]
date_part('day', nazwa_kolumny)
date_part('month', nazwa_kolumny)
date_part('year', nazwa_kolumny)
[/code]]]></content>
			<author>
				<name><![CDATA[rski]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=26</uri>
			</author>
			<updated>2009-05-18T09:52:45Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=890#p890</id>
		</entry>
</feed>
