Mysql
 sql >> Base de Dados >  >> RDS >> Mysql

Consulta MySql na combinação de AND e OR

Select * from Students where roll_no like '__2011%' and (subject1 ='maths' or subject2='maths' or subject3='maths' or subject4='maths' or subject5='maths' or subject6='maths');