Forum Discussion

n4tusi4's avatar
n4tusi4
Regular Visitor
4 years ago
Solved

Oracle: ORA-00911: invalid character in query

Hello, Can You please help me to identify what power BI treats as an invalid character in this query? I can add that it works fine in SQL developer. I have already removed all "%", ";"   and "&". Ma...
  • n4tusi4's avatar
    4 years ago

    The issue was created by the same name of 2 different columns. I have changed a name of 2nd one and now it works.

    SELECT distinct (
    SELECT sob.NAME
    FROM apps.gl_sets_of_books sob
    WHERE sob.set_of_books_id = a.set_of_books_id
    ) "SOB_Name"
    ,(
    SELECT sob.set_of_books_id
    FROM apps.gl_sets_of_books sob
    WHERE sob.set_of_books_id = a.set_of_books_id
    ) "SOB_Name"