ajanuskevicius
3/9/2017 - 11:54 AM

Condition by Prompt with LOV

Condition by Prompt with LOV

SELECT
FROM
WHERE
  (SELECT COUNT(*) 
    FROM IncidentTxs subtxs 
      LEFT OUTER JOIN SupplimentalValueTypes supp ON subtxs.SupplimentalValue=supp.SupplimentalValueTypeID 
    WHERE subtxs.Deleted = 'N' 
      AND subtxs.IncidentTxTemplateID = 303 
      AND subtxs.IncidentID=Incidents.IncidentID 
      AND (supp.Description IN  @Prompt('Select AccountQueue Type(s):','C','AccountQ\AccountQ Type Description',Multi,Free))) > 0