总结3列并进行比较

时间:2014-07-07 09:34:38

标签: sql oracle

我的oracle SQL有问题

SELECT BASE_PLATE FROM COMPONENT WHERE THICKNESS = :thicknessVal AND PROJECT_NAME = :projectName AND ((CNC+SCATOR+MANUAL) != QTY_REQUIRED)

问题是查询只显示1个数据,它应该显示2个数据。我查询的任何错误?

BASE_PLATE, NAME,      QTY_REQUIRED,SCATOR,MANUAL,CNC
SMSPW-BS1,  BASE_PLATE,10,          2,     2,     3
SMSPW-BS154,BASE_PLATE,7,           0,     0,     0
SMSPW-BS2,  BASEPLATE, 16,          3,     6,     3

0 个答案:

没有答案