Thank you very much. You have been right. Adding tramecky_id IS NOT NULL
solved the problem.
Cheers,
Miloslav
Dne 22.9.2017 v 09:32 Albe Laurenz napsal(a):
Miloslav Semler wrote:
I found strange behavior with subselects and I am not able to explain
it. I have several tables in schema:
tramec
Hello,
I found strange behavior with subselects and I am not able to explain
it. I have several tables in schema:
tramecky, mt_hodnoty, plata_kusy
in these tables, id is always primary key (serial), table_id is always
foreign key to table. When I run this query:
select tramecky.id FROM a.t
Miloslav Semler wrote:
> I found strange behavior with subselects and I am not able to explain
> it. I have several tables in schema:
>
> tramecky, mt_hodnoty, plata_kusy
>
> in these tables, id is always primary key (serial), table_id is always
> foreign key to table. When I run this query:
>
>
Hello,
I found strange behavior with subselects and I am not able to explain
it. I have several tables in schema:
tramecky, mt_hodnoty, plata_kusy
in these tables, id is always primary key (serial), table_id is always
foreign key to table. When I run this query:
select tramecky.id FROM a.t