2016-05-28 17 views

答えて

1

SQLは次のようになります。clause, and the equality check operator in SQL is = , not `==場合、条件はwhere clause, not anにする必要があります

SELECT Name, Value, Quantity 
FROM sales 
WHERE (type = 'Purchase' AND state = 'confirmed') OR 
     (type = 'Sale' AND state = 'not confirmed'); 
+0

ありがとうございました。 – Dawzer

0

。したがって:

SELECT Name, Value, Quantity 
FROM sales 
WHERe (type = 'Purchase' AND state = 'confirmed') OR 
     (type = 'Sale' AND state = 'not confirmed') 
関連する問題