What is Schema? A description of how data is organized in a database and the relationships between different entities. Entity? An Entity is a unique unit of information. It can be represented as a table in the database. Field? There are Fields that describe the properties of an Entity. Field corresponds to Column. (필드는 열에 해당됩니다.) Record? Items stored in Table. Record corresponds to Row. If Column has Country, Row has South Korea, Japan, America, etc....
SQL Introduction A database language used by relational databases. MySQL, Oracle, PostgreSQL, etc. Can send query to the database to get or insert the data. SQL requires a fixed data structure. Unlike SQL, database which the structure of data is not fixed is NoSQL. Database like MongoDB is called NoSQL. > What is Query? Question to filter data. Basic query Basic grammar required to use SQL Select Where And, Or, Not Order By Insert Into Null Val
배열 연산자 $elemMatch(projection) $elemMatch(query) Document에 너무 많은 필드와 정보가 있을 때 정보를 확인하기 어려울 때가 있습니다. 이를 완화하기 위해 find 쿼리에 프로젝션을 추가해 현재 관심있는 필드만 결과로 가져올 수 있습니다. $elemMatch(projection) - 원하는 필드만 가져오자! 데이터베이스에서 조건에 해당하는 Document를 찾고 특정 필드만 결과에 포함하는 쿼리입니다. ex) address와 price필드만 결과로 가져올 수 있도록 find쿼리의 첫 번째 인자에서 찾으려는 Document 조건이 옵니다. 두 번째 인자로 우리가 찾고 있는 필드를 구체적으로 설명하는 projection입니다. projection 문법에서의 0과 1 프로젝션을 사용할 때, 0 과 1을 사용해 결과에서 표시하거나 표시하지 않을 필드를 지정할
Schema and Query Design Schema란? 스키마(Schema)는 데이터베이스에서 데이터가 구성되는 방식과 서로 다른 엔티티 간의 관계에 대한 설명입니다. (데이터베이스의 청사진) Entity(엔티티) 고유한 정보의 단위입니다. (내 기준으로는 models)와 같은 느낌..?) 엔티티는 데이터베이스에서 테이블로 표시할 수 있습니다. Field(필드) 각 엔티티에는 특성을 설명하는 필드가 있고 열에 해당됩니다. 테이블에 저장된 모든 항목에는 해당 필드가 포함됩니다. record(레코드) 행렬에서의 행이라고 볼 수 있습니다. 하나의 레코드(행)은 테이블에 저장된 항목입니다. 데이터베이스 설계 관계형 데이터베이스 구조화된 데이터는 하나의 테이블로 표현할 수 있습니다. 데이터: 각 항목에 저장되는 값입니다. 테이블: 사전에 정의된 열의 데이터 타입대로 작성된 데