[SQL 입문부터 활용까지] 2차 과제 (1)
사용한 tool (Rebash) https://redash.io/product/ All the tools to unlock your data Use Redash to connect to any data source (Redshift, BigQuery, MySQL, PostgreSQL, MongoDB and many others), query, visualize and share your data to make your company data driven. redash.io 사용한 DataBase (Northwind) Northwind Database는 Northwind라는 가상의 식품회사에 대한 데이터베이스 입니다. 고객, 상품, 주문, 직원, 발주 등 총 20개의 테이블로 구성되어 있으며, 실제 기업의..
2022. 11. 30.
[SQL][MYSQL] JOIN
테이블 분할 데이터 규모가 커지면 하나의 테이블로 정보를 담으면 너무 복잡해 져서 테이블을 분할하고 테이블 간의 관계성을 부여하는 것이 일반적임. DROP TABLE IF EXISTS student; CREATE TABLE student ( id tinyint(4) NOT NULL, name char(4) NOT NULL, sex enum('남자','여자') NOT NULL, address varchar(50) NOT NULL, distance INT NOT NULL, birthday datetime NOT NULL, PRIMARY KEY (id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; INSERT INTO student VALUES (2, '박재숙', '남자', '서울', ..
2022. 11. 19.