This document contains 4 SQL queries that are selecting and aggregating data from database tables. The first query is summing the salaries from the RADNIK table excluding two boat numbers. The second query selects the boat number, department name, and location from the ODJELJENJE table where the department name starts with P, D, or A. The third query selects qualifications, minimum salary, and maximum salary from the RADNIK table for two boat numbers grouped by qualification. The fourth query selects jobs, sums the salaries, and orders by the total salary descending from the RADNIK table grouped by job.
This document contains 4 SQL queries that are selecting and aggregating data from database tables. The first query is summing the salaries from the RADNIK table excluding two boat numbers. The second query selects the boat number, department name, and location from the ODJELJENJE table where the department name starts with P, D, or A. The third query selects qualifications, minimum salary, and maximum salary from the RADNIK table for two boat numbers grouped by qualification. The fourth query selects jobs, sums the salaries, and orders by the total salary descending from the RADNIK table grouped by job.
This document contains 4 SQL queries that are selecting and aggregating data from database tables. The first query is summing the salaries from the RADNIK table excluding two boat numbers. The second query selects the boat number, department name, and location from the ODJELJENJE table where the department name starts with P, D, or A. The third query selects qualifications, minimum salary, and maximum salary from the RADNIK table for two boat numbers grouped by qualification. The fourth query selects jobs, sums the salaries, and orders by the total salary descending from the RADNIK table grouped by job.