SQL Interview Questions (S2)

This is the 2nd in this series. Check the first one 👇

Disclaimer:

• The questions covered here are mostly conceptual
• I never claim during interviews, only these type of questions are/should be asked
• For interviews, you should have fundamentals strong. And you should be able to provide solutions to practical problems.
Series: 2️⃣
Level: Beginner
Topics:

1️⃣ Data Types
2️⃣ Operators
3️⃣ Functions
4️⃣ Views
5️⃣ Aggregation
1️⃣ Data Types

* Data Types vary across SQL Vendors like Oracle, MySQL etc. So questions are specific to particular vendors.

✪ When do you define data type of a column?
✪ Can a data type be changed later? What are the restrictions?
✪ What are different numeric data types?
✪ What data type is used to store a boolean?
✪ What data type is used to store bits?
✪ What data type is used for integers?
✪ What data type is used for floating point numbers?
✪ What are different String data types?
✪ What data type is used to store binary data?
✪ What is the difference between CHAR, VARCHAR and VARCHAR2 (Oracle)?
✪ What is a Large Object Data Type?
✪ What are different Large Object Data Types?
✪ What is the difference between BLOB and CLOB?
✪ When should you go for a large object data type instead of a String data type?
✪ What are different Date/Time Data Types?
2️⃣ Operators

✪ What operator to use to verify if all subqueries meet the condition?
✪ What operator to use to verify if any of the subqueries meet the condition?
✪ What operator to use to check if operand is within a range?
✪ What operator to use to check if operand should one of the given values.
✪ What operator to use to check if a subquery returns at least one record?
✪ What operator to use to check if operand matches a pattern?
✪ What is the difference between BETWEEN and IN operators?
✪ What is the difference between = and LIKE operator?
✪ How to check if a field is containing a NULL value?
✪ What are different comparison operators?
✪ What is the operator to check for not equality?
3️⃣ Functions

✪ What is a SQL function?
✪ What function to use to return current system date and time?
✪ What function to use to find length of a text field?
✪ What function to use to convert a text field to upper/lower case?
✪ How to get a substring?
✪ What are different format options to display a text field?
✪ How to round a numeric field to certain precision?
✪ Give examples of some Date/Time functions?
✪ How to get the year/month/date from a Date field?
✪ How to get last day of the month?
4️⃣ Views

✪ What is a View?
✪ How is a View different from a Table?
✪ What are various use cases of a View?
✪ Can a View be used to insert/delete records?
✪ How to create/update a View?
✪ What is "WITH CHECK OPTIONS"?
✪ What is a Materialised View? Difference with a View?
5️⃣ Aggregation

✪ What do you mean by aggregation?
✪ What is the difference between aggregation and projection?
✪ What does "GROUP BY" statement do?
✪ What is the difference between WHERE and HAVING?
✪ Is "ORDER BY" an aggregation statement?
✪ What function to use to find number of records?
✪ What function to use fetch the first/last value for a field?
✪ What function to use to fetch max/min/average value of a field?
✪ What function to use to find summation of all values for a field?
The next 🧵 of this series will provide questions from

1️⃣ More on DDL
2️⃣ More on DML
3️⃣ Index
4️⃣ Sequence
5️⃣ Trigger
Check 👇 for "Interview Questions" on few other subjects.

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Swapna Kumar Panda ✨

Swapna Kumar Panda ✨ Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @swapnakpanda

10 Nov
OOPs & Design Patterns Interview Questions

Disclaimer:

• The questions covered here are mostly conceptual
• I never claim only these type of questions are/should be asked during interviews
• For interviews, you should have fundamentals strong. And you should be able to provide solutions to practical problems.
Series: 1️⃣
Level: Beginner/Medium
Topic:

1️⃣ OOPs Basics
2️⃣ Class, Object, Interface
3️⃣ Encapsulation, Abstraction, Polymorphism, Inheritance
4️⃣ Constructor and Destructor
5️⃣ Design Patterns
Read 18 tweets
9 Nov
HTML (Interview) Questions

Disclaimer:

• The questions covered here are mostly conceptual
• I never claim during interviews, only these type of questions are/should be asked
• For interviews, you should have fundamentals strong. And you should be able to provide solutions to practical problems.
Series: 1️⃣
Level: Beginner
Topics:

1️⃣ Basics
2️⃣ Tags and Elements
3️⃣ HTML Structure
4️⃣ Headings, New Line, Blank Space
5️⃣ Tables
Read 14 tweets
7 Nov
💙 Data Structures in a Nutshell: Doubly Linked List

⇨ What? Why? How?
⇨ List of Operations
⇨ Pseudo Code
⇨ Time & Space Complexities

Before starting, if you want to learn more about a simple Linked List, check it 👇

We will cover,

0️⃣ Basics (What, Why, How)
1️⃣ Traversal
2️⃣ IsEmpty
3️⃣ Size
4️⃣ Fetch an Element
5️⃣ Insert an Element
6️⃣ Delete an Element
7️⃣ Time & Space Complexities
Read 34 tweets
6 Nov
JavaScript Interview Questions (S2)

Series: 2️⃣
Level: Beginner
Topics:

1️⃣ Variable Naming
2️⃣ Variable Declaration
3️⃣ Variable Scope
4️⃣ Assignment Operators
5️⃣ Bitwise Operators
1️⃣ Variable Naming

✪ What is a variable?
✪ How to name a variable/Choose a valid variable name?
✪ Is "$" allowed in variable names?
✪ Can variable names begin with a numeric digit? If no, why?
Read 14 tweets
5 Nov
Hey All 👋

I have been posting "Interview Questions" on 👇

✪ DSA
✪ JavaScript
✪ Python
✪ SQL
✪ React
✪ GIT
✪ NoSQL ⇨ Upcoming
✪ Java ⇨ Upcoming
✪ HTML/CSS ⇨ Upcoming
✪ Machine Learning (ML) ⇨ Upcoming
✪ Networking ⇨ Upcoming

For link to questions, check 👇
I have created a "Moment" in Twitter to better organise all Questions Threads so that you can find them easily at one place.

Check that 👇

twitter.com/i/events/14559…
✪ The questions been posted so far are text book types which is important as well

✪ Many are suggesting to share a little bit practical questions

✪ I have that in my plan as well. Once I finish all theoretical questions, I will start sharing practical/inquisitive questions
Read 6 tweets
5 Nov
Python Interview Questions

Level: Beginner
Series: 1️⃣
Topics:

1️⃣ Basics
2️⃣ Data Types
3️⃣ bool Type
4️⃣ Numeric Types
5️⃣ Variables
1️⃣ Basics

✪ What is Python?
✪ What are the advantages of using Python?
✪ What are limitations of Python?
✪ Which type of applications Python is widely used?
✪ What are some popular Python based packages/libraries?
✪ What is PEP?
✪ What is PEP 8?
Read 15 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!

:(