Query Parameters in Code Mode
In query designer, the query parameter can be created in both design and code mode. The following sections describes the steps to create query parameters in query mode.
Create query parameter in code mode
- Click on the switcher in query designer toolbar, to switch to the query mode. 

- Specify the query in the text area, the query specified in the below snap returns the list of Invoice Details from the REP_PROFITMARGIN database. 

- Now, add the following - WHEREclause at the end of the query to create a query parameter.
- WHERE (("DEVROUNDED_REPORTS"."REP_PROFITMARGIN"."ORDERDATE" BETWEEN TO_DATE(@REP_PROFITMARGIN_ORDERDATE, 'MM/DD/YYYY HH24:MI:SS') AND TO_DATE(@REP_PROFITMARGIN_ORDERDATE1, 'MM/DD/YYYY HH24:MI:SS')))

- Click Save and Exit. 
