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 8985605
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T21:22:04+00:00 2026-06-15T21:22:04+00:00

I’ve distilled down a problem query to the following example, and I can’t find

  • 0

I’ve distilled down a problem query to the following example, and I can’t find anything on metalink indicating that this is a known bug, or expected behaviour.

The following script is self contained so anyone could reproduce this, I’m using Oracle 11.2.0.3.0 enterprise 64-bit running on RHEL, queries being submitted via SQL Developer, the same results occur in SQL Plus.

First : create the nested table type.

create type nested_type_test as table of varchar(32);

Second : create a table using the type as the nested type.

create table nested_table_test (
  uuid          varchar(32)
  , some_values nested_type_test
)
NESTED TABLE some_values STORE AS nested_some_values;

Third : create an arbitary table that we will use to create a join statement with.

create table join_table (
  uuid  varchar(32)
);

Now for some simple SQL statements:

select *
from nested_table_test ntt, table(some_Values) sv;

select *
from nested_table_test ntt, table(some_Values) sv
where ntt.uuid = 'X';

Both work, I havn’t inserted data but for the purposes of this bug / test we do not need to since the issue is a parse issue. Next statement, I add the join to the arbitary table I generated for this purposes.

select *
from nested_table_test ntt, table(some_Values) sv
inner join join_table jt on jt.uuid = ntt.uuid;

This now produces : ORA-00904: "NTT"."UUID": invalid identifier – yet I know that the field exists and could reference it in a where clause. Taking out the TABLE(some_values) clause like this,

select *
from nested_table_test ntt
inner join join_table jt on jt.uuid = ntt.uuid;

and the query works, so I know it is isolated to the existance of the nested table clause within the statement.

If I switch to using a manual join instead of an ANSI join, it then parses and executes again.

select *
from nested_table_test ntt, table(some_Values) sv, join_table jt
where jt.uuid = ntt.uuid;

Alternatively, and even more hack-ish:

select *
from nested_table_test ntt, table(some_Values) sv
inner join join_table jt on 1=1
where jt.uuid = ntt.uuid;

Also parses – so it is not the ntt.uuid itself that is the problem, but where it occurs within the statement that the parser seems to struggle with.

Known bug, Unknown bug or expected behaviour?

Edit : Using CROSS JOIN table(some_values) sv causes a seg fault and a trace file on the server whilst dumping the connection – that one for sure is a bug. It’s also why I’m not in pure ANSI join syntax.

  • 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-15T21:22:05+00:00Added an answer on June 15, 2026 at 9:22 pm

    When you are mixing up oracle and ANSI join syntax it’s the expected behavior. ANSI join takes precedence over , comma join(cross join), parsed from left to right, so it means that the ntt has not been joined yet when you were trying to reference ntt.uuid column and that is why you might get that error. To that end choose one of the join types. For instance:

    select *
    from nested_table_test ntt 
        , table(some_Values) sv
        , join_table jt 
    where jt.uuid = ntt.uuid;
    

    OR

    select *
      from nested_table_test ntt
     cross join  table(some_Values) sv
      join join_table jt
        on (jt.uuid = ntt.uuid)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I've tracked down a weird MySQL problem to the two different ways I was
I know there's a lot of other questions out there that deal with this
Does anyone know how can I replace this 2 symbol below from the string
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
Seemingly simple, but I cannot find anything relevant on the web. What is the
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has

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.