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

15+ SQL optimisation interview questions & answers with scenarios

1) Select fields instead of using SELECT *. The “*” is used as a short hand to query all available data from a table. If a table has many fields and rows, this takes database resources by querying a lot of unnecessary 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


16: 50+ SQL scenarios based interview Q&As on joins to reconcile source & target tables

In SQL often we need to merge records from a source table to a target table. The source table could be a staging table where the source system sent new & updated records to be reconciled with the a target table. Let’s look at an example as to how to...

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


17 XML basics interview Q&As

Q1. What is an XML? A1. XML stands for eXtensible Markup Language. XML is a grammatical system for constructing custom markup languages for describing business data, mathematical data, chemical data etc. XML loosely couples disparate applications or systems utilizing JMS, … 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


17: 50+ SQL scenarios based interview Q&As on teams & matches played

Let’s look at a standard teams interview question to understand your SQL knowledge in using a non-equi join. Problem Statement 1 Given the below 5 teams

1) Write a query so that each team plays with each other only once. 2) Write a query so that each team plays...

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


18 Amazon S3 interview Q&As

Q01. What is Amazon S3 storage? A01. S3 stands for Simple Storage Service, which provides storage through web service interfaces. Unlike the other storage systems like Unix file system, HDFS (i.e. Hadoop Distributed File System), etc which are based on having folders and files, the S3 is based on a...

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


18: 50+ SQL scenarios based interview Q&As on account balance

Here is another SQL scenario based interview question to determine a candidate’s ability to translate a business requirement into an SQL query. Problem Statement Given the below data of running account balance, find the start_date and end_date where the balance changes.

Expected output:

Create sample data

Solution...

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


19: 50+ SQL scenarios based interview Q&As on effective_date

Here is another SQL scenario based interview question to determine a candidate’s ability to translate a business requirement into an SQL query. These are scenarios where you want to find a value at a certain point in time. Lean more about SCD Type 2 at 13 Data Warehouse interview Q&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


20 Groovy closure interview Q&As with examples

Method Vs. Closure Q1. What are the differences between a method and a closure? A1. Both methods and closures add behavior, and they basically have a block of code containing expressions and statements within two curly brackets i.e. {…} . … 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


20: 50+ SQL scenarios based interview Q&As on first visit vs repeated visits

Let’s look at a very common problem statement of finding out the repeat customers, repeat visits, etc. The key to this problem is first determining the first visit or first purchase and then comparing it with the remaining records. Problem Statement 1 Given the below table, how will you determine...

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


20+ FIX basics interview questions and answers

This extends Finding your way around FIX specification Q&A. Q1. What product classes does FIX protocol support? A1. Equities, Equity Derivatives (e.g. Options, Warrants, Futures, ETFs, Swaps, etc), Fixed Income, FX (aka Forex), FX derivatives, etc. Q2. What are the key message categories? … 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


21: 50+ SQL scenarios based interview Q&As on distinct count of all columns

We all know how to get a distinct count of a column. It can be done with COUNT(DISTINCT column_name). For example:

Outputs:

In this post let’s look at various approaches to count unique values. Using DISTINCT, … 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


22: 50+ SQL scenarios based interview Q&As on recursion

This extends Common Table Expressions (i.e. CTE) in SQL using the “WITH” clause. You can try the example on DB Fiddle. Use MySQL v8.0 or later. Scenario: 1 Given a table like this with each entry with two dates (i.e. from_date & … 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


23: 50+ SQL scenarios based interview Q&As – Join counts

One of the common SQL interview questions is to quiz your understanding of SQL joins. In this let’s look at joins example with two scenarios.

Venn Diagram

Joins can be specified as a venn diagram shown below:

But, it gets a bit more tricky when you consider the below scenarios:

Scenario 1: When both input tables don’t have duplicate values.

…

Read more ›



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

300+ Java Interview Questions - FAQs

Tutorials on Java & Big Data