i have 2 views p1v,p2v
select * from p1v;
id1 | count1
-----+--------
1 | 2
2 | 1
(2 rows)
select * from p2v;
id2 | count2
-----+--------
1 | 1
2 | 1
(2 rows)
is it possible to join views ? i have incorrect results(see bellow. 2's in the column count2 ) how does it work? is it important, how the views were created, or are they considered tables during processing of the select?
database is Postgres7
select * from p1v,p2v;
id1 | count1 | id2 | count2
-----+--------+-----+--------
1 | 2 | 1 | 2
1 | 2 | 2 | 2
2 | 1 | 1 | 1
2 | 1 | 2 | 1
(4 rows)
select * from p1v;
id1 | count1
-----+--------
1 | 2
2 | 1
(2 rows)
select * from p2v;
id2 | count2
-----+--------
1 | 1
2 | 1
(2 rows)
is it possible to join views ? i have incorrect results(see bellow. 2's in the column count2 ) how does it work? is it important, how the views were created, or are they considered tables during processing of the select?
database is Postgres7
select * from p1v,p2v;
id1 | count1 | id2 | count2
-----+--------+-----+--------
1 | 2 | 1 | 2
1 | 2 | 2 | 2
2 | 1 | 1 | 1
2 | 1 | 2 | 1
(4 rows)