By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,660 Members | 1,267 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,660 IT Pros & Developers. It's quick & easy.

Views with Where Clauses

P: n/a
Hi,
I have a view that has some wher clause in it.

If I call the view with SELECT * FROM viewx WHERE xxxx ; (joining 2
tables)
then I dont get any results back although issuing the command in full
i.e. without view i get rows back.

Is it not possible to use view that way ?

Cheers
Alex

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Nov 11 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Friday 05 September 2003 10:39, Alex wrote:
Hi,
I have a view that has some wher clause in it.

If I call the view with SELECT * FROM viewx WHERE xxxx ; (joining 2
tables)
then I dont get any results back although issuing the command in full
i.e. without view i get rows back.

Is it not possible to use view that way ?


That's how they're supposed to work. Are you sure there's not some subtle
mistake in the view definition? Feel free to post it along with the query.

--
Richard Huxton
Archonet Ltd

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html

Nov 11 '05 #2

P: n/a
My apologies...
I had a Limit in the view. So, the second where never got to a valid
record.

Thanks anyway
A

Richard Huxton wrote:
On Friday 05 September 2003 10:39, Alex wrote:

Hi,
I have a view that has some wher clause in it.

If I call the view with SELECT * FROM viewx WHERE xxxx ; (joining 2
tables)
then I dont get any results back although issuing the command in full
i.e. without view i get rows back.

Is it not possible to use view that way ?


That's how they're supposed to work. Are you sure there's not some subtle
mistake in the view definition? Feel free to post it along with the query.


---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to ma*******@postgresql.org so that your
message can get through to the mailing list cleanly

Nov 11 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.