Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

51.

Can you sort a column using a column alias?

Answer»

Yes. A column alias could be used in the ORDER BY clause.

52.

What are various DCL commands in SQL? Give brief description of their purposes.

Answer»

Following are various DCL or Data Control Language commands in SQL −

  • GRANT − it gives a privilege to user.

  • REVOKE − it takes back privileges granted from user.

53.

What are various DML commands in SQL? Give brief description of their purposes.

Answer»

Following are various DML or Data Manipulation Language commands in SQL −

  • SELECT − it retrieves certain records from one or more tables.

  • INSERT − it creates a record.

  • UPDATE − it modifies records.

  • DELETE − it deletes records.

54.

What are various DDL commands in SQL? Give brief description of their purposes.

Answer»

Following are various DDL or Data Definition Language commands in SQL −

  • CREATE − it creates a new table, a view of a table, or other object in database.

  • ALTER − it modifies an existing database object, such as a table.

  • DROP − it deletes an entire table, a view of a table or other object in the database.

55.

What is the difference between SQL and PL/SQL?

Answer»

PL/SQL is a dialect of SQL that adds procedural features of programming languages in SQL. It was developed by Oracle Corporation in the early 90's to enhance the capabilities of SQL.

56.

What is the difference between SQL and MySQL or SQL Server?

Answer»

SQL or Structured Query Language is a language; language that communicates with a relational database thus providing ways of manipulating and creating databases. MySQL and Microsoft’s SQL Server both are relational database management systems that use SQL as their standard relational database language.