Filter Queries

Found 1073 queries.

Page 4 of 54
  • All the queries about database objects contain a subcondition to exclude from the result information about the system catalog.
  • Although the statements use SQL constructs (common table expressions; NOT in subqueries) that could cause performance problems in case of large datasets, it shouldn't be a problem in case of the relatively small amount of data in the system catalog of a database.

#61. All foreign key constraints

system catalog base tables only

Enforce referential integrity in database. Find all referential integrity (foreign key) constraints.

General License: MIT (opens in new tab)

#62. Enumerated types with zero or one value

INFORMATION_SCHEMA+system catalog base tables

Fidn enumerated types with zero or one value. Type is a named finite set of values. The empty set is a set. A set with one value is a set. Thus, types with zero or one value are legal. In practical terms each type, usually, should contain at least two values.

Problem detection License: MIT (opens in new tab)

#63. Name does not contain any vowels (aggregate view)

INFORMATION_SCHEMA+system catalog base tables

Find aggregate information about the names of database objects that do not contain any vowels.

Sofware measure License: MIT (opens in new tab)

#64. Base table columns where TOASTing is possible

system catalog base tables only

Find all base table columns in case of which the system can use TOAST technique.

General License: MIT (opens in new tab)

#65. Base tables with exactly one key

system catalog base tables only

Find all base tables that have exactly one PRIMARY KEY or UNIQUE constraint. Find and enforce all the keys. Are you sure there are not more keys in the table?

General License: MIT (opens in new tab)

#66. All CHECK constraints of domains that are not associated with any table

INFORMATION_SCHEMA only

Find all CHECK constraints (except NOT NULL) of domains that are not associated with any column.

General License: MIT (opens in new tab)

#67. Table check constraints with regular expressions

INFORMATION_SCHEMA only

Find all CHECK constraints (except NOT NULL) that are associated with a base table or a foreign table column and use a regular expression. It is useful to enforce as many constraints at database level as possible. In this way one improves data quality as well as gives extra information to the database users (including the DBMS engines, development environments, and applications).

General License: MIT (opens in new tab)

#68. All table CHECK constraints that cover at leat one column

INFORMATION_SCHEMA only

Find all CHECK constraints (except NOT NULL) that are associated with a base table or a foreign table column. It is useful to enforce as many constraints at database level as possible. In this way one improves data quality as well as gives extra information to the database users (including the DBMS engines, development environments, and applications).

General License: MIT (opens in new tab)

#69. Consistency of CHECK constraint name and content

INFORMATION_SCHEMA only

Find all CHECK constraints that name contains a digit. Make sure that the name and the Boolean expression are consistent.

General License: MIT (opens in new tab)

#70. All column dynamic DEFAULT values values that do not invoke a sequence

INFORMATION_SCHEMA only

Find all columns that have a dynamic default value, i.e., the value is returned by a function but the function is not for invoking a sequence.

General License: MIT (opens in new tab)

#71. All column static DEFAULT values

INFORMATION_SCHEMA only

Find all columns that have a static default value, i.e., the value is not returned by a function.

General License: MIT (opens in new tab)

#72. Comments of columns

system catalog base tables only

Find all comments of columns of tables.

General License: MIT (opens in new tab)

#73. All covering indexes

INFORMATION_SCHEMA+system catalog base tables

Find all covering indexes, which include data from additional columns in leaf blocks.

General License: MIT (opens in new tab)

#74. Deferrable constraints

system catalog base tables only

Find all deferrable constraints.

General License: MIT (opens in new tab)

#75. All domains

INFORMATION_SCHEMA only

Find all domains.

General License: MIT (opens in new tab)

#76. All enumerated types

INFORMATION_SCHEMA+system catalog base tables

Find all enumerated types.

General License: MIT (opens in new tab)

#77. All exclude constraints

system catalog base tables only

Find all exclude constraints.

General License: MIT (opens in new tab)

#78. All foreign tables

INFORMATION_SCHEMA only

Find all foreign tables.

General License: MIT (opens in new tab)

#79. All table functions

INFORMATION_SCHEMA+system catalog base tables

Find all functions that return a set of rows.

General License: MIT (opens in new tab)

#80. Find all non-foreign key columns of base tables

INFORMATION_SCHEMA+system catalog base tables

Find all non-foreign key columns of base tables. Make sure that no foreign key constraint is missing.

General License: MIT (opens in new tab)
# Name(activate to sort ascending) Goal(sorted ascending, activate to sort descending) Type(activate to sort ascending) Data source(activate to sort ascending) Last update(activate to sort ascending) License Actions
61 All foreign key constraints Enforce referential integrity in database. Find all referential integrity (foreign key) constraints. General system catalog base tables only MIT (opens in new tab) View
62 Enumerated types with zero or one value Fidn enumerated types with zero or one value. Type is a named finite set of values. The empty set is a set. A set with one value is a set. Thus, types with zero or one value are legal. In practical terms each type, usually, should contain at least two values. Problem detection INFORMATION_SCHEMA+system catalog base tables MIT (opens in new tab) View
63 Name does not contain any vowels (aggregate view) Find aggregate information about the names of database objects that do not contain any vowels. Sofware measure INFORMATION_SCHEMA+system catalog base tables MIT (opens in new tab) View
64 Base table columns where TOASTing is possible Find all base table columns in case of which the system can use TOAST technique. General system catalog base tables only MIT (opens in new tab) View
65 Base tables with exactly one key Find all base tables that have exactly one PRIMARY KEY or UNIQUE constraint. Find and enforce all the keys. Are you sure there are not more keys in the table? General system catalog base tables only MIT (opens in new tab) View
66 All CHECK constraints of domains that are not associated with any table Find all CHECK constraints (except NOT NULL) of domains that are not associated with any column. General INFORMATION_SCHEMA only MIT (opens in new tab) View
67 Table check constraints with regular expressions Find all CHECK constraints (except NOT NULL) that are associated with a base table or a foreign table column and use a regular expression. It is useful to enforce as many constraints at database level as possible. In this way one improves data quality as well as gives extra information to the database users (including the DBMS engines, development environments, and applications). General INFORMATION_SCHEMA only MIT (opens in new tab) View
68 All table CHECK constraints that cover at leat one column Find all CHECK constraints (except NOT NULL) that are associated with a base table or a foreign table column. It is useful to enforce as many constraints at database level as possible. In this way one improves data quality as well as gives extra information to the database users (including the DBMS engines, development environments, and applications). General INFORMATION_SCHEMA only MIT (opens in new tab) View
69 Consistency of CHECK constraint name and content Find all CHECK constraints that name contains a digit. Make sure that the name and the Boolean expression are consistent. General INFORMATION_SCHEMA only MIT (opens in new tab) View
70 All column dynamic DEFAULT values values that do not invoke a sequence Find all columns that have a dynamic default value, i.e., the value is returned by a function but the function is not for invoking a sequence. General INFORMATION_SCHEMA only MIT (opens in new tab) View
71 All column static DEFAULT values Find all columns that have a static default value, i.e., the value is not returned by a function. General INFORMATION_SCHEMA only MIT (opens in new tab) View
72 Comments of columns Find all comments of columns of tables. General system catalog base tables only MIT (opens in new tab) View
73 All covering indexes Find all covering indexes, which include data from additional columns in leaf blocks. General INFORMATION_SCHEMA+system catalog base tables MIT (opens in new tab) View
74 Deferrable constraints Find all deferrable constraints. General system catalog base tables only MIT (opens in new tab) View
75 All domains Find all domains. General INFORMATION_SCHEMA only MIT (opens in new tab) View
76 All enumerated types Find all enumerated types. General INFORMATION_SCHEMA+system catalog base tables MIT (opens in new tab) View
77 All exclude constraints Find all exclude constraints. General system catalog base tables only MIT (opens in new tab) View
78 All foreign tables Find all foreign tables. General INFORMATION_SCHEMA only MIT (opens in new tab) View
79 All table functions Find all functions that return a set of rows. General INFORMATION_SCHEMA+system catalog base tables MIT (opens in new tab) View
80 Find all non-foreign key columns of base tables Find all non-foreign key columns of base tables. Make sure that no foreign key constraint is missing. General INFORMATION_SCHEMA+system catalog base tables MIT (opens in new tab) View