Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3622960
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T23:19:27+00:00 2026-05-18T23:19:27+00:00

I am currently reading the book SQL Programming Style wrote by Joe Celko. In

  • 0

I am currently reading the book “SQL Programming Style” wrote by Joe Celko.

In the first chapter, at the paragraph “Develop Standardized Postfixes” he states for the id column :

“_id” = identifier. It is unique in
the schema and refers to one entity
anywhere it appears in the schema.
Never user “>table_name<_id”

Few pages later he states

Do not use an underscore as the first
or last letter in a name. It looks
like the name is missing another
component.

He deprecated “id” as column name.

So I would like to know how you guys name the id column ?

I know that most people might think what the point of this question, but I am looking on standardizing my data model, following industry standards and ISO standards as much as I can.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T23:19:28+00:00Added an answer on May 18, 2026 at 11:19 pm

    Rather than share my opinions on naming standards, I’ll attempt to answer your question 😉

    I think the point Celko is making is that student_ID in a table of students is a code smell i.e. it could be that the designer’s style is to always adds an ID column, probably an auto-increment column, to every table they create in the physical model (even when there is no such column in the logical model) with the intention of using these ID columns for foreign keys. In other words, Celko does not want you to always use surrogate key, rather he wants you to use natural keys where appropriate.

    If you read on to section 1.2.5 (p14-15) and follow his rules for table names, you’ll discover why table name + _ID an unlikely occurrence:

    if I cannot find an industry standard
    (name), I would look for a collective
    or class name… Exception: use a
    singular name if the table actually
    has one and only one row in it.

    So, for example, if you had a table containing student data it may be called Students rather than Student but more likely to be Enrolment (or similar). And a table containing one and only one row is unlikely to need an _ID column.

    I suppose there are nouns for whom the plural is the same as the singular so maybe Sheep_ID is acceptable (but only in absence of an industry standard ovine identifier, of course!)

    Also consider the rule 1.3.2. (p19) Avoid Names That Change From Place to Place e.g. the same domain referred to in the Students table as ID and in other tables as student_ID. It is unlikely that there will only be one element named _ID in the entire schema!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently reading the book called "Programming ActionScript 3.0" available from Adobe. After
I'm currently reading a great book called 'Programming Collective Intelligence' by Toby Segaran (which
I'm currently reading Aaron Hillegass' book Cocoa Programming for Mac OS X as it
Currently reading quite a heavy WCF book. I have used it myself in production
I'm new to User Roles Management. I was reading my Wrox Programming book on
I'm currently reading the book Pro Asp.Net MVC Framework. In the book, the author
I'm currently reading the book Professional Enterprise .NET and I've noticed this warning in
I am currently reading a book about bit fiddling and the following formula appears:
I am currently reading the book Pro WPF in C# 2008 , and I'm
I am currently reading the book Javascript: The Good Parts and was playing with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.