Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Tips for Writing Access SQL Queries

While best practice is to use the Portal Administration Column Configuration Description field to customize column headers, there is one drawback with this method. If you add or remove a column from the underlying stored procedure result set, you must edit the Portal Query in Portal Administration for the change to take effect. When you edit the Portal Query to add or remove a stored procedure column, customizations made to the Description field in the Portal Administration Column Configuration are removed, and you must reapply them manually.

In this section

Avoid Nested Sub-Queries

Use Functions for Common Tasks

Comment Liberally

Place all Stored Procedures and Functions on One Package

Re-applying custom descriptions for a few fields in the Portal Query is a simple task. However, if the Portal Query contains many fields with custom descriptions, then this process is somewhat onerous and may justify setting column aliases in the stored procedure SQL query instead of the Column Configuration Description field in Portal Administration.

In summary, best practice is to use the Portal Administration Column Configuration Description field for column header aliases, but there are trade-offs that may justify using column aliases in the stored procedure SQL query where the stored procedure may be frequently modified and where many result set columns require aliases.

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.