SQL Characteristic Functions

Example 1
Example 1