Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个具有以下结构的数据库,需要一些帮助来运行查询。
表 1 是:
订单编号:订单日期
表 2 是:
订单 ID: 项目 ID: 项目名称
我需要一个查询,该查询将返回按特定订单日期中的项目名称分组的订单计数。
谁能帮我吗?
select count(*) from table2 inner join table1 on table2.orderid = table1.orderid where table1.orderdate="some date" and itemname="sepcific name"