473,396 Members | 2,011 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Table and Column naming conventions

Hi all,
Just trying to get a feel here. THe shop I work at insists on
prefixing all column names with the table name, so it is order_id in
the ORDER table and Customer_id in the CUSTOMER table.

I find this irksome and much prefer that a coding standard be imposed
whereby any column name has to be qualified by the table name. So it
would be
SELECT ORDER01.ID
FROM ORDER ORDER01 etc

Of course in the case of foreign keys you would have to judiciously
apply the table name, so if you had a SALES_ITEM table that resolves
the m-n between SALE and ITEM then the 2 foreign keys would be
FK_ITEM_ID and FK_SALE_ID.

What is the general feeling about this?

PS Before someone hollers I did post this on mvshelp.com as well ;-)
Nov 12 '05 #1
2 3585
"charles leviton" <ch***********@yahoo.com> wrote in message
Hi all,
Just trying to get a feel here. THe shop I work at insists on
prefixing all column names with the table name, so it is order_id in
the ORDER table and Customer_id in the CUSTOMER table.

I find this irksome and much prefer that a coding standard be imposed
whereby any column name has to be qualified by the table name. So it
would be
SELECT ORDER01.ID
FROM ORDER ORDER01 etc

Of course in the case of foreign keys you would have to judiciously
apply the table name, so if you had a SALES_ITEM table that resolves
the m-n between SALE and ITEM then the 2 foreign keys would be
FK_ITEM_ID and FK_SALE_ID.

What is the general feeling about this?

PS Before someone hollers I did post this on mvshelp.com as well ;-)


You are correct and they are wrong. But they probably do that so they don't
have to modify the declgen COBOL working storage layouts that need unique
names.
Nov 12 '05 #2
"Mark A" <ma@switchboard.net> wrote in message news:<l6*****************@news.uswest.net>...
You are correct and they are wrong. But they probably do that so they don't
have to modify the declgen COBOL working storage layouts that need unique
names.

Hey,
Thanks man! Of course seeing as it is the DBAs involved, it is a
losing battle but gratifying to know that someone agrees with me;-)
Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Cristof Falk | last post by:
I wanted to get a feel. The documentation gives naming conventions for public/protected members. Is this truly widely adopted? And what about using the same conventions for private members and...
7
by: cmiddlebrook | last post by:
Hi there, I keep finding myself getting inconsistent with naming conventions for things like member variables, class names etc and I just want to find something that suits me and stick to it. I...
1
by: clintonG | last post by:
Does the use of DTD, XML Schema and similar constructs adopt the use of C# naming conventions? If so how do I make the distinction of how to apply C# conventions with XML elements, attributes and...
4
by: Mark Broadbent | last post by:
stupid question time again to most of you experts but this is something that continually bothers me. I am trying to get into the habit of naming variables and controls in an assembly as per...
3
by: clintonG | last post by:
Does the use of DTD, XML Schema and similar constructs adopt the use of C# naming conventions? If so how do I make the distinction of how to apply C# conventions with XML elements, attributes and...
5
by: rastaman | last post by:
Hi all, I know of the existence of Object Naming Conventions for Visual Basic 6. Now I'm reading some books about VB .NET, but the names used for the objects are button1, picturebox1, etc. I...
4
by: Patrick | last post by:
what are the general naming conventions for vb.net controls. esp txtUserName, lblPassword, btnSubmit What are the prefixes for the controls???? I've tried to search hi and low on the net, but...
9
by: kevininstructor | last post by:
Greetings, I am in the process of creating naming conventions for VB.NET controls i.e. CheckBox -> chkShowThisOnStartup ListBoxt -> lstSomeList What I am looking for other developers...
35
by: Smithers | last post by:
Is it common practise to begin the name of form classes with "frm" (e.g., frmOneForm, frmAnotherForm). Or is that generally considered an outdated convention? If not "frm" what is a common or...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.