473,398 Members | 2,404 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,398 software developers and data experts.

naming column names

Hi,

I am learning Ms Sql and I found that a lot of the tables I am finding
( in different tutorials ) are using special names for their column
names such like au_username, au_salery ...
Is the any naming convention for column names, or just at all is there
any reason for naming the table columns in specific way.

Thanks in advance.

Jul 23 '05 #1
4 1953
Hi

You can use
http://vyaskn.tripod.com/object_naming.htm

Although I am not a fan of extending column names to include (part of a)
table name as it should be redundant if the tables are always referenced
with the tables alias in the code. It is important to be able to easily
differentiate tables/views/functions as well as a naming consistentency and
clear code formatting.

John

<Jo*********@gmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Hi,

I am learning Ms Sql and I found that a lot of the tables I am finding
( in different tutorials ) are using special names for their column
names such like au_username, au_salery ...
Is the any naming convention for column names, or just at all is there
any reason for naming the table columns in specific way.

Thanks in advance.

Jul 23 '05 #2
Its often personal. My preference (over 10 years of db design, and DBA) is
to use simple names with no table or type extensions.Therefore au_user
becomes user, au_salary becomes salary.

The main reason for simple naming is that end-users frequently see table and
field names and they tend to find extended naming structures confusing.

The most important thing is to be completely consistent ;-)

Hungarian (including type in name) can be more useful in programming but
even that is debatable with modern IDE's and debugging tools (IMHO)

Julian
<Jo*********@gmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Hi,

I am learning Ms Sql and I found that a lot of the tables I am finding
( in different tutorials ) are using special names for their column
names such like au_username, au_salery ...
Is the any naming convention for column names, or just at all is there
any reason for naming the table columns in specific way.

Thanks in advance.

Jul 23 '05 #3
ISO-11179. I also have a book due out this year which gives rules for
data elment names based on that standard and which quotes a lot of
reading studies, etc.

Jul 23 '05 #4
Too bad that virtually everything given there is in violationof the
ISO-11179 standards. The guy that posted them is an OO programmer and
not a data guy at all. The basic idea of the ISO standard is to name a
thing for what it is in the Universe of discourse. This guy names
things for where they are used (table name prefixes), and for how they
are used (pk prefixes) and they are implemented (trigger, index, etc.
postfixes).

Jul 23 '05 #5

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

Similar topics

11
by: MP | last post by:
Hi, Coming from a vb6 background I am accustomed to prefixing variable names to indicate their usage. Now just beginning to try to learn database stuff I've been lurking here and working on my...
2
by: Fir5tSight | last post by:
Hi, I have a stored procedure that looks like the follows: ------------------------------------------------------------------------------------- SELECT ClientName AS 'Client Name', Location,...
9
by: BillCo | last post by:
I'm coming from a MS Access background and so I'm very used to and comfortable with the hungarian (Leszynski et al) naming conventions. However, I'm getting started into my first SQL Server...
1
by: Philipp Post | last post by:
Marcello, Not a big surprise as naming conventions have a lot to do with personal prefernces. There are a lot of threads in comp.databases and the other database groups. Just do a search for...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.