Quantcast
Channel: SCN : Discussion List - SAP BusinessObjects Web Intelligence
Viewing all articles
Browse latest Browse all 5402

How to Implement Not Exist Function?

$
0
0

Am converting the FHSQL Deski Reports(3.1) to Webi Reports(4.1).For the Below Query i have designed the universe,i.e i have created the derived table for the from clause select statement(which i have made bold in the query) and stored it as x.then i have created the predefined filter in universe for no exists functions(which i have made italics in the query).but while creating the report in webi if drag this filter am getting"no data to retrieve", i have validated SQL, Query Script is Correct.i don't have any idea how to proceed this query ..Suggestion Plss?....

 

Query:

 

select distinct a.study,  a.dcibook,   a.patient, a.site, a.visit, a.page, a.SubStrPage, a.display_sn,

a.DISCONTINUED, Previous_studyenddate,  FirstDoseDate,  max_offset_Date, PREWITHDL,

LastDoseDate, randomization_date, ConsentDate, MaxUNSCHEDPage, reported_patient_reference,

status_comment_text, visit_number, term_ful, reported_first_name, reported_last_name

from OPS$OCVIEW.EXPECTED_VISIT_DATE_109MS303_t  a,

(SELECT A.patient, A.reported_first_name, A.reported_last_name

       FROM RXA_DES.PATIENT_POSITIONS A

       WHERE A.clinical_study_id =156903)x---(created derived table)

where a.study ='109MS303'

and   (max_offset_Date+ @variable('Days of Monitor Delay:') ) < nvl(studyenddate, today_date)

--and   (max_offset_Date+ 10 ) < nvl(studyenddate, today_date)

and x.patient(+) = a.patient

and not exists

        ( SELECT b.study, b.patient, b.clin_plan_eve_name, b.PAGE

    FROM  RECEIVED_PAPERS b

        where b.study='109MS303'

        and a.study = b.study

        AND B.patient  = a.patient

        and a.visit = b.clin_plan_eve_name

        and a.page = b.page )

     AND not  exists

      (

      SELECT *

      FROM  CRF_IN_CRFTRACK_INDEXED c

      WHERE A.STUDY = c.STUDY

            and c.study='109MS303'

           and c.PATIENT= A.PATIENT

           and c.PAGE= A.PAGE

      )

       AND   not exists

      (

      SELECT *

      FROM s109ms303_unexpected_pages d

      where  d.subject  = a.patient

        and a.visit = d.visit

        and a.page = d.crf_page

      )AND   not exists

      (

      SELECT *

      FROM s109ms303_page_not_expected e

      where  e.subject  = a.patient

        and a.visit = e.visit

        and a.page = e.page

      )


Viewing all articles
Browse latest Browse all 5402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>