Saras Analytics
Al Thabath Holding Interview Questions and Answers
Q1. Difference between Having and where clause?
HAVING clause is used with GROUP BY to filter the results based on aggregate functions, while WHERE clause is used to filter individual rows.
HAVING clause is used after GROUP BY clause.
HAVING clause is used to filter the results based on aggregate functions like SUM, COUNT, AVG, etc.
WHERE clause is used before GROUP BY clause.
WHERE clause is used to filter individual rows based on conditions.
HAVING clause cannot be used without GROUP BY clause.
WHERE clause can be used without...read more
Q2. Difference between Rank and Dense rank function?
Rank function assigns unique rank to each distinct row, while Dense rank function assigns same rank to rows with same values.
Rank function is used to assign a unique rank to each distinct row based on the order specified in the ORDER BY clause.
Dense rank function is used to assign the same rank to rows with the same values, skipping the next rank if there are ties.
Rank function returns consecutive ranks, while dense rank function returns consecutive ranks with no gaps.
Rank fu...read more
Q3. What is LOD in Tableau?
LOD stands for Level of Detail. It is a technique used in Tableau to perform complex calculations on aggregated data.
LOD expressions allow users to compute values at different levels of detail in a visualization
They can be used to create custom aggregations, filters, and calculations
There are three types of LOD expressions: FIXED, INCLUDE, and EXCLUDE
FIXED LOD expressions define a level of detail that is independent of the visualization
INCLUDE LOD expressions add a specified ...read more
Q4. where and having clause difference
The difference between WHERE and HAVING clauses in SQL.
WHERE clause is used to filter rows based on a condition before the data is grouped or aggregated.
HAVING clause is used to filter groups based on a condition after the data is grouped or aggregated.
WHERE clause is used with SELECT, UPDATE, DELETE statements, while HAVING clause is used with SELECT statements that include GROUP BY clause.
WHERE clause filters individual rows, while HAVING clause filters groups of rows.
WHERE...read more
Q5. SQL: What is the difference between HAVING and WHERE? Can WHERE be replaced with HAVING?
HAVING is used with GROUP BY to filter grouped rows, WHERE is used to filter individual rows. WHERE cannot be replaced with HAVING.
WHERE is used to filter individual rows before grouping, HAVING is used to filter grouped rows after grouping
HAVING is used in conjunction with GROUP BY clause, WHERE is used independently
WHERE filters rows based on conditions, HAVING filters groups based on conditions
Example: SELECT department, AVG(salary) FROM employees GROUP BY department HAVIN...read more
Q6. Aptitude: There are 2 jugs: one measures 7L and another measures 11L. How do you measure 15L?
Fill the 7L jug and pour it into the 11L jug. Fill the 7L jug again and pour it into the 11L jug until it is full. This will leave 1L in the 7L jug. Empty the 11L jug and pour the 1L from the 7L jug into it. Fill the 7L jug again and pour it into the 11L jug. This will give you 15L in the 11L jug.
Fill the 7L jug and pour it into the 11L jug.
Fill the 7L jug again and pour it into the 11L jug until it is full.
This will leave 1L in the 7L jug. Empty the 11L jug and pour the 1L f...read more
Q7. SQL: What is the difference between UNION and UNION ALL?
UNION combines and removes duplicates, UNION ALL combines without removing duplicates
UNION merges the result sets of two or more SELECT statements and removes duplicates
UNION ALL merges the result sets of two or more SELECT statements without removing duplicates
UNION is slower than UNION ALL as it involves removing duplicates
Example: SELECT column1 FROM table1 UNION SELECT column1 FROM table2;
Example: SELECT column1 FROM table1 UNION ALL SELECT column1 FROM table2;
Q8. Guesstimate: How many ballons can fill in an aeroplane?
The number of balloons that can fill an airplane depends on the size of the airplane and the size of the balloons.
The size of the airplane (e.g. small private plane vs. commercial airliner) will greatly impact the number of balloons that can fit.
The size of the balloons (e.g. standard party balloons vs. large weather balloons) will also affect the total number that can be accommodated.
Consider the available space inside the airplane and how tightly the balloons can be packed ...read more
Q9. Assumptions of linear regression
Assumptions of linear regression include linearity, independence, homoscedasticity, and normality.
Linearity: The relationship between the independent and dependent variables is linear.
Independence: The residuals are independent of each other.
Homoscedasticity: The variance of the residuals is constant across all levels of the independent variables.
Normality: The residuals are normally distributed.
Interview Process at Al Thabath Holding
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month