如何通过关系代数中的子句表示订单?

发布于 2025-02-12 09:51:34 字数 151 浏览 0 评论 0原文

我想通过基于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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

淡淡離愁欲言轉身 2025-02-19 09:51:34

我认为这是不可能的;关系代数是关于集合的,没有订单。在 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文