[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

how to use alias in MS access

Posted on 2009-04-02
3
Medium Priority
?
896 Views
Last Modified: 2012-06-27
i have a table
Id
CountSubmitted
countA1
CountA2
countA3
countB1
CountB2
countB3

select * from table
1  100   25 25 25 15 5 5
select Id,CountSubmitted, 
countA1+countA2+countA3 as CountA,
countB1+countB2+countB3 as CountB
where CountSubmitted<> CountA+CountB
 
but ut does not recognise CountA+CountB and i am using:
select Id,CountSubmitted, 
countA1+countA2+countA3 as CountA,
countB1+countB2+countB3 as CountB
where CountSubmitted<> countA1+countA2+countA3 +countB1+countB2+countB3

Open in new window

0
Comment
Question by:rfedorov
  • 2
3 Comments
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 24051714
AFAIK, you cannot use the aliases immediatelyy.
0
 

Author Comment

by:rfedorov
ID: 24051734

It was fast...
what to do?
0
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 1000 total points
ID: 24051926
you have already 1 alternative.

here is another:
select *
from (
  select Id,CountSubmitted, countA1+countA2+countA3 as CountA, countB1+countB2+countB3 as CountB
    from table
  ) sq
where CountSubmitted <> CountA+CountB

Open in new window

0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Problem: You created a new custom form in Outlook for your contacts (added fields, deleted fields, changed the layout of fields, whatever) and made it the default form for contacts. The good news is that all new contacts will utilize the new form. T…
Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question