Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No way to express a relation with zero attributes? #15

Open
dportas1 opened this issue Oct 4, 2018 · 1 comment
Open

No way to express a relation with zero attributes? #15

dportas1 opened this issue Oct 4, 2018 · 1 comment

Comments

@dportas1
Copy link

dportas1 commented Oct 4, 2018

I can't create a relation with zero attributes or return zero attributes from an expression (i.e the relations DUM and DEE).

E.g. the following give syntax errors

π (R)
A = {}

@michaelrampl michaelrampl self-assigned this Feb 10, 2020
@michaelrampl michaelrampl added this to the Sprint 2020/02 milestone Feb 10, 2020
@michaelrampl michaelrampl removed this from the Sprint 2020/03 milestone Apr 16, 2020
@r-prem r-prem self-assigned this Jul 22, 2022
rlaiola referenced this issue in rlaiola/relax Sep 28, 2023
…/checkout-3.5.0

Bump actions/checkout from 3.4.0 to 3.5.0
@rlaiola
Copy link
Contributor

rlaiola commented Oct 9, 2024

Here comes a gift 🎁 in the 6 years anniversary of this request 😃

#212

Test it live at https://rlaiola.github.io/relax/calc/local/uibk/local/0.

Dum and Dee relations can be represented as follows:

Dum = {}   -- inline relation with empty heading and no tuples
Dee = {()} -- inline relation with empty heading but one tuple of degree zero

Given a relation R with n (n > 0) attributes and t (t > 0) tuples

R x Dum -- returns a relation with the same schema of R but no tuples
R x Dee -- returns the very same relation R

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

6 participants