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

  • Home
  • SEARCH
  • 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 7916297
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T14:45:20+00:00 2026-06-03T14:45:20+00:00

Here’s a SQL statement that works perfectly in Transact-sql SELECT a.Account_ID, a.First_Name, a.Last_Name, m.number

  • 0

Here’s a SQL statement that works perfectly in Transact-sql

SELECT a.Account_ID, a.First_Name, a.Last_Name, m.number
FROM Account a,
(SELECT R_Account_ID, COUNT(Notification_ID) AS number
FROM Rcv_Send_Event_Notf 
GROUP BY R_Account_ID) m
WHERE a.Account_ID = m.R_Account_ID

But it does not in Oracle. It is complaining about m.number in out most select statement. I believe also because of AS number in the 3rd line.

invalid user.table.column, table.column, or column specification…

Is there a different way to alias a column in Oracle?

Thanks for helping

  • 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-03T14:45:23+00:00Added an answer on June 3, 2026 at 2:45 pm

    Number is a keyword in Oracle, so you can’t use it as an alias without using double quotes. Most would advise against using it as an alias, period.

    > select d.number from (select sysdate as number from dual) d
    
    Error starting at line 3 in command:
    select d.number from (select sysdate as number from dual) d
    Error at Command Line:3 Column:9
    Error report:
    SQL Error: ORA-01747: invalid user.table.column, table.column, or column specification
    01747. 00000 -  "invalid user.table.column, table.column, or column specification"
    
    > select d.number from (select sysdate as "number" from dual) d
    
    Error starting at line 2 in command:
    select d.number from (select sysdate as "number" from dual) d
    Error at Command Line:2 Column:9
    Error report:
    SQL Error: ORA-01747: invalid user.table.column, table.column, or column specification
    01747. 00000 -  "invalid user.table.column, table.column, or column specification"
    
    > select d."number" from (select sysdate as "number" from dual) d
    number                    
    ------------------------- 
    07-MAY-12 12:32:28 PM     
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here's a query that works fine: SELECT rowid as msg_rowid, a, b, c FROM
Here is my query: SELECT * FROM [GeoName] WHERE ((-26.3665122100029-Lat)*(-26.3665122100029-Lat))+((27.5978928658078-Long)*(27.5978928658078-Long)) < 0.005 ORDER BY
Here is another spoj problem that asks how to find the number of distinct
Here's my code: string strSQL = SELECT * from tMedia where SKU = '
Here is my SQL statement: UPDATE InboxItem SET OrderId = @0, Item = @1,
Here is a complete example. I want to forbid using A::set from objects casted
Here's the deal: I'm in the process of planning a mid-sized business application that
Here's what I'm trying to accomplish with this program: a recursive method that checks
Here is an example: I have the generic type called Account. I wish to
Here's a basic regex technique that I've never managed to remember. Let's say I'm

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.