# Using columns from two or more separate DB2 tables

**URL:** <https://discuss.elastic.co/t/using-columns-from-two-or-more-separate-db2-tables/162162>\
**Category:** Logstash\
**Created:** [December 26, 2018, 4:17pm UTC](https://discuss.elastic.co/t/using-columns-from-two-or-more-separate-db2-tables/162162 "2018-12-26T16:17:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![angelogabeira](https://avatars.discourse-cdn.com/v4/letter/a/ec9cab/32.png) [@angelogabeira](https://discuss.elastic.co/u/angelogabeira)\
**Post date:** [December 26, 2018, 4:17pm UTC](https://discuss.elastic.co/t/using-columns-from-two-or-more-separate-db2-tables/162162/1 "2018-12-26T16:17:36Z")

</div>

Folks,  
I'm trying to use data from two tables and I can not. follows the code:

# statement =\> " SELECT DISTINCT M1.CD\_UOR\_RSP\_SLC AS UOR, C2.NR\_PTL\_ATDT AS NR\_BB\_ATENDE FROM DB2BBR.MNFC\_PTL M1, DB2BBR.CNSO\_PAIN\_MNFC C2 "

The error is simply to freeze on the [2018-12-26T14:05:32,406][INFO][logstash.agent] Successfully started Logstash API endpoint {:port=\>9600}  
line.  
I've tried point and comma, comma and nothing.  
If I call only one in select and one in from goes quiet, but when I try two it will not.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 23, 2019, 4:17pm UTC](https://discuss.elastic.co/t/using-columns-from-two-or-more-separate-db2-tables/162162/2 "2019-01-23T16:17:39Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
