|
|
|
|
|
by balfirevic
309 days ago
|
|
> It's written that way because it stems from relational algebra, in which the projection is typically (always?) written first. It's inspired by a mish-mash of both relational algebra and relational calculus, but the reason why SELECT comes first is because authors wanted it to read like English (it was originally called Structured English Query Language). You can write the relational algebra operators in any order you want to get the result you want. |
|
Ultimately, yes, you can express relational algebra in any notation that gets the point across, but the parent is right that
is what is commonly used. not so much. Even Codd himself used the former notation style in his papers, even though he settled on putting the relation first in his query language.