Re: Join

Re: Join

 

  









select count(distinct(b.ActionItemId)) as Total_Records from ActionItem b
LEFT JOIN actionstmts d ON b.actionitemid d.actionitemid, ActionItem d LEFT
JOIN ActionCaseType c ON c.actionitemid=d.actionitemid where
Upper(actionname) like Upper('%')

This will work!!





"Amit Singal " <db2udbdba-ezmlmshield-x48917622.[Email address protected] on
29 Sep 2005 16:11

To: "LazyDBA Discussion" <[Email address protected]
cc:



Our Ref: Your Ref:



Subject: Join

select count(distinct(b.ActionItemId)) as Total_Records from ActionItem b
LEFT JOIN actionstmts d ON b.actionitemid =d.actionitemid,ActionItem b LEFT
JOIN ActionCaseType c ON c.actionitemid=b.actionitemid where
Upper(actionname) like Upper('%')

error:-- A reference to column "B.ACTIONITEMID" is ambiguous.

Kindly suggest the solution

Regards

Amit Singal





---------------------------------------------------------------------
PLEASE CLICK REPLY-ALL TO SEND A REPLY TO EVERYONE
website: http://www.LazyDBA.com
To unsubscribe: http://www.lazydba.com/unsubscribe.html


-----------------------------------------
******************************************************************
This message originated from the Internet. Its originator may or may
not be who they claim to be and the information contained in the
message and any attachments may or may not be accurate.
******************************************************************







-----------------------------------------
***********************************************************************
This e-mail is confidential. It may also be legally privileged.
If you are not the addressee you may not copy, forward, disclose
or use any part of it. If you have received this message in error,
please delete it and all copies from your system and notify the
sender immediately by return e-mail.

Internet communications cannot be guaranteed to be timely,
secure, error or virus-free. The sender does not accept liability
for any errors or omissions.
***********************************************************************


DB2 & UDB email list listserv db2-l LazyDBA home page