While writing a trigger or a class one may encounter the error "Too Many SOQL Queries : 101" which occurs when the governor limit for SOQL Queries crosses its threshold........... one of the common errors would be including the SOQL Query inside a for loop.. so avoid this error Avoid writing the SOQL query inside a For loop......