How to create view with subquery in from caluse
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
Subject
Views
Written By
Posted
How to create view with subquery in from caluse
72508
May 04, 2006 12:50AM
31566
May 04, 2006 09:37AM
29102
May 05, 2006 08:09AM
24588
February 16, 2008 05:01AM
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.