목록SQL (28)
On the journey of

데이터프레임을 파케이 파일이나 SQL 테이블로 저장하기 parquet_path = … fire_df.write.format(“parquet”).save(parquet_path) # 혹은 하이브 메타스토어에 메타데이터로 등록되는 테이블로 저장 parquet_table = … fire_df.write.format(“parquet”).saveAsTable(parquet_Table) 트랜스포메이션과 액션 칼럼의 구성 확인 (타입 확인, null 값 확인 등) 프로젝션과 필터 프로젝션: 필터를 이용해 특정 관계 상태와 매치되는 행들만 되돌려 주는 방법 select() 메서드로 수행 필터: filter()나 where() 메서드로 표현 few_fire_df = (fire_df .select(“IncidentNumb..

Select_Big Countries Basic Joins_Customer Who Visited but Not Make Any Transactions Basic Joins_Rising Temperature Subqueries_Employees Whose Manager Left the Company 595. Big Countries https://leetcode.com/problems/big-countries/ (아래 첨부) Big Countries - LeetCode Can you solve this real interview question? Big Countries - Table: World +-------------+---------+ | Column Name | Type | +-----------..

프로그래머스에 이어 다시! 리트코드 재개한다 ...... ! 아좌 (...) 1. Big Countries : https://leetcode.com/problems/big-countries/?envType=study-plan-v2&envId=top-sql-50 Big Countries - LeetCode Can you solve this real interview question? Big Countries - Table: World +-------------+---------+ | Column Name | Type | +-------------+---------+ | name | varchar | | continent | varchar | | area | int | | population | int | ..

앱이든 웹이든, 결과물을 위해서는 지속적으로 데이터를 가져올 수 있는 수단이 있어야 한다. 인터넷과 연결하여 크롤링이든 뭐든 해와도 되겠지만, 우리는 '개인화'된 서비스에 초점을 맞추기로 했기에 데이터베이스가 필요했다! 여러 종류가 있겠지만, 우선은 MySQL를 사용하기로 했다 그나마 경험 있는 게 MySQL뿐이라 ^0^... 1. MySQL 설치 : https://dev.mysql.com/downloads/windows/installer/8.0.html : 위 링크에 접속해서 본인 PC 버전에 맞춰 아래 버전(체크된 거) 다운받으면 된다. 저거 download 클릭하면 화면이 아래와 같이 바뀌는데, 로그인/가입 필요없이 그냥 다운 클릭하면 됨 ㅎㅎ 다운 시 installer 프로그램이 다운된다. 이를 ..