> I always prefix the column name with a prefix that identifies the
table where it resides. <<
No. You name a data element for WHAT it is, not for WHERE it is. Do
you change your name when you move from room to room? Start with any
good book on data modeling and the ISO-11179 Standards.
You make a name as precise as possible -- not vague like "name", "id",
"date" etc. The ISO format is "<attribute>_<property>" --
"customer_name", "product_id", "birth_date", etc.
Get a copy of SQL PROGRAMMING STYLE and use it for your company's
guidebook. I based it on the ISO-11179 data element naming rules and
the research I did for a few years at AIRMICS (Army Institute for
Research in Management Information & Computer Sciences).
If you use my book:
1) I can make my house payment
2) You can save yourself a lot of work
3) If anyone does not like it, you can blame me! Everybody wins!