Re: Query to return 2 different names in same record
- From: PeterW <PeterW@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 6 Oct 2008 00:54:04 -0700
Thanks again you have been a great help
"Hugo Kornelis" wrote:
On Sun, 5 Oct 2008 02:31:01 -0700, PeterW wrote:.
Thanks you're a gent.
Does this stop the orderby, groupby, or where clause from working?
Hi Peter,
No. But you do need to keep using the aliases instead of the table names
whenever you refer to columns from the tables.
(Note that an alias is not required -though I presonally prefer it- for
tables that appear just once in a query - but tables appearing twice or
more do need an alias to seperate the "versions").
--
Hugo Kornelis, SQL Server MVP
My SQL Server blog: http://sqlblog.com/blogs/hugo_kornelis
- References:
- Query to return 2 different names in same record
- From: PeterW
- Re: Query to return 2 different names in same record
- From: Hugo Kornelis
- Re: Query to return 2 different names in same record
- From: PeterW
- Re: Query to return 2 different names in same record
- From: Hugo Kornelis
- Query to return 2 different names in same record
- Prev by Date: Re: Query to return 2 different names in same record
- Next by Date: Finding the end of month.
- Previous by thread: Re: Query to return 2 different names in same record
- Next by thread: Finding the end of month.
- Index(es):
Relevant Pages
|