Project Assignee
Project Assignee Interview Questions and Answers
Q1. Difference between drop and truncate in sql
Drop deletes the table and its data while truncate deletes only the data.
Drop is a DDL command while truncate is a DML command.
Drop cannot be rolled back while truncate can be rolled back.
Drop is slower than truncate as it deletes the table structure as well.
Drop requires more permissions than truncate.
Example: DROP TABLE table_name; TRUNCATE TABLE table_name;
Q2. What is meant by abstraction
Abstraction is the process of simplifying complex systems by focusing on essential features.
Abstraction involves hiding unnecessary details and emphasizing important ones.
It helps in managing complexity and improving efficiency.
Examples include abstract classes and interfaces in object-oriented programming.
Abstraction is also used in art, where artists simplify complex subjects to create a more impactful image.
In mathematics, abstraction involves generalizing concepts to make...read more
Interview Questions of Similar Designations
Calculate your in-hand salary
Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary
Reviews
Interviews
Salaries
Users/Month