Codd's Theorem, a fundamental result of database theory, asserts that relational algebra and relational calculus have the same expressive power on relational databases. We explore Codd's Theorem for databases over semirings and establish two different versions of this result for such databases: the first version involves the five basic operations of relational algebra, while in the second version the division operation is added to the five basic operations of relational algebra. In both versions, the difference operation of relations is given semantics using semirings with monus, while on the side of relational calculus a limited form of negation is used. The reason for considering these two different versions of Codd's theorem is that, unlike the case of ordinary relational databases, the division operation need not be expressible in terms of the five basic operations of relational algebra for databases over an arbitrary positive semiring; in fact, we show that this inexpressibility result holds for bag databases, as well as for databases over the tropical semiring.

Badia, G., Kolaitis, P.G., Noguera, C. (2025). Codd's Theorem for Databases over Semirings. PROCEEDINGS OF THE ACM ON MANAGEMENT OF DATA, 3(5), 1-26 [10.1145/3767713].

Codd's Theorem for Databases over Semirings

Noguera, Carles
2025-01-01

Abstract

Codd's Theorem, a fundamental result of database theory, asserts that relational algebra and relational calculus have the same expressive power on relational databases. We explore Codd's Theorem for databases over semirings and establish two different versions of this result for such databases: the first version involves the five basic operations of relational algebra, while in the second version the division operation is added to the five basic operations of relational algebra. In both versions, the difference operation of relations is given semantics using semirings with monus, while on the side of relational calculus a limited form of negation is used. The reason for considering these two different versions of Codd's theorem is that, unlike the case of ordinary relational databases, the division operation need not be expressible in terms of the five basic operations of relational algebra for databases over an arbitrary positive semiring; in fact, we show that this inexpressibility result holds for bag databases, as well as for databases over the tropical semiring.
2025
Badia, G., Kolaitis, P.G., Noguera, C. (2025). Codd's Theorem for Databases over Semirings. PROCEEDINGS OF THE ACM ON MANAGEMENT OF DATA, 3(5), 1-26 [10.1145/3767713].
File in questo prodotto:
File Dimensione Formato  
Badia-Kolaitis-Noguera-ACM-2025.pdf

accesso aperto

Tipologia: PDF editoriale
Licenza: Creative commons
Dimensione 691.62 kB
Formato Adobe PDF
691.62 kB Adobe PDF Visualizza/Apri

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11365/1303855