ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » ESQL alias precedence confusion

Post new topic  Reply to topic
 ESQL alias precedence confusion « View previous topic :: View next topic » 
Author Message
pcelari
PostPosted: Fri Oct 19, 2007 1:20 pm    Post subject: ESQL alias precedence confusion Reply with quote

Chevalier

Joined: 31 Mar 2006
Posts: 411
Location: New York

on p32 of ESQL manual, I'm a little confused over the logic of aliasing:

SET OutputRoot.XML.Invoice[] =
(select I, 'Customer' || I.Customer.LastName AS ExtraField
from InputRoot.XML.Invoice[] as I);

I would like to know if my understanding is correct:

a. "InputRoot.XML.Invoice[] as I" - declares I as alias of
InputRoot.XML.Invoice[]

b. declare ExtraField as alias of I.Customer.LastName;

c. concatenate 'Customer' and content of ExtraField;

d. select I, plus one record consisted of the concatenated result and assign it to OutputRoot.XML.Invoice[].

can an ESQL expert tell me if my understanding is correct?

thanks for your insight.
_________________
pcelari
-----------------------------------------
- a master of always being a newbie
Back to top
View user's profile Send private message
elvis_gn
PostPosted: Fri Oct 19, 2007 9:53 pm    Post subject: Re: ESQL alias precedence confusion Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi pcelari,
pcelari wrote:
d. select I, plus one record consisted of the concatenated result and assign it to OutputRoot.XML.Invoice[].
You cannot select I, as I would not contain a value(it will be your complex type field)....it will always have to be some I.<childField>

Having said that you cannot fetch 'Customer' unless you make it I.Customer...or if Customer is some defined variable, then use {Customer}

Regards.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » ESQL alias precedence confusion
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.