寻找仅通过匹配ID返回结果的查询
sorry in advance for beeing stupid :)
I want to search for different values and then get a group_id back that contains all the values I'm looking for. Is that possible, or does the structure have to be changed for this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
例如,如果您只需要为哪个值A,B和C选择Group_ID,则可以使用类似于以下的汇总的组。
For example if you only need to select group_id for which value A, B and C all are available you can use group by with aggregation like below:
据我所知,您现有的结构应该可以。
您可以编写这样的查询:
它将返回包含您要搜索的值的所有group_ids。
As far as I can tell your existing structure should be OK.
You could write a query that goes like this:
It'll return all the group_ids that contain the values you're searching for.