Hi, Maybe this will also work in your case, because "natural join" doesn't duplicate columns:
select * from (select * from department natural join department); Regards, Thomas On Wed, Feb 16, 2011 at 1:01 PM, Serg <[email protected]> wrote: > When I trying execute the query below I get the following error: > “Duplicate column name "DEPARTMENTID" …” > > Query: > select * from (select department.*, employee.* from department, > employee where department.departmentid=employee.departmentid) > > Tables “department” and “employee” has the common column > “DEPARTMENTID”. > It seems to me that the query is correct, because the inner subquery > works. > > Can you support such query? > > -- > You received this message because you are subscribed to the Google Groups "H2 > Database" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/h2-database?hl=en. > > -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/h2-database?hl=en.
