Introduction
  • Why should you learn SQL Tricky Questions?
  • Disclaimer
SQL Tricky Interview Questions - Part 1
  • Write SQL query to get the second highest salary among all Employees?
  • How can we retrieve alternate records from a table in Oracle?
  • Write a SQL Query to find Max salary and Department name from each department?
  • Query to find records in Table A not in Table B without using NOT IN.
  • What is the result of following query?
  • SQL Questions Refresher - 1
SQL Tricky Interview Questions - Part 2
  • Write SQL Query to find employees that have same name and email.
  • Write a SQL Query to find Max salary from each department.
  • Write SQL query to get the nth highest salary among all Employees.
  • How can you find 10 employees with Odd number as Employee ID?
  • SQL Query to get names of employees with date of birth between two dates.
  • SQL Questions Refresher - 2
SQL Tricky Interview Questions - Part 3
  • Write a SQL Query to get the Quarter from date.
  • Write Query to find employees with duplicate email.
  • Query to find all Employee whose name contains the word "Rich" ignore case.
  • Is it safe to use ROWID to locate a record in Oracle SQL queries?
  • What are the reasons for de-normalizing the data?
  • SQL Questions Refresher - 3
SQL Tricky Interview Questions - Part 4
  • What is the difference between DELETE and TRUNCATE in SQL?
  • What is the difference between DDL and DML commands in SQL?
  • Why do we use Escape characters in SQL queries?
  • What is the difference between Primary key and Unique key in SQL?
  • What is the difference between INNER join and OUTER join in SQL?
  • SQL Questions Refresher - 4
SQL Tricky Interview Questions - Part 5
  • What is the difference between Left OUTER Join and Right OUTER Join?
  • What is the datatype of ROWID?
  • What is the difference between where clause and having clause?
  • What is cardinality in SQL?
  • What is Merge statement in SQL?
  • SQL Questions Refresher - 5
SQL Tricky Interview Questions - Part 6
  • What is the difference between UNION and UNION ALL?
  • What will be the result of following query?
  • What is wrong with this SQL query?
  • What is wrong with this query to get the list of employees not in Dept 1?
  • What is the use of Execution plan in SQL?
  • SQL Questions Refresher - 6
SQL Tricky Interview Questions - Part 7
  • How many records are returned by following query?
  • Write a query for this problem?
  • Query to get Employee Name, Manager ID & number of employees in the department.
  • Write SQL Query to find duplicate rows in a database?
  • Write SQL query to delete duplicate rows in a table?
  • SQL Questions Refresher - 7
SQL Tricky Interview Questions - Part 8
  • What is the difference between NVL and NVL2 functions in SQL?
  • What are ACID properties in a SQL transaction?
  • What is the main difference between RANK and DENSE_RANK functions in Oracle?
  • What is the use of WITH clause in SQL?
  • Which SQL feature can be used to view data in a table sequentially?
  • SQL Questions Refresher - 8
SQL Tricky Interview Questions - Part 9
  • Write SQL Query to get Student Name and number of Students in same grade.
  • SQL Query to get the list of grades with total score more than average score.
  • What are the differences between CASE and DECODE in SQL?
  • Write a Query to get Unique names of products without using DISTINCT keyword.
  • SQL query to maximum Zipcode from a table without using MAX or MIN functions.
  • SQL Questions Refresher - 9
SQL Tricky Interview Questions - Part 10
  • Write a query to print a comma separated list of student names in a grade.
  • What is the difference between Correlated and Un-correlated Sub query?
  • Print First name, Manager ID and Level of employees in Organization Structure?
  • Write a query to create an empty table from an existing table?
  • SQL Questions Refresher - 10
Bonus Offers!
  • Bonus Lecture: What next?
  • Test Your SQL Knowledge!
  • SQL Bonus Questions