Open singhc00 opened 2 years ago
I vote for descriptive names. Some (many) ABAP tables have really cryptic names. For reading data, ideally there's a virtual data model with CDS interface views sitting on top of the cryptic table names that you can then use from the code.
Within the views I'd still use descriptive aliases.
Interesting, I find myself doing the opposite thing and shortening the table names via aliases even more:
SELECT
l~qmnum AS notification_number,
e~fenum AS item_number,
h~equnr AS equiment_number
FROM qmel AS l
INNER JOIN qmih AS h
ON h~qmnum = l~qmnum
INNER JOIN qmfe AS e
ON e~qmnum = l~qmnum
Not really sure why, I like the option of using aliases to make the technical names descriptive presented here.
imho the single-letter-aliases are irritating especially in longer joins.
I prefer descriptive names. codes is read way more often than it's written/changed.
What are your views on having descriptive table aliases? For example, would you prefer below:
Or do you prefer to have the database table names as they are short and easy to write in long select statement?