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

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

android - ConstraintLayout: Realign baseline constraint in case if dependent view visibility was set to GONE -