상세 컨텐츠

본문 제목

DataCamp SQL_06 entity relationship diagram

카테고리 없음

by 천승원 2022. 1. 6. 10:49

본문

 

Read an entity relationship diagram

The information you need is sometimes split across multiple tables in the database.

What is the most common stackoverflow, tag_type? What companies have a tag of that type?

To generate a list of such companies, you'll need to join three tables together.

Reference the entity relationship diagram as needed when determining which columns to use when joining tables.

 

 

-- Count the number of tags with each type
SELECT typecount(*AS count
  FROM tag_type
  GROUP BY type
  ORDER BY count ASC

 

댓글 영역