I want to join these two queries to be just one query and can never seem to get the correct results. Query1 is for a file that has multiple records for ELER and ELDIVISON and I want the count. Query2 is a file that contains the description for the ELER, ELDIVISON so one record per ELER, ELDIVISON. I still want just the final list to be from Query1 with the list (I dont want every record from FILEB if there are no records in FILEA.
Any Help Appreciated
Query2:
Any Help Appreciated
PHP Code:
Query1:
Select ELER,
ELDIVISON,
count(*)
From FILEA
Where ELTYPE = 'I'
Group by ELER,
ELDIVISON
Order by ELER,
ELDIVISON;
PHP Code:
Select CDDESC
from FILEB
where CDER = :ELER and
CDTYPE = 'DIV' and
CDFIVE = :ELDIVISON;


)

Comment