I have a static temp-table in my application(with 25 fields). This needs to be a database table now, so that the user does not have to keep adding fields in the application.
The reason we do not want the static temp-table is the flexibility of adding or removing fields to the table.
I have the following temp-table
define temp-table ttQuote no-undo
field quote-date as date
field risk as character
field client-name as character
field address as character
field product-code as character
field risk-num as integer
field risk-version as integer
field risk-det-num as integer
field state as character.
with additional fields
and the program uses the above temp-table, assigns values from different tables to its fields - and then displays the data with the help of queries.
Now, that we are replacing this temp-table with a database table and accessing the database table with a dynamic temp-table, will mean writing dynamic queries on the dynamic temp-table. So, my question was "if I have a dynamic temp-table, can I still use static queries or do I now need dynamic queries" Using additional fields would mean that the temp-table will pick the newly added fields on its own (if it is a dynamic temp-table). Please suggest.