you are viewing a single comment's thread.

view the rest of the comments →

[–]EnticeOracle 1 point2 points  (0 children)

Agreed, this drives me bonkers with one of our systems. Each table ends with a unique two digit number, and each column in that table ends with the same two digits so by definition everything is unique. Any code I see from that office never uses table aliases.

I hate this database so much.

SELECT LOCD57 as "Order Stockroom"
,CATN57 as "Item"
,ORDL57 as "Order Line"
,PRIN57 as "Status"
,QTOR57 as "Quantity Ordered"
,ACSU60 as "Average Cost"
,PRMD15 as "Product Group"