Book a Demo

Author Topic: t_objectresource.resource issue  (Read 3893 times)

Marianne

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
t_objectresource.resource issue
« on: April 14, 2014, 07:38:58 pm »
if I run the query 'select * from t_objectresource' one of the fields I get is 'Resource' (in uppercase for first letter, the rest lowercase)

I want to run a query like this:
SELECT  t_objectresource.Resource,   t_objectresource.PercentComplete, count(*)
FROM t_object, t_objectresource
WHERE t_object.Object_ID=t_objectresource.Object_ID AND t_object.Phase='1.1'
GROUP BY  t_objectresource.Resource,  t_objectresource.PercentComplete

But then I get the error ORA-01747: invalid user.table.column, table.column, or column specification.

I tried name instead of resource but it doesn't work either.  :(

Thanks for your help!

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: t_objectresource.resource issue
« Reply #1 on: April 14, 2014, 07:46:39 pm »
I tried it with *.eap (JET 4) and SQL Server. It works fine.

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: t_objectresource.resource issue
« Reply #2 on: April 14, 2014, 09:45:04 pm »
Try the SELECTs single to find what's wrong. E.g.
Code: [Select]
SELECT * FROM t_objectresourcethen
Code: [Select]
SELECT  Resource FROM t_objectresourceetc.

to see where it fails.

q.
« Last Edit: April 14, 2014, 09:45:33 pm by qwerty »

hd

  • EA Administrator
  • EA User
  • *****
  • Posts: 312
  • Karma: +0/-0
    • View Profile
Re: t_objectresource.resource issue
« Reply #3 on: April 15, 2014, 07:42:05 am »
Resource is an Oracle keyword. Wrap it in double quotes...

Code: [Select]
SELECT  "Resource" FROM t_objectresource