Using a tag value in a SQL query?

Tips:

  1. When posting code, select it and press the </> button to format it. It will preserve indentation and do some syntax highlighting for you.
  2. It looks like you're working on a Vision application. If you edit your question title and add in the Vision tag it may help attract the Vision experts.