A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

AS question



 
 
Thread Tools Display Modes
  #1  
Old February 25th, 2007, 05:59 PM posted to microsoft.public.access.queries
cinnie
external usenet poster
 
Posts: 67
Default AS question

This is my second post in 10 minutes - hope that's OK!

My query has several similar calculated fields called PRank, QRank, RRank,
....etc. Here is part of PRank.

PRank: (SELECT Count(*)
FROM (SELECT DISTINCT qrySales.PSales
FROM qrySales) AS DIS
WHERE DIS...etc

up until now I have been using aliases PDIS, QDIS, RDIS.... I tried using
just the same alias DIS for all of them, and everything seemde to work OK.
Question - Is this safe to use the same alias repeatedly like this?

thanks
--
cinnie
  #2  
Old February 25th, 2007, 07:22 PM posted to microsoft.public.access.queries
John Spencer
external usenet poster
 
Posts: 2,364
Default AS question

In this case where you are using this subquery in the SELECT clause, it
should not cause any problem.

'================================================= ===
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
'================================================= ===


cinnie wrote:
This is my second post in 10 minutes - hope that's OK!

My query has several similar calculated fields called PRank, QRank, RRank,
...etc. Here is part of PRank.

PRank: (SELECT Count(*)
FROM (SELECT DISTINCT qrySales.PSales
FROM qrySales) AS DIS
WHERE DIS...etc

up until now I have been using aliases PDIS, QDIS, RDIS.... I tried using
just the same alias DIS for all of them, and everything seemde to work OK.
Question - Is this safe to use the same alias repeatedly like this?

thanks

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:18 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.