我試圖從兩個表中獲取數據。這裏是我的代碼:Where子句不起作用
select p.nim, p.title, s.name, p.year, substring(p.abstrak, 1, 100), p.path, p.status
from student s
join project p
on s.nim = p.nim
where p.title like "%foot%"
or p.title like "%ball%" and p.status = 'active'
這個想法沒有獲得非活動狀態的數據。但是這個查詢不斷返回具有不活動狀態的數據
我在做什麼錯在這裏?
@marc_s謝謝你..這讓我明白我在做什麼錯.. – kpratama