【问题标题】:How to select rows that have certain values present in another column如何选择在另一列中存在某些值的行
【发布时间】:2022-12-04 12:41:30
【问题描述】:

I have a table :

id value
1 A
1 B
1 C
2 A
2 B
3 A

my goal is to have the table where I have only IDs that have A,B,C present per id,

in this case it is:

id
1

how to construct the SQL query for that ?

    标签: sql


    【解决方案1】:
    【解决方案2】:
    猜你喜欢
    • 2016-11-05
    • 1970-01-01
    • 1970-01-01
    • 2015-04-10
    • 1970-01-01
    • 2022-01-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多