SQL, Python, Azure Interview Questions
SQL, Python, Azure Interview Questions
3. What is Normalization?
Answer: Process to minimize redundancy (1NF to 5NF).
# PySpark
df.orderBy("Salary", ascending=False).show()
Python
# While loop
while x < 5: x += 1
Speed Faster (no logging of individual rows) Slower (logs each row deletion)
Identity
Resets counter (e.g., IDENTITY(1,1)) Does not reset counter
Columns
Example:
-- TRUNCATE (remove all data)
TRUNCATE TABLE Employees;
Analogy:
• IaaS: Renting a plot of land (build anything, but maintain it).
• PaaS: Renting a furnished apartment (just move in your stuff).
• SaaS: Staying in a hotel (everything is managed for you).
Project Explanation