<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forum PostgreSQL - boolean value for "undefined"]]></title>
	<link rel="self" href="http://forum.postgresql.org.pl/extern.php?action=feed&amp;tid=372&amp;type=atom"/>
	<updated>2010-01-12T07:48:48Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.postgresql.org.pl/viewtopic.php?id=372</id>
		<entry>
			<title type="html"><![CDATA[Odp: boolean value for "undefined"]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=1698#p1698"/>
			<content type="html"><![CDATA[[quote=woziu]
....czemu uważasz, że zostały zliczone tylko poprawne rekordy?...[/quote]
0. to, ze reconciled = TRUE wcale nie oznacza ze rekordy sa poprawne a jedynie, ze atrybut reconciled ma wartosc TRUE
1. w warunku ograniczenia where reconciled = TRUE wystepuje jako pierwszy i z calej relacji wybrane zostaly tylko te rekordy, ktore spelniaja warunek reconciled = TRUE (zatem w podzbiorze tej relacji dla atrybutu reconciled nie wystepuje juz ani FALSE ani NULL
2. w zapytaniu sa dwie alternatywy; alternatywa jest prawdziwa, gdy chociaz jedne skladnik jest poprawny; tu akurat jest piewszy TRUE wiec pominieto reszte; gdyby tak nie bylo to zapytanie powinno zwrocic blad, poniewaz jak slusznie wskazal rski ostatni skladnik alternatywy jest blednie napisany: nie reconciled = NULL  tyko reconciled IsNull;

tak sadze, ale ze czesto sie myle nie nalezy tego co napisalem brac zbyt powaznie;
pozdrawiam]]></content>
			<author>
				<name><![CDATA[sulavix]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=972</uri>
			</author>
			<updated>2010-01-12T07:48:48Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=1698#p1698</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: boolean value for "undefined"]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=1697#p1697"/>
			<content type="html"><![CDATA[Witam, 
Sulavix czemu uważasz, że zostały zliczone tylko poprawne rekordy?
Pytam z ciekawości.]]></content>
			<author>
				<name><![CDATA[woziu]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=64</uri>
			</author>
			<updated>2010-01-11T22:08:12Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=1697#p1697</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: boolean value for "undefined"]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=1694#p1694"/>
			<content type="html"><![CDATA[witam serdecznie;
otrzymales info, ze 4 rekordy/krotki z relacji account_invoice spelniaja warunek reconciled=TRUE]]></content>
			<author>
				<name><![CDATA[sulavix]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=972</uri>
			</author>
			<updated>2010-01-11T07:59:38Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=1694#p1694</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: boolean value for "undefined"]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=1692#p1692"/>
			<content type="html"><![CDATA[[code]
reconciled IS NULL
[/code]]]></content>
			<author>
				<name><![CDATA[rski]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=26</uri>
			</author>
			<updated>2010-01-10T15:45:54Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=1692#p1692</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[boolean value for "undefined"]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=1691#p1691"/>
			<content type="html"><![CDATA[lacan=# select count(*) from account_invoice ;
 count 
-------
   161
(1 row)

lacan=# select count(*) from account_invoice where reconciled=TRUE or reconciled=FALSE or reconciled=NULL;
 count 
-------
     4
(1 row)


czy ktos moze mi to wyjasnic?]]></content>
			<author>
				<name><![CDATA[jerzyo]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=1037</uri>
			</author>
			<updated>2010-01-10T10:57:09Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=1691#p1691</id>
		</entry>
</feed>
