Differences between SQL and HQL:
SQL is based on a relational database model whereas HQL is a combination of object-oriented programming with relational database concepts.
SQL manipulates data stored in tables and modifies its rows and columns. HQL is concerned about objects and its properties.
SQL is concerned about the relationship that exists between two tables while HQL considers the relation between two objects.