# KDB q sql in Tableau

**URL:** https://forum.kx.com/t/kdb-q-sql-in-tableau/11653
**Category:** Community Support
**Tags:** kdb-and-q
**Created:** [December 8, 2017, 8:11pm UTC](https://forum.kx.com/t/kdb-q-sql-in-tableau/11653 "2017-12-08T20:11:00Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Jean1](https://avatars.discourse-cdn.com/v4/letter/j/f475e1/32.png) [@Jean1](https://forum.kx.com/u/Jean1)
#### Post date: [December 8, 2017, 8:11pm UTC](https://forum.kx.com/t/kdb-q-sql-in-tableau/11653/1 "2017-12-08T20:11:00Z")

</div>

Hi,&nbsp;

I managed to get connected from Tableau to KDB. However, there are certain characters that Tableau’s SQL is having issues escaping (ex. ?)&nbsp;

I need to use vector conditionals but I can’t seem to get the query to work within the q() function.&nbsp;

Anyone know how to work this out?&nbsp;

Also, At the bottom this page:&nbsp;[https://code.kx.com/q/interfaces/q-server-for-odbc3/](https://code.kx.com/q/interfaces/q-server-for-odbc3/)

They said there’s examples but I can’t find test.q

Can someone point me to where it is?
