Hi all
it's been a while that i didnt play with TSM sql query... This is on a TSM 5.5 system
i found the query on the good old Tobioas site . http://thobias.org/tsm/sql/index.html#toc22
SELECT node_name,CAST(FLOAT(SUM(logical_mb)) / 1024 AS DEC(8,2)) FROM occupancy GROUP BY node_name
As from this query i want to extract the domain_name from the node table
This is what I try and the error the it give me.. can you help me
SELECT oc.node_name,CAST(FLOAT(SUM(logical_mb)) / 1024 AS DEC(8,2)),node.domain_name FROM occupancy oc, nodes node where oc.node_name = node.node_name group by oc.node_name
ANR2938E The column 'DOMAIN_NAME' is not allowed in this context; it must either be named in the GROUP BY clause or be nested within an aggregate function.
Thanks for the help!
it's been a while that i didnt play with TSM sql query... This is on a TSM 5.5 system
i found the query on the good old Tobioas site . http://thobias.org/tsm/sql/index.html#toc22
SELECT node_name,CAST(FLOAT(SUM(logical_mb)) / 1024 AS DEC(8,2)) FROM occupancy GROUP BY node_name
As from this query i want to extract the domain_name from the node table
This is what I try and the error the it give me.. can you help me
SELECT oc.node_name,CAST(FLOAT(SUM(logical_mb)) / 1024 AS DEC(8,2)),node.domain_name FROM occupancy oc, nodes node where oc.node_name = node.node_name group by oc.node_name
ANR2938E The column 'DOMAIN_NAME' is not allowed in this context; it must either be named in the GROUP BY clause or be nested within an aggregate function.
Thanks for the help!