user2978141
user2978141

Reputation: 43

What does this mean in database - ⊆?

What does this symbol in database mean ⊆?

for example for projection in relational algebra :

ΠLR

take a subset of the attributes of a relation R, where L ⊆ R.

Upvotes: 2

Views: 12009

Answers (5)

Vadim
Vadim

Reputation: 4529

L ⊆ R means literally L is a subset of R.

In order to understand it here is an example, we have two sets A and B:

A = {1, 4, 5}
B = {1, 2, 3, 4, 5}

where A is a subset of B, because all numbers from set A can be found in set B. Also, we can see it as a diagram:

enter image description here

Now we can write it using the math notation:

A ⊆ B

I recommend to have a look on these pages, just to solid your knowledge:

https://en.wikipedia.org/wiki/Subset

https://www.mathsisfun.com/sets/symbols.html

Upvotes: -1

mitesh
mitesh

Reputation: 1

L and R make set of attributes

Upvotes: 0

Neverland Wang
Neverland Wang

Reputation: 1

L ⊆ R means L is subset of or equal to R.

Upvotes: 0

Mitch Wheat
Mitch Wheat

Reputation: 300569

L ⊆ R means L is a subset of R ('is contained in').

[L could also be equal to the whole of R].

Upvotes: 0

Paul Draper
Paul Draper

Reputation: 83263

L ⊆ R means L is a subset of R.

For every element in L, the element exists in R.

Upvotes: 9

Related Questions