Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8766881
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:39:34+00:00 2026-06-13T16:39:34+00:00

I have a trouble querying view in Oracle. Here is the view (my_cool_view) definition:

  • 0

I have a trouble querying view in Oracle.

Here is the view (my_cool_view) definition:

SELECT *
  FROM mview1 JOIN
       mview2 USING(col_id) 

where mview1 and mview2 is materialized views. I can’t access to definition of this materialized views. I’ve tried this query:

select r.title from my_cool_view r;

and got ORA-00918: column ambiguously defined error. I got this error for subset of columns in my_cool_view.

If I run this query:

select * from my_cool_view;

all works fine.

You are asking about desc my_cool_view in comments, sorry I can’t provide schema information because it’s confidential. The only I can say it contains about 80 columns, and only one (col_id) don’t cause above error.

Do you have any ideas what is the case and how to fix it?

Thanks in advance.

Sorry for misled you, the first version of question was too bad.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T16:39:36+00:00Added an answer on June 13, 2026 at 4:39 pm

    You probably have 2 columns called title from different tables/views that you’ve joined. If you select * then this will work as the duplicate title columns will get a different alias (like TITLE1). When you explicitly ask for one of the title columns the database needs to know which one you want and thus throws the error.

    Just make sure that the title columns have a different alias:

       select EMP.TITLE EMP_TITLE, DEPT.TITLE DEPT_TITLE
       FROM   ...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have trouble using SSL pages with JMeter, which I previously posted here .
i have trouble with calling one view controller to another view controller using segue
Having some trouble understanding the right approach here. I have a connection to a
I have trouble finding the right way to add cells into columns: Here is
I have trouble printing simple text from a <h1> element: require 'nokogiri' doc =
I have trouble in assigning an argument value / command line arguments. Here is
I have trouble using the output of one query as a value in another.
I have trouble with using the Core-Plot library in MonoTouch. I use this as
i have trouble with following sql-statement (trimmed): SELECT nr, (CASE WHEN SUM(vkdtab.amount*liter)<>0 AND jjjjmm
I have trouble figuring out why a simple division like this one always returns

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.