Write query for the following: (1) To create a table from a table. (2) To eliminate duplicate rows. (3) To add a new column in the table (4) To sort data in a table code example
Example: how to remove duplicate in sql
Distinct: helps to remove all the duplicate
records when retrieving the records from a table.
SELECT DISTINCT FIRST_NAME FROM VISITORS;