Dynamic SQL

Example: