Saya pikir sql ini akan membantu Anda. Silakan periksa.
Contoh 1 SQL mengembalikan TRUE.
Example 1:- SELECT CASE WHEN NAME = "MASTER" AND Ref = 4
AND strDoors = 3 AND Items = 1 THEN 'TRUE '
ELSE 'FALSE' END FROM mytable
Contoh 2 SQL mengembalikan FALSE.
Example 2:- SELECT CASE WHEN NAME = "MASTER" AND Ref = 1
AND strDoors = 1 AND Items = 1 THEN 'TRUE '
ELSE 'FALSE' END FROM mytable
Terima kasih.