How to avoid nested SQL query in this case?
问题 I have an SQL question, related to this and this question (but different). Basically I want to know how I can avoid a nested query. Let's say I have a huge table of jobs ( jobs ) executed by a company in their history. These jobs are characterized by year, month, location and the code belonging to the tool used for the job. Additionally I have a table of tools ( tools ), translating tool codes to tool descriptions and further data about the tool. Now they want a website where they can select