SQLD
-
12/ 28스파르타/TIL(Today I Learned) 2023. 12. 28. 09:22
프로그래머스 _ 조건에 맞는 사용자와 총 거래금액 조회하기 (41번 문제) -- 완료된 거래 금액이 70만원 이상, SELECT u.user_id , u.nickname, sum(b.price) PRICE from used_goods_board b inner join used_goods_user u on b.WRITER_ID = u.USER_ID group by u.user_id having sum(b.price) >= 700000 and b.status = 'DONE' order by 3 asc 위에는 처음에 내가 생각해낸 코드이다. where절을 없애고 having절에 모든 것을 썼다. 하지만 오류가 발생했다. Unknown column 'b.status' in 'having clause' b.sta..
-
12/27스파르타/TIL(Today I Learned) 2023. 12. 27. 15:44
오전 09~ 10 : 코드카타 풀기 ( 처음부터 다시 풀기 시작해서 20분제 완료) 10:00 ~10:20 : 팀 스크럼 진행 10:20 ~ 13:00 : 코드카타 마저 진행 ( 총 40문제까지 풀기 완료) --- 14:00 ~ 15:00 : SQL 강의 수강 완료 15:00 ~ 20:00 : SQLD 강의 듣기 SQLD를 들으면 간단하게 정리해본다. 우리가 지지고 볶고 여러가지 활용할 수 있게 다루는 데이터. 그 데이터란 무엇인가? 데이터 = 정보이다. ? 어떤 정보도 데이터가 되는가 ? NO 아니다. 저장이나 처리에 효율적인 형태로 변환이 되는 정보 = 데이터 그럼 이 데이터라는것이 왜 중요한가 ???? 전세계의 모든 데이터의 90%가 2015년 이후에 만들어짐 => 생성 속도가 미쳤다. 앞으로는 더..