Trainee Scientist
Trainee Scientist Interview Questions and Answers

Asked in Mu Sigma

Q. Write an SQL query using GROUP BY, HAVING, and ORDER BY clauses.
Understanding SQL's GROUP BY, HAVING, and ORDER BY clauses for data aggregation and sorting.
GROUP BY is used to aggregate data based on one or more columns.
HAVING filters the results of a GROUP BY based on a condition.
ORDER BY sorts the final result set based on specified columns.
Example: SELECT department, COUNT(*) FROM employees GROUP BY department HAVING COUNT(*) > 10 ORDER BY COUNT(*) DESC;

Asked in Mu Sigma

Q. Joins in SQL, order of execution
Joins in SQL are used to combine rows from two or more tables based on a related column between them.
Joins are executed after the FROM clause and before the WHERE clause in SQL queries.
Common types of joins include INNER JOIN, LEFT JOIN, RIGHT JOIN, and FULL JOIN.
Example: SELECT * FROM table1 INNER JOIN table2 ON table1.column = table2.column;
Trainee Scientist Interview Questions and Answers for Freshers

Asked in Mu Sigma

Q. Sql order of execution
SQL order of execution determines the sequence in which different clauses are processed in a query.
SQL order of execution: FROM -> WHERE -> GROUP BY -> HAVING -> SELECT -> ORDER BY.
Joins are processed before WHERE clause.
Aggregate functions are processed after WHERE clause but before SELECT clause.
Subqueries are processed from innermost to outermost.

Asked in Mu Sigma

Q. Write Python code to manipulate data frames.
Python code for data frames in pandas library
Import pandas library
Create a data frame using pd.DataFrame()
Access and manipulate data using various methods like loc, iloc, and groupby
Trainee Scientist Jobs


Interview Experiences of Popular Companies








Reviews
Interviews
Salaries
Users

