SQL - Getting a column from another table to join this query

后端 未结 2 1999
野趣味
野趣味 2021-01-16 20:23

I\'ve got the code below which displays the location_id and total number of antisocial crimes but I would like to get the location_name from a diff

2条回答
  •  佛祖请我去吃肉
    2021-01-16 20:38

    you need to find a relationship between the two tables to link a location to crime. that way you could use a "join" and select the fields from each table you are interested in.

    I suggest taking a step back and reading up on the fundamentals of relational databases. There are many good books out there which is the perfect place to start.

提交回复
热议问题