본문 바로가기

분류 전체보기35

02 SQL: Basics_Writing Queries (3) (source: Codecademy, https://www.codecademy.com) LIMIT : specify the maximum number of rows the result set will have CASE : create different outputs (usually in the SELECT statement) Each WHEN tests a condition and the following THEN gives us the string if the condition is true The ELSE gives us the string if all the above conditions are false The CASE statement must end with END Rename the whol.. 2023. 2. 11.
02 SQL: Basics_Writing Queries (2) (source: Codecademy, https://www.codecademy.com) BETWEEN : filter the result set within a certain range BETWEEN two letters is not inclusive of the 2nd letter BETWEEN two numbers is inclusive of the 2nd number AND : combine multiple conditions AND operator displays a row if all the conditions are true OR : combine multiple conditions OR operator displays a row if any condition is true ORDER BY :.. 2023. 2. 10.
02 SQL: Basics_Writing Queries (1) (source: Codecademy, https://www.codecademy.com) - 데이터 총 230개 - id, name, genre, year, imdb_rating SELECT name, genre FROM movies; select individual columns by their names AS : rename a column or table using an alias When using AS, the columns are not being renamed in the table. The aliases only appear in the result. - name 부분이 Title 로 바뀜 (결과 부분에서만 그렇게 나타나도록 한 것, 실제로 바뀐 건 아님) DISTINCT : filters .. 2023. 2. 5.
01 Introduction to SQL (source: Codecademy, https://www.codecademy.com) SQL, Structured Query Language What is a Relational Database? A relational database is a type of database. It uses a structure that allows us to identify and access data in relation to another piece of data in the database. Often, data in a relational database is organized into tables. What is a Relational Database Management System (RDBMS)? A rel.. 2023. 2. 4.
독서2. 원씽 ㅇ 의지력의 수명은 정해져 있다. 한정된 자원을 잘 관리해야 한다. 의지력이 바닥나면 우리는 보통 기본값 조건에 의지한다. 여기에서 문제가 발생한다. 의지력이 생겼다가 사라질 수 있다는 사실을 이해하지 못하면 말 그대로 생겼다가 사라지는 것을 그대로 방치하게 된다. 의지와 결의를 가장 중요한 일을 위해 남겨놔야 한다. 의지력이 가장 높을 때 가장 중요한 일을 우선으로 처리해야 한다. 의지력을 떨어뜨리는 행동들 - 새로운 행동 시작하기, 집중을 흐트러뜨리는 것들을 걸러내기, 유혹에 저항하기, 감정을 억누르기, 공격성을 억제하기, 충동을 억누르기, 시험 치르기, 다른 이들에게 좋은 인상을 남기려 애쓰기, 두려움을 극복하기, 원치 않는 일을 하기, 단기적 보상 대신 장기적 보상을 택하기 의지력에 관한 한 타이.. 2023. 2. 3.
[Python1_18] 기본 함수 # 입력함수 data = input("insert string: ") data​ ### 랜덤함수 import random random.randint(1, 10) # 해결의 책 : 질문을 하면 질문에 대한 답변을 해주는 책 # 솔루션을 리스트로 작성 # 질문 입력 받음 # 솔루션의 갯수에 맞게 랜덤한 index 정수 값을 생성 # index에 해당하는 솔루션 리스트의 데이터를 출력 # 솔루션을 리스트로 작성 solutions = [ "무엇을 하던 잘 안 될 것이다.", "생각지도 않게 좋은 일이 생길 것이다.", "무엇을 상상하던 그 이상이다.", ] # 질문 입력 받음 input("질문을 입력하세요 : ") # 솔루션의 갯수에 맞게 랜덤한 index 정수 값을 생성 idx = random.randint(.. 2023. 1. 28.
[Python1_17] 연산자 보호되어 있는 글 입니다. 2023. 1. 24.
[Python1_16] 형변환 보호되어 있는 글 입니다. 2023. 1. 21.
[Python1_15] 튜플 및 딕셔너리 데이터 타입 보호되어 있는 글 입니다. 2023. 1. 18.