IT Project Engineer
IT Project Engineer Interview Questions and Answers
Q1. How many soal query we can write in switch case
You can write only one SQL query in each case of a switch statement.
Each case in a switch statement can only contain one SQL query.
If you need to execute multiple SQL queries, you can use separate switch cases or other control structures.
Example: switch (variable) { case 1: query1; break; case 2: query2; break; default: defaultQuery; }
Q2. How many soql query can we write in for loop
SOQL queries in a for loop should be avoided due to governor limits
Avoid writing SOQL queries inside for loops to prevent hitting governor limits
Use collections like lists or maps to query data outside of loops
Limit the number of SOQL queries to stay within governor limits
Interview Questions of Similar Designations
Calculate your in-hand salary
Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary
Reviews
Interviews
Salaries
Users/Month