1.

Explain ALIAS in SQL?

Answer»

It is used to RENAME a table in a specific SQL statement. Renaming is a temporary CHANGE without change actual table NAME in the database. It can be applied to tables as well as fields.

The BASIC SYNTAX of a table alias
SELECT field1, field2 FROM TABLE_NAME AS TABLE WHERE "WRITE_YOUT_CONDITION";

The basic syntax of a column alias
SELECT field1 AS column1 FROM TABLE_NAME WHERE "WRITE_YOUT_CONDITION";



Discussion

No Comment Found