I'm trying to determine if the asset
table in Maximo 7.6.1.1 has a primary key (query source):
SELECT cols.table_name, cols.column_name, cols.position, cons.status, cons.owner
FROM all_constraints cons, all_cons_columns cols
WHERE cols.table_name = 'ASSET'
AND cons.constraint_type = 'P'
AND cons.constraint_name = cols.constraint_name
AND cons.owner = cols.owner
ORDER BY cols.table_name, cols.position;
[0 records returned]
I'm surprised that the query did not find a primary key in this table.
Does the ASSET table in Maximo have a primary key? Or is there a problem with the query?
Edit:
Now that I look at the table properties in Toad, I see that it clearly states that there is no primary key on the asset
table: