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 7067455
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:12:15+00:00 2026-05-28T05:12:15+00:00

Except when it’s necessary (self reference, etc.), is there a drawback NOT to use

  • 0

Except when it’s necessary (self reference, etc.), is there a drawback NOT to use SQL aliases?

I often see queries like :

SELECT c.name, p.phone, a.number, ct.fbAddress
FROM customer c 
INNER JOIN Person p ON p.idCustomer = c.idCuster
INNER JOIN Address a ON .... etc

It annoys me. It’s not easily maintainable. Why not use the full names? Is there a problem with it?

And that’s just an example. I’ve seen queries with 10-15 tables in them with this kind of shortcuts. It’s not readable.

Edit:

I should have written “It’s not easily readable” instead of “maintainable”. It’s true that it’s easier to change the name of a table if you only have to change it in the “FROM” clause.

Oh and by the ways, I’ve seen these “one letter aliases” mostly from DBAs, so I though maybe there was some performance issue or something.

  • 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-28T05:12:15+00:00Added an answer on May 28, 2026 at 5:12 am

    There are no (performance) downsides to not using aliases. But I think many would agree to the opposite of your preferences. Aliases make SQL more readable. What is more enjoyable to read to you?

    SELECT c.name, p.phone, a.number, ct.fbAddress
    FROM customer c 
    INNER JOIN Person p 
    ON p.idCustomer = c.idCuster
    INNER JOIN Address a 
    ON .... etc
    

    or

    SELECT customer.name, Person.phone, Address.number, SomeOtherTable.fbAddress
    FROM customer
    INNER JOIN Person
    ON Person.idCustomer = customer.idCuster
    INNER JOIN Address
    ON .... etc
    

    I would choose the former 11 times out of 10. Not to mention, the time saved, and the less error prone you are without having to type many times the characters with no aliases makes it quite worth it as well.

    I will hand it to you, the one letter aliases (i.e. a, c, p) can be rough. But when you have a table called CompanyBillExtensions, it is easier and just as intuitive to write/read cbe or BillExt.

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

Sidebar

Related Questions

Except for non human readable code is there another reason not to use var
Is there any drawback (except allowing the value or array to grow too large)
Are there ways except CAPTCHAs for web apps like pastie.org or p.ramaze.net ? CAPTCHAs
Is there a way except the sshexec task to do this? I know that
This question except i want to ask how do i make my picturebox not
Is there any other way except $MyInvocation.InvocationName in powershell to get the script name?
Except classes and interfaces is there anything else we can write in a java
Except for Caja(which is Java based) is there a simple javascript implementation for sandboxing
Except for Google docs is there any technology that will allow me to provide
Except those which are available in Visual Studio, are there any official external Microsoft's

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.