Issue Details (XML | Word | Printable)

Key: DERBY-84
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Won't Fix
Priority: Minor Minor
Assignee: Bryan Pendleton
Reporter: Bob Gibson
Votes: 2
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Derby

Column aliasing could simplify queries

Created: 28/Nov/04 03:25 PM   Updated: 01/Jul/09 12:34 AM
Return to search
Component/s: SQL
Affects Version/s: 10.0.2.0
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments:
  Size
File Licensed for inclusion in ASF works simpleTest.diff 2008-05-14 04:24 AM Bryan Pendleton 2 kB
Issue Links:
Duplicate
 
Reference
 

Resolution Date: 16/May/08 07:25 PM


 Description  « Hide
Currently, one can not use an alias to simplify queries. For example, being able to alias "LongDescriptiveColumnName" AS LDCN would allow one to use the alias elsewhere in the query, e.g., the WHERE clause:

SELECT LongDescriptiveColumnName AS LDCN FROM MyTable WHERE LDCN LIKE '%testing%';

The current result is a message like:

ERROR 42X04: Column 'LDCN' is not in any table in the FROM list or it appears within a join specification and is outside the scope of the join specification or it appears in a HAVING clause and is not in the GROUP BY list. If this is a CREATE or ALTER TABLE statement then 'LDCN' is not a column in the target table.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Andrew McIntyre made changes - 11/Sep/07 05:39 PM
Field Original Value New Value
Link This issue relates to DERBY-3066 [ DERBY-3066 ]
Thomas Nielsen made changes - 14/Sep/07 06:43 AM
Link This issue is duplicated by DERBY-3066 [ DERBY-3066 ]
Andrew McIntyre made changes - 13/May/08 05:07 PM
Link This issue relates to DERBY-2457 [ DERBY-2457 ]
Bryan Pendleton made changes - 13/May/08 10:35 PM
Assignee Bryan Pendleton [ bryanpendleton ]
Bryan Pendleton made changes - 14/May/08 04:24 AM
Attachment simpleTest.diff [ 12382010 ]
Bryan Pendleton made changes - 16/May/08 07:25 PM
Resolution Won't Fix [ 2 ]
Status Open [ 1 ] Resolved [ 5 ]
Dag H. Wanvik made changes - 01/Jul/09 12:34 AM
Issue Type New Feature [ 2 ] Improvement [ 4 ]