![]() |
|
Archives of the TeradataForumMessage Posted: Fri, 30 Mar 2012 @ 21:36:19 GMT
Assuming the view is a straight view of the columns in the table, and you want to list the columns excluded from the view, then:
SELECT columnname FROM dbc.COLUMNS
WHERE databasename = 'table_DB'
AND tablename = 'table_name'
MINUS
SELECT columnname FROM dbc.COLUMNS
WHERE databasename = 'view_DB'
AND tablename = 'view_name'
;
Pat McKeown
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||