# 1. KSQL Joins

![](/files/-MDZH6AMpWKN4Wd5wOO6)

![](/files/-MDZJZ0dEGfxijyiKzG_)

![](/files/-MDZJre1eb3gcv2JqUFM)

![](/files/-MDZK-ZANZfbZkoiPsyC)

![](/files/-MDZKAq4Xh0hwUu96O_m)

![](/files/-MDZKICBT9D9auBJlBHO)

Join user-profile stream with countrytable.

![](/files/-MDZKWB5MMeAgio2MX4m)

Now create stream after joining both stream & a table :

![](/files/-MDZLJtvf_ltY6AC0Usq)

![](/files/-MDZLUlUBdEgmUZfLMTb)

Now verigy the data of newly created Joined table (stream up\_joined)

select \* from stream up\_joined.

![](/files/-MDZLl5qjtTqOWABHXLg)

Note : Table is created for static data while stream is used for real-time data:


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://architectures.gitbook.io/project/apahce-kafka/ksql-on-ksqldb-for-stream-processing/ksql-intermediate/1.-ksql-joins.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
