Alias and Where clause problem
From: David (david.parenteau_at_compuware.com)
Date: 04/01/04
- Next message: Alejandro Mesa: "Re: Parent/Child concept in SQl tables - How do I"
- Previous message: anonymous_at_discussions.microsoft.com: "SQL Server Trigger does not fire through web application but works in Query Analyzer"
- Next in thread: Adam Machanic: "Re: Alias and Where clause problem"
- Reply: Adam Machanic: "Re: Alias and Where clause problem"
- Reply: Eric Sabine: "Re: Alias and Where clause problem"
- Reply: Joe Celko: "Re: Alias and Where clause problem"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 1 Apr 2004 12:40:18 -0800
Why I can't use alias name in a where clause? Does a work
around exist?
The reason I want to use alias is that the field (id in
the following example) could by a long expression.
SELECT id as myID
FROM table1
WHERE myID = 1
- Next message: Alejandro Mesa: "Re: Parent/Child concept in SQl tables - How do I"
- Previous message: anonymous_at_discussions.microsoft.com: "SQL Server Trigger does not fire through web application but works in Query Analyzer"
- Next in thread: Adam Machanic: "Re: Alias and Where clause problem"
- Reply: Adam Machanic: "Re: Alias and Where clause problem"
- Reply: Eric Sabine: "Re: Alias and Where clause problem"
- Reply: Joe Celko: "Re: Alias and Where clause problem"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|