infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Read Only Archives
Cloverleaf
Tcl Library
tcl proc doing an oracle 'join'
Mike Campbell
Cloverleaf 5.7 patch 2 - AIX
I'm trying to run a tclproc that is querying a database using a join:
Select e2.alias from encntr_alias e1, encntr_alias e2
Plan e1
Where e1.alias = "21559168"
And e1.encntr_alias_type_cd = 389
And e1.active_ind = 1.00
Join e2
Where e2.encntr_id = e1.encntr_id
And e2. encntr_alias_type_cd = 15695
And e2.active_ind = 1.00
I keep getting the "SQL command not properly ended" error.
First, is it possible to do a join using tcl, and if so, would someone have an example to share?
Thanks.
Mike C.
Find more posts tagged with
Clovertech
Comments
Charlie Bursell
You must specify the join type. You probably want an inner join.
Take a look here
http://www.techonthenet.com/sql/joins.php