[SQL]문법정리2(select~where)

김희정·2022년 9월 26일
0

[SQL]문법정리2

목록 보기
1/1

select
from orders
where payment_method = 'kakaopay';
select

from point_users
where point >= 5000;
select
from orders
where course_title = '웹개발 종합반'and payment_method = 'CARD';
select

from point_users
where point > 20000;
select
from users
where name = '황**';
select

from orders o
where course_title = '앱개발 종합반';
select
from orders o
where course_title != '웹개발 종합반';
select

from orders
where created_at
between '2020-07-13' and '2020-07-15';
select
from checkins
where week in (1,3);
select

from users
where email like '%naver.com';
select
from orders
where payment_method != 'CARD';
select

from point_users pu
where point
between 20000 and 30000;
select
from users
where email like 's%com';
select

from users
where email like 's%com' AND name = '이*';
SELECT

FROM orders o
WHERE payment_method = 'kakaopay'
LIMIT 5;
SELECT DISTINCT (payment_method)
FROM orders o ;
select COUNT(*) from users;

profile
홍익인간

0개의 댓글