> For the complete documentation index, see [llms.txt](https://docs.dot-net.uz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dot-net.uz/database/postgresql/advance/join-lar/inner-join.md).

# Inner join

Tasavvur qilaylik bizning platformamiz fanlardan olimpiadalarga ro'yxatdan o'tadigan joy. Har bir o'quvchi bir nechta fanlardan ro'yxatdan o'ta oladi va har bir fan uchun topshirgan o'quvchilar ma'lumoti alohida jadvallarda saqlanadi. Endi bizning oldimizda qaysi o'quvchilar matematikadan ham, ona tilidan ham ro'yxatdan o'tgan, qaysilari boshqa ikkita fandan, qaysilari uchtadan ro'yxatdan o'tganini chiqarib berish kerak degan vazifa turibdi.

Bunaqa paytlarda INNER JOIN ishlatamiz. Bu Join vazifasi bir nechta jadvallar orasida umumiy qiymatlarni olib berishdir.

![](https://user-images.githubusercontent.com/91861166/227073378-26736fab-4114-4eb2-b94e-c8b4c5a4529c.png)

Masalan bizda Matematika, InglizTili, Informatika fanlardan qatnashadigan table'lar bo'lsa hammasida o'quvchi ma'lumotlari (Ism, Username, Sinfi, TugilganYili).

Matematika va ingliz tilidan ham qatnashadigan o'quvchilar:

```sql
SELECT * FROM Matematika
INNER JOIN InglizTili
ON Matematika.Username = InglizTili.UserName;
```

Matematika va Informatikadan ham qatnashadigan o'quvchilar:

```sql
SELECT * FROM Matematika
INNER JOIN Informatika
ON Matematika.Username = Informatika.UserName;
```

Uchchovidan ham qatnashadigan o'quvchilar:

```sql
SELECT * FROM Matematika
INNER JOIN Informatika
ON Matematika.Username = Informatika.UserName
INNER JOIN InglizTili
ON Matematika.Username = InglizTili.Username;
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.dot-net.uz/database/postgresql/advance/join-lar/inner-join.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
