1.select

select col_name_1,col_name_2

from table_name

select col_name_1 || col_name_2

from table_name

select col_name_1 + col_name_2 , col_name3/100

from table_name

select col_name_1 as “new column name”

from table_name

select col_name_1 “new column name”

from table_name

select col_name_1 as new_column_name

from table_name

select col_name_1 new_column_name

from table_name

2.where

select *

from table_name

where condition

condition

เช่น frist_name = ‘John’ and (salary > 2000)

3.Single row function

function — > manipulate data

Untitled

นับความยาวของตัวอักษร

Untitled

ตัวใหญ่

Untitled

ครอบแบบ มี 2 ข้อมูลแล้วปรับ ตัวใหญ่ตัวเล็ก

Untitled

ตัวแรกของคำเป็นตัวใหญ่

Untitled

แบบฝึกหัดหน้า15

Untitled

Untitled

แบบฝึกหัดหน้า17

Untitled

ต่อตัวอักษร ในที่นี้ใช้ || ได้เหมือนกัน