Using a SQL cursor attribute includes