MySQL Forums
Forum List  »  Oracle

How to create view with subquery in from caluse
Posted by: Sultana Jahan Rini
Date: May 04, 2006 12:50AM

Dear all,
I have facing an error to create the following view? It's ok in oracle but gave me error in mysql "ERROR 1349 (HY000): View's SELECT contains a subquery in the FROM clause".
Please help me in urgent.

create or replace view vu1
as
select u.acct_id, a.debit, a.credit
from acct_user u LEFT OUTER JOIN
(
select acct_id, debit, credit
from account
where acct_id = 1)
a
ON u.acct_id = a.acct_id;

With thanks
Rini

Options: ReplyQuote


Subject
Views
Written By
Posted
How to create view with subquery in from caluse
72508
May 04, 2006 12:50AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.