| Goal | Find base table columns that contain only one value. Perhaps it is an unnecessary column. Having only one value is most likely inadequate for testing. |
|---|---|
| Notes | The query uses information that is collected as the result of statistics collection process (see the ANALYZE statement). The side effect of running the test is that the statistics of the entire database will be refreshed. |
| Type | Problem detection (Each row in the result could represent a flaw in the design) |
| Reliability | Medium (Medium number of false-positive results) |
| License | MIT (opens in new tab) |
| Data Source | INFORMATION_SCHEMA+system catalog |
| SQL Query |
|
Categories
This query is classified under the following categories:
Comfortability of database evolution
Queries of this category provide information about the means that influence database evolution.
Data at the database logical level
Queries of this category provide information about data in base tables.
Missing data
Queries of this category provide information about missing data (NULLs) in a database.
Unused implementation elements
Queries of this catergory provide information about the database objects that are not used.
| Name | Description |
|---|---|
| Comfortability of database evolution | Queries of this category provide information about the means that influence database evolution. |
| Data at the database logical level | Queries of this category provide information about data in base tables. |
| Missing data | Queries of this category provide information about missing data (NULLs) in a database. |
| Unused implementation elements | Queries of this catergory provide information about the database objects that are not used. |