Transformation Scripts

LabKey Support Forum
Transformation Scripts marcia hon  2018-04-18 12:42
Status: Closed
 

I would like to the following script to be the transformation script:

SELECT
Genotyping_Original."participant id"
FROM study.Genotyping_Original as Genotyping_Original
WHERE NOT EXISTS
(
SELECT *
FROM genotype_etl.genotyping_original as GenoETL
WHERE
Genotyping_Original."participant id" = GenoETL."participant id"
)

However, it is always not giving me the correct results.

I think it's because there are two queries being referenced: study.Genotpying_Original and genotype_etl.genotyping_original . So it seems that it is not able to get information from genotype_etl.genotyping_original .

genotype_etl.genotyping_original is a schema and table that i create in the same transform.module package.

I look forward to your expertise.

Thanks,
Marcia

 
 
marcia hon responded:  2018-04-19 08:06

I solved it by doing a different query.

SELECT *
FROM
(
SELECT * from A
EXCEPT
SELECT * from B
)

Thanks