sql求助同一天内商品码被大于1家门店扫描
sql吧
全部回复
仅看楼主
level 1
我是绿萝呀
楼主
code id 门店id
codeA 门店1
codeA 门店2
codeB 门店3
求同一天内商品码被大于1家门店扫描的code id
2023年02月08日 07点02分
1
level 1
我是绿萝呀
楼主
如图所示,怎么求同一天内商品码被大于一家门店扫描过
2023年02月08日 07点02分
2
level 1
_forever_允儿
##select distinct code_id from table where exists( select code_id from table t where t.code_id=table.code_id and t.时间=table.时间 and t.门店id<>table.门店id)
2023年02月08日 09点02分
3
吧务
level 14
秋水☘️
2023年03月10日 16点03分
5
1