SQL Query issue (MSSQL server)

Please help on this

You need to provide more context - what you tried, what is your query, etc.

check your query you have set anything after where class.
Check after where condition in the query you need to define it like for example where [gender]=’'male"
but in your query you are not setting any where condition