Basic SQL Interview Questions and Answers (For Freshers)
What is SQL?
SQL is a Structured Query Language used in the computing world to access, manage, and manipulate data in relational databases like MySQL, PostgreSQL, and Oracle.
What are the types of commands available in SQL?
SQL has five command types; Data Definition (DDL), Data Manipulation (DML), Data Control (DCL), Transaction Control (TCL), and Data Query Language (DQL).
Difference between WHERE and HAVING?
The difference between WHERE and HAVING is that WHERE filters rows before grouping, while HAVING filters rows after you group, which is done through a GROUP BY statement in an SQL query.
What is a primary key?
A primary key is a unique column that identifies every record in a table, it disallows NULLs and duplicate values.
What is a foreign key?
A foreign key is a column that establishes a relationship between the two tables by allowing the value of a primary key in another table, aiding relational integrity.
Get started today with expert-instructor-led training, realistic practice, and personalized career support. You could be joining the hundreds of other successful students who have made their mark in the tech world.
Enrol now and start turning your SQL skills into a job-winning opportunity. 📞 Call 9890647273 or 7498992609