mysql将sql转为关系代数,将SQL查询转换为关系代数

Take an input in SQL query, lexically analyze it, parse it and produce a relational algebric expression. Please answer as soon as possible.

解决方案

To get to that level of question I would have assumed you could probably answer it yourself with some investigation.

Really, what are you after, a way to build DDL from queries or something ?

More info please, smells suspiciously like a homework question.

Whilst I'm not about to do your homework for you (sorry) I can point you to a Wikipedia article that will summarise RA and point you to some useful references.

Study this, and where it leads you, and if you have specific questions please feel free to ask.

http://en.wikipedia.org/wiki/Relational_algebra

Cheers.

SELECT Suppliers.sid FROM Suppliers, Parts, Catalog WHERE Suppliers.sid = Catalog.sid AND Catalog.pid = Parts.pid AND (Parts.color = 'red' OR Parts.color = 'green') AND Catalog.cost < 100

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值