Table of Contents

Search

  1. About the Data Vault SQL Reference
  2. Introduction to SQL Reference for Informatica Data Vault
  3. Date and Time Arithmetic
  4. WHERE Clauses
  5. UNION Operator
  6. Parameterized Query
  7. Functions

Data Vault SQL Reference

Data Vault SQL Reference

Example of EXISTS Predicate

Example of EXISTS Predicate

The following query returns the last and first names (
lname
,
fname
) of all personnel in the 'patients' table if the same patient ID (
pid
) record has the
infected
attribute set to 'TRUE' in the 'diagnosis' table:
SELECT P.lname, P.fname FROM patients P WHERE EXISTS (SELECT * FROM diagnosis D WHERE P.pid = D.pid AND D.infected = 'TRUE');

0 COMMENTS

We’d like to hear from you!