03-05-2007 12:47 PM
03-05-2007 12:51 PM
Hi Laxman,
augbl umskz in the above query are the alias names for gjahr belnr respectively
In the syntax as
SELECT <s1> AS <a1> ....
we use the AS addition to specify the alias name <a1> for column <s1>.
The alias column name is used instead of the real name.
Generally they are used when we use inner joins,order by,group by clauses etc.
They are helpful when we use the INTO CORRESPONDING FIELDS addition in the select query so as we have the same names as that in the internal table.
Hope it helps you.
Regards,
Saumya
03-05-2007 12:52 PM
Hi,
When you want to give alias names to the fileds in your selection then you use AS then you have to use the alias names in the WHERE CLAUSE if you have one.
Regards,
Sesh
03-05-2007 12:57 PM
hi,
the names <b>augbl umskz</b> are the alias names for <b>gjahr belnr</b> ,
this is used if in case of inner joins if you want to select the fields with same names from different tables , you can select them with alias names, but this is valid only in the SELECT statement