Blog Archives
1 … 4 5 6 7 8 9 10 11 12 … 14

24: 50+ SQL scenarios based interview Q&As – Window Query

If you want to learn the basics of SQL analytics function, first read SQL analytic functions interview questions – Part 1 | SQL analytic functions interview questions – Part 2 | SQL analytic functions interview questions – Part 3

Given the below data:

Q1.

…

Read more ›



25: 50+ SQL scenarios based interview Q&As – get the last non null value

The below SQL problem can be practiced on MySQL database at db-fiddle or database of your choice. Q1. Given the below data, how will you find the last non null values for each event_id?

Create table & insert data

Solution In order to ignore null values “CASE WHEN...

This content is for 30-Day-Full-Access, 100-Day-Full-Access, 200-Day-Full-Access, and 365-Day-Full-Access members only. Register 80+ Free Java FAQs 80+ Free Big Data FAQs
Already a member? Log in here


25+ SQL interview questions & answers – beginner

SQL interview Questions & Answers is a must for any developer as all non-trivial applications need to talk to a database with CRUD operations. Q3 – Q15 are very popular with the interviewers. If you want to quickly practice your SQL skills try DB Fiddle or install MySQL locally as...

This content is for 30-Day-Full-Access, 100-Day-Full-Access, 200-Day-Full-Access, and 365-Day-Full-Access members only. Register 80+ Free Java FAQs 80+ Free Big Data FAQs
Already a member? Log in here


25+ SQL interview questions & answers – intermediate to experienced

This continues 25+ SQL interview questions & answers – beginner

Q16. Why do you have CASE statements in SQL?
A16. CASE statements in SQL are similar to IF and ELSE conditions in programming languages. CASE statements are used to fetch particular values based on certain conditions.

…

Read more ›



26: 50+ SQL scenarios based interview Q&As – number of logins by transaction count

Setup the data on db-fiddle MySQL V8.0 to practice. This question is based on the LeetCode SQL problem Q. Given the below input: login table

txn table

how will you write SQL query to output: 1) How many users who logged in did not do any transactions? …...

This content is for 30-Day-Full-Access, 100-Day-Full-Access, 200-Day-Full-Access, and 365-Day-Full-Access members only. Register 80+ Free Java FAQs 80+ Free Big Data FAQs
Already a member? Log in here


26: 50+ SQL scenarios based interview Q&As – Window function (i.e. OVER(…)) with GROUP BY

The below SQL problem can be practiced on MySQL database at db-fiddle or database of your choice. Use latest version from the drop down.

Q1. Given the below data, how will you get the individual sum of the count by score and cumulative sum over the whole data?

…

Read more ›



27: 50+ SQL scenarios based interview Q&As – identifying consecutive records – job status repetition

The data analysts & engineers will often be faced with the below SQL scenario at work. It is also often asked in job interviews. This solution uses SQL analytical functions & you can learn more about them at SQL analytic functions interview questions – Part 1

Setup the data on db-fiddle MySQL V8.0 to practice.

…

Read more ›



28: 50+ SQL scenarios based interview Q&As – identifying consecutive logins

This extends 50+ SQL scenarios based interview Q&As – identifying consecutive records – job status repetition. A popular SQL coding interview question. Setup the data on db-fiddle MySQL V8.0 to practice. Q. Given the below input, how will you list user_id & … Read more ›...

This content is for 30-Day-Full-Access, 100-Day-Full-Access, 200-Day-Full-Access, and 365-Day-Full-Access members only. Register 80+ Free Java FAQs 80+ Free Big Data FAQs
Already a member? Log in here


29: 50+ SQL scenarios based interview Q&As – Non-Equi Join problem

Q01. What is a Non-Equi Join? A01. A Non-Equi Join in SQL that uses operators other than equality operator (i.e. ‘=’), like , = to join two tables. Q02. When to use a Non-Equi Join? … Read more ›...

This content is for 30-Day-Full-Access, 100-Day-Full-Access, 200-Day-Full-Access, and 365-Day-Full-Access members only. Register 80+ Free Java FAQs 80+ Free Big Data FAQs
Already a member? Log in here


3. Understanding HBase (NoSQL) database basics in 7 steps

Extends Getting started with HBase. HBase is a NoSQL database. HBase is a columnar database. #1. In HBase, you create the Table & column-families “create” command to create a table with column families. You can later on use “ … Read more ›...

This content is for 30-Day-Full-Access, 100-Day-Full-Access, 200-Day-Full-Access, and 365-Day-Full-Access members only. Register 80+ Free Java FAQs 80+ Free Big Data FAQs
Already a member? Log in here


30: 50+ SQL scenarios based interview Q&As – Data cleaning, quality checks & profiling

This post covers SQL examples to perform quality checks, clean data and profile data. Q01. What is Data Cleaning? Can SQL do data cleaning? A01. Data cleaning is the process of fixing bad data. … Read more ›...

This content is for 30-Day-Full-Access, 100-Day-Full-Access, 200-Day-Full-Access, and 365-Day-Full-Access members only. Register 80+ Free Java FAQs 80+ Free Big Data FAQs
Already a member? Log in here


31: 50+ SQL scenarios based interview Q&As – Finding records from first table where no match found in second table

Setup the data on db-fiddle MySQL V9.0 to practice. There are business scenarios for:

1) Finding records in the first table where matching records are found in the second table are shown in the output. This can be done with a semi-join.

…

Read more ›



32: 50+ SQL scenarios based interview Q&As – use of unpivot, lag(..), row_num(..), cumulative sum() and CTE

Setup the data on db-fiddle MySQL V9.0 to practice. Make sure to select latest MySQL version to ensure Common Table Expressions (i.e CTE) is supported. This is not a real life scenario problem, but a simple example that uses many of the SQL syntaxes & techniques. … Read more ›...

This content is for 30-Day-Full-Access, 100-Day-Full-Access, 200-Day-Full-Access, and 365-Day-Full-Access members only. Register 80+ Free Java FAQs 80+ Free Big Data FAQs
Already a member? Log in here


1 … 4 5 6 7 8 9 10 11 12 … 14

300+ Java Interview Questions - FAQs

Tutorials on Java & Big Data