Hi Bhavin, and welcome to the Ranch!
In your case, you could probably use the
IN operator. I'd suggest reading some
SQL tutorial, it will come in handy.
If you plan to run this statement using
JDBC,
you should also read a thing or two about
PreparedStatement.