Quantcast
Channel: aras PLM community
Viewing all articles
Browse latest Browse all 1103

SQL select/where a property is a Foreign data-type??

$
0
0

Does anyone happen to know how to go about building an aras SQL select statement to retrieve properties (rows & columns) when one of the properties (columns) is of Data-Type Foreign?

The property I have, in question, exists on the primary item-type (table) as a Foreign data-type to another item-type (table).  Below is my select that works 100% until I add this property to the where clause:

My Innovator error msg is: invalid column near comp_cat

 

 

var results = inn.applySQL("select 'Complaint Category', comp_type, Month, fiscal_year "+

 

 

"where"+

" month = '"+ curMonth +"'"+ 

" and"+  

" fiscal_year = '"+ curCCYY +"'"

" and" +

" comp_cat = 'Package'");

"from innovator.[AP_Customer_Complaint] "+


Viewing all articles
Browse latest Browse all 1103

Trending Articles