Does Alteryx now how to handle SQL aliases?
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
ckelley0
8 - Asteroid
‎03-17-2024
11:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I have a very simple SQL query that works, but not when I include an alias.
While it is not a problem to simply remove the alias for this query, it is not ideal for more complex queries. Thanks.
2 REPLIES 2
‎03-17-2024
11:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Never mind, I found my issue.
If you are going to declare an alias then you have to use it.
 
apathetichell
19 - Altair
‎03-17-2024
03:22 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
The short is Yes - it can also handle subqueries with alias ie select s.* from (select sum(*) from yourdb.yourschema.yourtable) s
