Hero Motocorp SQL Interview Questions using REPLICATE(), RIGHT() and CONCAT() Functions

SQL questions recently asked in Motocorp interview. 1. We need to mask first 12 digits of card number. 2. Need to select employee names with same salary. Create table syntax CREATE TABLE cards (card_number BIGINT) INSERT INTO cards VALUES (1234567812345678),(2345678923456789),(3456789034567890) CREATE TABLE Employee (employee_id INT,ename VARCHAR(50),salary INT) INSERT INTO Employee VALUES (3, 'Bob', 60000),(4, 'Diana', 70000),(5, 'Eve', 60000),(6, 'Frank', 80000),(7, 'Grace', 70000),(8, 'Henry', 90000) For more SQL interview questions. Check out our playlist.    • SQL Interview Questions   Contact us: [email protected] Follow us on Instagram : instagram.com/cloudchallengers Facebook : facebook.com/cloudchallengers LinkedIn : linkedin.com/company/cloudchallengers

KPMG SQL Interview Question - Using ROW_NUMMBER( ) & CASE Statement
▶︎

KPMG SQL Interview Question - Using ROW_NUMMBER( ) & CASE Statement

Top 45 SQL Interview Questions And Answers In 2026 | SQL Interview Questions 2026 | Simplilearn
▶︎

Top 45 SQL Interview Questions And Answers In 2026 | SQL Interview Questions 2026 | Simplilearn

SQL Window Function | How to write SQL Query using RANK, DENSE RANK, LEAD/LAG | SQL Queries Tutorial
▶︎

SQL Window Function | How to write SQL Query using RANK, DENSE RANK, LEAD/LAG | SQL Queries Tutorial

Top 5 Advanced SQL Interview Questions and Answers | Frequently Asked SQL interview questions
▶︎

Top 5 Advanced SQL Interview Questions and Answers | Frequently Asked SQL interview questions

Dynamic Pivot in SQL Server: Step-by-Step Guide with Examples l Great for SQL Interview Prep #sql
▶︎

Dynamic Pivot in SQL Server: Step-by-Step Guide with Examples l Great for SQL Interview Prep #sql

Top - 75+ Tricky Java Interview Questions You Must Know to Crack Your Next Interview!
▶︎

Top - 75+ Tricky Java Interview Questions You Must Know to Crack Your Next Interview!

3 Hours Navajo White Screen 4K | Background | Backdrop | Screensaver | Full HD | Phone, Monitor, TV
▶︎

3 Hours Navajo White Screen 4K | Background | Backdrop | Screensaver | Full HD | Phone, Monitor, TV

Top 10 SQL interview Questions and Answers | Frequently asked SQL interview questions.
▶︎

Top 10 SQL interview Questions and Answers | Frequently asked SQL interview questions.

SQL Indexes (Visually Explained) | Clustered vs Nonclustered | #SQL Course 35
▶︎

SQL Indexes (Visually Explained) | Clustered vs Nonclustered | #SQL Course 35

DBS Bank SQL Interview Question - Find the missing weeks in a table
▶︎

DBS Bank SQL Interview Question - Find the missing weeks in a table

Turing Award Winner: Disagreeing with Google, Postgres, Future Problems | Mike Stonebraker
▶︎

Turing Award Winner: Disagreeing with Google, Postgres, Future Problems | Mike Stonebraker

SQL JOINS Interview Question | What does different SQL Joins return?
▶︎

SQL JOINS Interview Question | What does different SQL Joins return?

Ex-Google Recruiter Explains: The Interview Secret to Getting Hired
▶︎

Ex-Google Recruiter Explains: The Interview Secret to Getting Hired

Test Your SQL Skills With These Real Interview Questions!
▶︎

Test Your SQL Skills With These Real Interview Questions!

SQL CTE (Common Table Expression) Visually Explained | Full Guide WITH Clause | #SQL Course 28
▶︎

SQL CTE (Common Table Expression) Visually Explained | Full Guide WITH Clause | #SQL Course 28

Infosys SQL Interview Question
▶︎

Infosys SQL Interview Question

BOSCH SQL Interview Question - FIRST_VALUE() WINDOWS Function
▶︎

BOSCH SQL Interview Question - FIRST_VALUE() WINDOWS Function

The 25 SQL Questions You MUST Know for Data Analyst Interviews
▶︎

The 25 SQL Questions You MUST Know for Data Analyst Interviews