일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
- spring
- restapi
- 티스토리챌린지
- ChatGPT
- error
- Spring Security
- 이클립스
- SQL
- github
- 기업설명회
- 배포
- myBatis
- 웹개발
- JavaScript
- AJAX
- 자바
- SQLD
- HTML
- CSS
- bootstrap
- 코딩
- vscode
- Firebase
- jsp
- 깃허브
- jQuery
- 스파르타코딩클럽
- 오블완
- java
- Eclipse
- Today
- Total
목록2024/11/19 (3)
푸들푸들
(rental x inventory) x film{(rental x inventory) x film } x customerSELECT c.customer_id customerId ,t2.film_id ,t2.title ,t2.release_year ,t2.length ,t2.rating ,t2.rental_id ,t2.rental_date ,t2.return_date ,t2.rental_duration ,t2.rental_rate ,t2.replacement_costFROM (SELECT t1.rental_id ,t1.rental_date ,t1.return_date ,t1.customer_id ,t1.film_id ,f.title ,f.release_y..

고객 이름 검색이름에 'one'이 들어간 활성화 되어있는 고객SELECT customer_id , first_name , last_name , emailFROM customerWHERE active = 1 AND LOWER(CONCAT(first_name,last_name)) LIKE CONCAT('%',LOWER('one'),'%');

대여 중인 비디오 -> rental.return_date is null반납 날짜가 null인 것SELECT inventory_id, customer_idFROM rentalWHERE return_date IS NULL;SELECT i.*, t.*FROM inventory i LEFT OUTER JOIN (SELECT inventory_id, customer_id, rental_date FROM rental WHERE return_date IS NULL) t ON i.inventory_id = t.inventory_id; + film.titleSELECT t1.*, t2.*FROM (SELECT i.inventory_id , i.film_id , f.title , i.last_update , ..