1. Testdb bazasidagi employees hamda jobs


Download 267.21 Kb.
Sana18.12.2022
Hajmi267.21 Kb.
#1028321
Bog'liq
7-8-9 m baza


1.Testdb bazasidagi employees hamda jobs jadvalidagi ma’lumotlarni(first_name, last_name, salary – employees , job_title - jobs) inner join yordamida chop eting.
SELECT e.first_name,e.last_name,
e.salary AS maoshi,jobs.job_title
FROM employees AS e JOIN jobs
ON e.job_id = jobs.job_id

Bunda faqat bir biriga bog’langanlarni oladi.




2.northwind strings jadvalidagi ma’lumotlarni kata registrdagi belgilar bilan chop etuvchi so’rov yarating.bazasidagi.
UPDATE jobs SET job_title = UPPER(job_title) WHERE job_id=8
Bunda biz kiritgan malumotlarni hammasini katta harifda chiqaradi.




Download 267.21 Kb.

Do'stlaringiz bilan baham:




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling