SELECT * FROM categories
select category_name, description from categories
3. Categories jadval barcha ustun ma’lumotlari olishda ustun nomlarini o’zbekcha tarjimada qaytaring. M-n: category_name=Nomi
select
category_id as id,
category_name as nomi,
description as tavsifi,
picture as rasmi
from categories
select
*
from categories
where category_name='Confections'
select
*
from categories
where category_name='Produce'
select *
from categories
limit 3 offset 5
select description
from categories
order by description desc
select *
from customers
select customer_id as mijoz_id_si,
company_name as kampaniya_nomi,
contact_name as kantakt_nomi,
contact_title as kontakt_sarlavhasi,
address as manzil,
city as shahar,
region as mintaqa
from customers
select *
from customers
where contact_title='Owner'
select *
from customers
where city='London'
select *
from customers
where region is null
select *
from customers
where region is not null
select customer_id,company_name,contact_name,region,country
from customers
where country='Germany'
select count(*)
from customers
where country='Germany'
16. Customers jadvalidan fax ustun NULL bo’lmalgan ma’lumotlarni contact_name ustun alifbo tartiba tartiblab qaytaring.
select contact_name, fax
from customers
where fax is not null
order by contact_name asc
select *
from employees
select
employee_id as ishchi_id_si,
last_name as familia,
first_name as ism,
title as lavozim,
title_of_courtesy as xushmuomalalik_unvoni,
birth_date as tugilgan_sana,
hire_date as ishga_qabul_qilingan_date,
address as manzil,
city as shahar,
region as mintaqa
from employees
19. Employess jadvaldan title_of_courtest ‘Mr’ bo’lgan xodimlarni firts_name alifbo tartibida qaytaring.
select first_name, title_of_courtesy
from employees
where title_of_courtesy='Mr.'
order by first_name asc
select count(*)
from employees
where title='Sales Representative'
select *
from employees
where hire_date between '1994-01-01' and '1994-12-31'
select region,first_name, last_name, title, city,home_phone
from employees
where region is not null
order by first_name asc
select *
from orders
where customer_id='VINET'
select *
from orders
where order_date between '1996-01-01' and '1996-12-31'
select *
from orders
where ship_region is not null
select *
from orders
where order_id between 10300 and 10400
select sum(unit_price)
from order_details