# Basic Select - 1

```sql
use Chinook;
select * from Album;
select * from Album limit 10;
select * from Album where Title = 'Facelift';
select * from Album where AlbumId  >= 5;
select * from Album where title like 'c%';
select * from Album where title like 'b%' and ArtistId  >=30;
select * from Customer;
select * from Customer order by firstName;
select * from Customer order by lastName desc;
select * from Customer order by firstName, lastName desc;
select concat(firstName, ' ' , lastName) from Customer;
select concat(firstName, ' ' , lastName) as customerName from Customer;
select concat_ws(' ',firstName, lastName) as customerName from Customer;
```

```
select * from Murach.customers;
select * FROM Murach.invoices where invoice_id = 19;
select * FROM Murach.invoices where invoice_id = 19 or invoice_id = 29;
select * FROM Murach.invoices where invoice_id in (19,29);
select * FROM Murach.invoices where invoice_id between 19 and 59;
select * FROM Murach.invoices where invoice_id Not in (19,29);
```


---

# 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://gchandra.gitbook.io/data-warehousing/rdbms/sql-concepts/basic-select-1.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.
