-
Notifications
You must be signed in to change notification settings - Fork 0
/
1_top_paying_jobs.sql
41 lines (34 loc) · 1.24 KB
/
1_top_paying_jobs.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
Question: What are the top-paying Data Analyst & Business Analyst jobs?
— Identify the top 10 highest-paying Data Analyst & Business Analyst roles.
— Focuses on job postings with specified salaries that are available in the EU.
— Why? Aims to highlight the top-paying opportunities for Data Analyst & Business Analysts,
offering insights into employment options and location flexibility.
*/
SELECT
job_id,
job_title,
job_title_short,
name AS company_name,
job_location,
salary_year_avg,
job_schedule_type,
job_posted_date
FROM
job_postings_fact
LEFT JOIN company_dim
ON job_postings_fact.company_id = company_dim.company_id
WHERE
job_title_short IN ('Data Analyst','Business Analyst') AND
job_location LIKE ANY (ARRAY[
'%Austria%', '%Belgium%', '%Bulgaria%', '%Croatia%', '%Cyprus%',
'%Czech Republic%', '%Denmark%', '%Estonia%', '%Finland%', '%France%',
'%Germany%', '%Greece%', '%Hungary%', '%Ireland%', '%Italy%',
'%Latvia%', '%Lithuania%', '%Luxembourg%', '%Malta%', '%Netherlands%',
'%Poland%', '%Portugal%', '%Romania%', '%Slovakia%', '%Slovenia%',
'%Spain%', '%Sweden%'
]) AND
salary_year_avg IS NOT NULL
ORDER BY
salary_year_avg DESC
LIMIT 10;