sql - Crystal Reports - How to isolate first and last date in a field? -


i new joining site; have used reference in past. creating crystal report in need output first , last date off field db. have used "maximum" , "minimum" functions , instead outputs first , last date on field whole db!? trying use sql expression in crystal; yet have luck new sql expressions. have been using:

looking "le doc first sent date": "le doc last sent date": if {table.doctype} = "le" minimum ({table.date_delivered})

"le doc last sent date": if {table.doctype} = "le" maximum ({table.date_delivered})

when use above functions in crystal gives me date on each; same id items on report. also, duplicates same id item several times same date....odd....

the tables on report based off relational based db , tables linked appropriately.

report screenshot example below:

crystal report screenshot


Comments

Popular posts from this blog

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -