Inner join with using || SQL

Inner join with using || SQL

When joining tables with a common field name, e.g.

No alt text provided for this image

You can use?USING?as a shortcut:

No alt text provided for this image

You'll now explore how this can be done with the?countries?and?languages?tables.

Example :

  • Inner join?countries?on the left and?languages?on the right with?USING(code).?
  • Select the fields corresponding to:
  • country name?AS country,
  • continent name,
  • language name?AS language, and
  • whether or not the language is official.

Remember to alias your tables using the first letter of their names.

The solution :

No alt text provided for this image

要查看或添加评论,请登录

Ahmed Khaleel的更多文章

社区洞察

其他会员也浏览了