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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T18:04:36+00:00 2026-06-01T18:04:36+00:00

The solution: https://stackoverflow.com/a/439768/857994 gives the following code: DELETE TableA FROM TableA a INNER JOIN

  • 0

The solution: https://stackoverflow.com/a/439768/857994 gives the following code:

    DELETE TableA 
    FROM TableA a
    INNER JOIN
    TableB b on b.Bid = a.Bid
    and [my filter condition]

My question is:

How come we don’t need an AS in the FROM to alias TableA to a here? Wouldn’t we need the AS in a select query like SELECT E.FirstName FROM Employee AS E;?

What’s the difference?

  • 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-06-01T18:04:37+00:00Added an answer on June 1, 2026 at 6:04 pm

    The “AS” keyword there is optional. You don’t need it in SELECT queries either. (Try it!)

    Here’s some of the syntax of “FROM” from the MSDN:

    [ FROM { <table_source> } [ ,...n ] ] 
    <table_source> ::= 
    {
        table_or_view_name [ [ AS ] table_alias ] [ <tablesample_clause> ] 
        ...
    }
    

    As you can see, the [ AS ] is in brackets, which means it’s optional. You never need to add it, though I suppose some may argue that it makes the query more readable. I disagree, but that’s a matter of personal preference (or your DBA’s personal preference).

    See http://msdn.microsoft.com/en-us/library/ms177634.aspx for more detail.

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

Sidebar

Related Questions

In an answer to another question, @Marek posted the following solution: https://stackoverflow.com/a/10432263/636656 dat <-
I'm trying to implement this accepted solution for displaying a custom error message: https://stackoverflow.com/a/5229581/141172
Kindly go through this link and notice the solution given by "thepeer": https://stackoverflow.com/a/3494108 I
How to use this solution https://stackoverflow.com/a/10067749/604240 in jinja 2 template?
Like the subject, i found linux solution: https://stackoverflow.com/a/8103835 but on windows this apparently doesn't
In https://stackoverflow.com/a/1967183/134841 , a solution is provided for statically checking whether a member exists,
I'm looking for a solution similar to the iPhone Facebook Connect ( https://github.com/facebook/facebook-ios-sdk )
I've referred to this very good reference: https://stackoverflow.com/questions/1282830/uiimagepickercontroller-uiimage-memory-and-more but I'm having some very serious
I've seen several other posts similar to this (namely https://stackoverflow.com/questions/5237/solutions-for-working-with-multiple-branches-in-asp-net ) but there are
I just recently asked this question: https://stackoverflow.com/questions/6359367/running-a-bash-program-every-day-at-the-same-time The solution of using crontab -e to

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.