cancel
Showing results for 
Search instead for 
Did you mean: 

Impex export data from multiple tables

former_member667417
Discoverer
0 Kudos

"#% impex.setTargetFile( ""Catalog.csv"" , true );" ISERT_UPDATE Catalog; pk; shortdescription; code; price; qv; cv; wholesale; "#% impex.exportItemsFlexibleSearch(""SELECT {c.pk}, {p.shortdescription}, {p.code}, {pr.price}, {pr.qv}, {pr.cv}, {pr.wholesale}, {pr.taxableprice} FROM {CATALOG AS c JOIN PRODUCT AS p on {c.pk} = {p.catalog} JOIN PRICEROW as pr ON {p.pk} = {pr.product} JOIN CATALOGVERSION as cv ON {p.catalogversion} = {cv.pk} JOIN USERPRICEGROUP AS ug on {pr.ug} = {ug.pk} JOIN CATEGORY as ct ON {c.pk} = {ct.catalog}} WHERE {c.id} = 'usProductCatalog' AND {cv.version} = 'Online' GROUP BY {p.code}"");"

geffchang
Active Contributor
0 Kudos

Do you have a question about your post? What is the problem?

former_member667417
Discoverer
0 Kudos

I am not getting data from multiple tables.

Accepted Solutions (0)

Answers (0)