> For the complete documentation index, see [llms.txt](https://docs.layraweb.com.tr/merhaba/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.layraweb.com.tr/merhaba/sql-tarafi/konular/sorgulamalar/where.md).

# WHERE

SQL "WHERE" komutu, veritabanından belirli koşullar altındaki verileri çekmek için kullanılır. "WHERE" komutu ile verilerin belirli bir sütundaki değerleri ya da bu sütunların belirli bir aralıkta bulunması gereken değerleri kullanarak filtreleyebilirsiniz.

Örnek olarak, aşağıdaki sorguda "customers" tablosundaki "city" sütunu "London" olan kayıtlar çekilmektedir:

```sql
SELECT * FROM customers WHERE city='London';
```

Eğer belirli bir sütunun değerlerinin belirli bir aralıkta bulunması gerektiğini belirtmek isterseniz, aşağıdaki gibi "WHERE" komutu kullanabilirsiniz:

```sql
SELECT * FROM customers WHERE age BETWEEN 25 AND 40;
```

Bu sorguda, "age" sütunundaki değerler 25 ile 40 arasında olan kayıtlar çekilmektedir.

Ayrıca, "WHERE" komutu ile birden fazla koşul belirleyebilirsiniz. Örnek olarak, aşağıdaki sorguda "city" sütunu "London" ve "age" sütunu 25 ile 40 arasında olan kayıtlar çekilmektedir:

```sql
SELECT * FROM customers WHERE city='London' AND age BETWEEN 25 AND 40;
```

SQL "WHERE" komutu veritabanındaki verileri istediğiniz şekilde filtreleyebilmenizi sağlar ve sorgularınızın daha doğru sonuçlar vermesine yardımcı olur.


---

# 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:

```
GET https://docs.layraweb.com.tr/merhaba/sql-tarafi/konular/sorgulamalar/where.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.
