Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| dido:99_annexes:annex-b-terms-and-definitions:s:sql [2026/07/11 11:14] – removed - external edit (Unknown date) 127.0.0.1 | dido:99_annexes:annex-b-terms-and-definitions:s:sql [2026/07/18 12:33] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Structured Query Language (SQL) ====== | ||
| + | [[dido: | ||
| + | |||
| + | ===== Discussion ===== | ||
| + | |||
| + | Structured Query Language (SQL) provides a standard language for defining, querying, manipulating, | ||
| + | |||
| + | SQL supports database schemas, tables, columns, [[dido: | ||
| + | |||
| + | SQL differs from [[dido: | ||
| + | |||
| + | SQL also differs from [[dido: | ||
| + | |||
| + | SQL semantic content includes: | ||
| + | |||
| + | * Table names | ||
| + | * Column names | ||
| + | * Datatypes | ||
| + | * Primary keys | ||
| + | * Foreign keys | ||
| + | * Unique constraints | ||
| + | * Check constraints | ||
| + | * Referential constraints | ||
| + | * Views | ||
| + | * Queries | ||
| + | * Stored procedures | ||
| + | * Triggers | ||
| + | * Transactions | ||
| + | * Access controls | ||
| + | * Audit tables | ||
| + | * Traceability to domain meaning | ||
| + | |||
| + | ===== Definition ===== | ||
| + | |||
| + | //standard language for defining, querying, manipulating, | ||
| + | |||
| + | ===== Source ===== | ||
| + | |||
| + | Generalised from ISO/IEC 9075 SQL usage, relational database practice, data modeling practice, and software architecture usage; specialized for use in the FX Demo Reference Architecture. | ||
| + | |||
| + | ===== Note ===== | ||
| + | |||
| + | SQL is not equivalent to a conceptual model, schema, ontology, or semantic model. SQL artifacts express selected semantic commitments in a relational database context when their structures, constraints, | ||
| + | |||
| + | A database column can have a valid SQL datatype while still lacking clear domain meaning. For example, a column with datatype '' | ||
| + | |||
| + | ===== Example ===== | ||
| + | |||
| + | An FX trade table defines selected relational structures for trade information. | ||
| + | |||
| + | ^ SQL artifact ^ Example ^ Semantic interpretation ^ | ||
| + | | Table | '' | ||
| + | | Column | '' | ||
| + | | Column | '' | ||
| + | | Column | '' | ||
| + | | Column | '' | ||
| + | | Column | '' | ||
| + | | Column | '' | ||
| + | | Check constraint | '' | ||
| + | |||
| + | The SQL definition constrains the relational representation. The semantic meaning comes from the governed vocabulary, conceptual model, type system, lifecycle rules, and validation rules that explain what each table, column, and constraint means. | ||
| + | |||
| + | <code sql> | ||
| + | CREATE TABLE FX_TRADE ( | ||
| + | TRADE_IDENTIFIER VARCHAR(64) PRIMARY KEY, | ||
| + | COUNTERPARTY_LEI | ||
| + | CURRENCY_PAIR | ||
| + | NOTIONAL_AMOUNT | ||
| + | TRADE_DATE | ||
| + | SETTLEMENT_DATE | ||
| + | LIFECYCLE_STATE | ||
| + | CHECK (SETTLEMENT_DATE >= TRADE_DATE) | ||
| + | ); | ||
| + | </ | ||
| + | |||
| + | The '' | ||
| + | |||
| + | ---- | ||
| + | |||
| + | <WRAP centeralign> | ||
| + | © 2026 Dido Solutions, Inc. and Jackrabbit Consulting, Inc. | ||
| + | </ | ||