Cats/Atts Query by Date Range
I have posted before for help with a LiveReport based on Categories and have received a lot of help with it. In working with you all and a DBA here at work, I have almost the report I need. Our DBA is not familiar with the Livelink Schema but she did most of what I needed. The following SQL statement is what I have but it is not listing a value in two of the fields, Doc Number and Number of Hard Copies (just ?). I am attaching a document that shows the LiveReport, an abreviated copy of the results and a copy of the CateRegion Map table and Attributes dump for that Category.SQL Statement:SELECT dtree.dataid, dtree.SubType, dtree.GIF, dtree.PermID, dtree.Reserved, dtree.ReservedBy, dtree.name, max(decode(a.attrid,10,a.valdate)) as "Docreview", max(decode(a.attrid,12,a.valstr)) as "Docnum", max(decode(a.attrid,26,a.valint)) as "Number", max(decode(b.attrid,6,b.valstr, 'Corporate')) as "Facility", max(decode(c.attrid,5,c.valstr, 'Quality')) as "Dept" FROM llink.dtree dtree, llink.llattrdata a, (select a.valstr, a.defid,a.attrid, a.id, a.vernum from llink.llattrdata a where attrid=6 and valstr='Corporate')b, (select a.valstr, a.defid,a.attrid, a.id, a.vernum from llink.llattrdata a where attrid=5 and valstr='Quality')c WHERE a.valdate >= %1 and a.valdate <= %2 and a.defid=862314 and dtree.subtype = 144 and a.id = dtree.dataid and a.vernum = dtree.versionnum and a.attrid in (10, 12, 26) and b.id=dtree.dataid and b.vernum= dtree.versionnum and c.id=dtree.dataid and c.vernum=dtree.versionnum GROUP BY dtree.dataid, dtree.SubType, dtree.GIF, dtree.PermID, dtree.Reserved, dtree.ReservedBy, dtree.name ORDER BY "Docreview"Thank you for any help you may be able to provide.