如何通过关系代数中的子句表示订单?
我想通过基于balance
属性的降序顺序使用关系代数来获取与帐户相关的信息。
桌子: 帐户(ID,Account_Number,Branch_name,Balance)
如何通过关系代数中的子句表示订单?
I want to get account related information by using Relational Algebra based on the descending order of the balance
attribute.
Table:Account (id, account_number, branch_name, balance)
How to get ORDER BY clause representation in Relational Algebra?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为这是不可能的;关系代数是关于集合的,没有订单。在 SQL和RELETION理论的这本书据说“订单实际上不是关系代数的一部分”。另外,在so so 的类似问题上有一个非常详尽的答案。
I don't think that is possible; relational algebra is about sets, which don't have an order. In this book on SQL and relation theory it is stated that "ORDER BY isn’t actually part of the relational algebra". Also, there's a quite thorough answer to a similar question on SO.