I work for a telecomunication company and the assignment is to produce a report. The select statement for that report is very complicated. I don't know if I can do the following:
1. create a stored procedure that will return me list of study areas. (stady_area_id, study_area_name) etc.
2. create a formula for each study_area_id select the state that the study area is in.
This is just the example, it's much more completed, but my basic question is: Can I create forumulas (subqueries) for the stored procedure and query the values in the report for each study_area_id or I have to put everthing in a stored procedure.
1. create a stored procedure that will return me list of study areas. (stady_area_id, study_area_name) etc.
2. create a formula for each study_area_id select the state that the study area is in.
This is just the example, it's much more completed, but my basic question is: Can I create forumulas (subqueries) for the stored procedure and query the values in the report for each study_area_id or I have to put everthing in a stored procedure.