Varchar
Varchar
Varchar may hold character data Varchar2 can store character data
in increments of 1 to 2000 bytes. in increments of 1 to 4000 bytes.
WHERE clause: In SQL, the WHERE clause is used to filter records that
are required depending on certain criteria.
ORDER BY clause: The ORDER BY clause in SQL is used to sort data
in ascending (ASC) or descending (DESC) order depending on specified
field(s) (DESC).
GROUP BY clause: GROUP BY clause in SQL is used to group entries
with identical data and may be used with aggregation methods to obtain
summarised database results.
HAVING clause in SQL is used to filter records in combination with the
GROUP BY clause. It is different from WHERE, since the WHERE
clause cannot filter aggregated records.
There are different types of relations in the database:
ID Name Age
1 A 21
2 B 23
2 B 23
4 D 22
5 E 25
6 G 26
5 E 25
The following SQL query removes the duplicate ids from the table: