I'm running the below SQL query. I know my database has over 500 tables but the query only returns stats on 288 tables. Why doesn't it return something for all the tables? Below is an example of what I'm running.
SELECT OBJECT_NAME(OBJECT_ID) AS [Table],
Last_user_update, Last_user_seek, Last_user_scan, Last_user_lookup
FROM sys.dm_db_index_usage_stats
WHERE database_id = DB_ID('table name')