| Goal | Find user-defined routines that implement database operations (comment refers to an operation) but show these only if there are at least eight such routines. Contracts of database operations are specified in the system analysis documentation. The contracts apply the idea of design by contract in the field of databases. |
|---|---|
| Notes | The query assumes that the comment of each routine that implements a database operation contains the short identifier of the database operation, which starts with the letters OP. In the returned body of routine the query replaces each newline character with the line break (br) tag for the better readability in case the query result is displayed in a web browser. There could be multiple routines with the same name but with different parameters in the same schema (overloading). Thus, for the unique identification of the routine it is necessary to present also its parameters in addition to the schema name and routine name. |
| Type | General (Overview of some aspect of the database.) |
| License | MIT (opens in new tab) |
| Data Source | INFORMATION_SCHEMA+system catalog |
| SQL Query |
|
Categories
This query is classified under the following categories:
Assessment
Queries of this category could be used specifically in the learning environment to assess as to whether student projects have filled certain criteria.
User-defined routines
Queries of this category provide information about the user-defined routines
| Name | Description |
|---|---|
| Assessment | Queries of this category could be used specifically in the learning environment to assess as to whether student projects have filled certain criteria. |
| User-defined routines | Queries of this category provide information about the user-defined routines |
Further reading and related materials: