![]() |
|
Archives of the TeradataForumMessage Posted: Fri, 10 Apr 2009 @ 19:59:37 GMT
I like this:
select
tablename,
indexname,
indextype,
sum(case when accesscount is null
then 0
else accesscount
end) as accesscount
from
dbc.indices
where
databasename = 'myDatabase'
group by
1,2,3
Vincent Bernard
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||