So my question is, does the following have any differrences?
select count(students) as nos from tbl_student;
or
select count(students)nos from tbl_student
So my question is, does the following have any differrences?
select count(students) as nos from tbl_student;
or
select count(students)nos from tbl_student
There is no difference. 'AS' keyword is optional.
People find it more readable and clear while you use AS keyword. The reason for using it is that when reading a large query, it is easier to pick out the aliases by looking for the AS's.
Follow this SO QUESTION1... SO QUESTION2... SO QUESTION3