Skip to main content
. Author manuscript; available in PMC: 2015 Sep 1.
Published in final edited form as: IEEE J Biomed Health Inform. 2014 Sep;18(5):1607–1613. doi: 10.1109/JBHI.2013.2292591

Fig. 3.

Fig. 3

An example of stage 4 from Fig. 2 showing the logic needed to generate the SQL for a date constraint. This is conditionally based on the query definition’s values for the “to” and “from” of the date constraint received from the user interface; for example, if both values are present, a between clause is needed. This returns a SQL clause comparing “start_date”, which is found in the source database table.