【发布时间】:2012-01-27 02:47:02
【问题描述】:
我对这个问题有点脑残,我发现很难找到解决方案,因为我无法正确地表达问题以提供相关信息。
我正在尝试从下表中取回“fProduct”记录,该记录具有“fAttribute” 2 和 20。
id fAttribute fProduct
19 2 2967
48 2 2923
50 2 3008
51 20 3008
52 2 2295
53 20 2295
当我期望返回 fProduct 的 2295 和 3008 时,我的以下语句产生 0 个结果。
SELECT fProduct
FROM tableName
WHERE fAttribute = 2 AND fAttribute = 20
GROUP BY fProduct
有人可以帮忙吗?
【问题讨论】: