Skip to content

Commit 19506a8

Browse files
committed
Added project files
1 parent 4160aff commit 19506a8

8 files changed

+1935
-0
lines changed

Project/1_top_paying_jobs.sql

Lines changed: 239 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,239 @@
1+
/*
2+
Question: What are the top-paying data analyst jobs?
3+
- Identify the top 10 highest-paying Data Analyst roles that are available remotely
4+
- Focuses on job postings with specified salaries (remove nulls)
5+
- BONUS: Include company names of top 10 roles
6+
- Why? Highlight the top-paying opportunities for Data Analysts, offering insights into employment options and location flexibility.
7+
*/
8+
9+
SELECT
10+
jpf.job_id,
11+
jpf.job_title,
12+
cd.name AS company_name,
13+
jpf.job_schedule_type,
14+
-- jpf.job_location,
15+
jpf.salary_year_avg AS avg_yearly_salary,
16+
jpf.job_posted_date
17+
FROM
18+
job_postings_fact AS jpf
19+
LEFT JOIN company_dim AS cd
20+
ON jpf.company_id = cd.company_id
21+
WHERE
22+
job_title_short = 'Data Analyst'
23+
AND (job_work_from_home = TRUE OR job_location LIKE '%India%')
24+
AND salary_year_avg IS NOT NULL
25+
ORDER BY
26+
salary_year_avg DESC
27+
LIMIT 10
28+
29+
/*
30+
Here's the result in JSON
31+
[
32+
{
33+
"job_id": 226942,
34+
"job_title": "Data Analyst",
35+
"company_name": "Mantys",
36+
"job_schedule_type": "Full-time",
37+
"job_location": "Anywhere",
38+
"avg_yearly_salary": "650000.0",
39+
"job_posted_date": "2023-02-20 15:13:33"
40+
},
41+
{
42+
"job_id": 547382,
43+
"job_title": "Director of Analytics",
44+
"company_name": "Meta",
45+
"job_schedule_type": "Full-time",
46+
"job_location": "Anywhere",
47+
"avg_yearly_salary": "336500.0",
48+
"job_posted_date": "2023-08-23 12:04:42"
49+
},
50+
{
51+
"job_id": 552322,
52+
"job_title": "Associate Director- Data Insights",
53+
"company_name": "AT&T",
54+
"job_schedule_type": "Full-time",
55+
"job_location": "Anywhere",
56+
"avg_yearly_salary": "255829.5",
57+
"job_posted_date": "2023-06-18 16:03:12"
58+
},
59+
{
60+
"job_id": 99305,
61+
"job_title": "Data Analyst, Marketing",
62+
"company_name": "Pinterest Job Advertisements",
63+
"job_schedule_type": "Full-time",
64+
"job_location": "Anywhere",
65+
"avg_yearly_salary": "232423.0",
66+
"job_posted_date": "2023-12-05 20:00:40"
67+
},
68+
{
69+
"job_id": 1021647,
70+
"job_title": "Data Analyst (Hybrid/Remote)",
71+
"company_name": "Uclahealthcareers",
72+
"job_schedule_type": "Full-time",
73+
"job_location": "Anywhere",
74+
"avg_yearly_salary": "217000.0",
75+
"job_posted_date": "2023-01-17 00:17:23"
76+
},
77+
{
78+
"job_id": 168310,
79+
"job_title": "Principal Data Analyst (Remote)",
80+
"company_name": "SmartAsset",
81+
"job_schedule_type": "Full-time",
82+
"job_location": "Anywhere",
83+
"avg_yearly_salary": "205000.0",
84+
"job_posted_date": "2023-08-09 11:00:01"
85+
},
86+
{
87+
"job_id": 731368,
88+
"job_title": "Director, Data Analyst - HYBRID",
89+
"company_name": "Inclusively",
90+
"job_schedule_type": "Full-time",
91+
"job_location": "Anywhere",
92+
"avg_yearly_salary": "189309.0",
93+
"job_posted_date": "2023-12-07 15:00:13"
94+
},
95+
{
96+
"job_id": 310660,
97+
"job_title": "Principal Data Analyst, AV Performance Analysis",
98+
"company_name": "Motional",
99+
"job_schedule_type": "Full-time",
100+
"job_location": "Anywhere",
101+
"avg_yearly_salary": "189000.0",
102+
"job_posted_date": "2023-01-05 00:00:25"
103+
},
104+
{
105+
"job_id": 1749593,
106+
"job_title": "Principal Data Analyst",
107+
"company_name": "SmartAsset",
108+
"job_schedule_type": "Full-time",
109+
"job_location": "Anywhere",
110+
"avg_yearly_salary": "186000.0",
111+
"job_posted_date": "2023-07-11 16:00:05"
112+
},
113+
{
114+
"job_id": 387860,
115+
"job_title": "ERM Data Analyst",
116+
"company_name": "Get It Recruit - Information Technology",
117+
"job_schedule_type": "Full-time",
118+
"job_location": "Anywhere",
119+
"avg_yearly_salary": "184000.0",
120+
"job_posted_date": "2023-06-09 08:01:04"
121+
}
122+
]
123+
*/
124+
125+
SELECT
126+
jpf.job_id,
127+
jpf.job_title,
128+
cd.name AS company_name,
129+
jpf.job_schedule_type,
130+
jpf.job_location,
131+
jpf.salary_year_avg AS avg_yearly_salary,
132+
jpf.job_posted_date
133+
FROM
134+
job_postings_fact AS jpf
135+
LEFT JOIN company_dim AS cd
136+
ON jpf.company_id = cd.company_id
137+
WHERE
138+
job_title_short = 'Data Analyst'
139+
AND job_location LIKE '%India%'
140+
AND salary_year_avg IS NOT NULL
141+
ORDER BY
142+
salary_year_avg DESC
143+
LIMIT 10
144+
145+
/*
146+
Here's the result in JSON
147+
[
148+
{
149+
"job_id": 1642893,
150+
"job_title": "Staff Applied Research Engineer",
151+
"company_name": "ServiceNow",
152+
"job_schedule_type": "Full-time",
153+
"job_location": "Hyderabad, Telangana, India",
154+
"avg_yearly_salary": "177283.0",
155+
"job_posted_date": "2023-06-28 18:35:45"
156+
},
157+
{
158+
"job_id": 1041666,
159+
"job_title": "Data Architect - Data Migration",
160+
"company_name": "Bosch Group",
161+
"job_schedule_type": "Full-time",
162+
"job_location": "Bengaluru, Karnataka, India",
163+
"avg_yearly_salary": "165000.0",
164+
"job_posted_date": "2023-05-06 20:30:35"
165+
},
166+
{
167+
"job_id": 954793,
168+
"job_title": "Data Architect 2023",
169+
"company_name": "Bosch Group",
170+
"job_schedule_type": "Full-time",
171+
"job_location": "Bengaluru, Karnataka, India",
172+
"avg_yearly_salary": "165000.0",
173+
"job_posted_date": "2023-01-12 13:14:51"
174+
},
175+
{
176+
"job_id": 283661,
177+
"job_title": "Technical Data Architect - Healthcare",
178+
"company_name": "Srijan Technologies",
179+
"job_schedule_type": "Full-time",
180+
"job_location": "Gurugram, Haryana, India",
181+
"avg_yearly_salary": "165000.0",
182+
"job_posted_date": "2023-05-10 22:18:20"
183+
},
184+
{
185+
"job_id": 406320,
186+
"job_title": "Data Architect",
187+
"company_name": "Eagle Genomics Ltd",
188+
"job_schedule_type": "Full-time",
189+
"job_location": "Hyderabad, Telangana, India",
190+
"avg_yearly_salary": "163782.0",
191+
"job_posted_date": "2023-02-07 11:12:39"
192+
},
193+
{
194+
"job_id": 781346,
195+
"job_title": "Data Architect",
196+
"company_name": "Eagle Genomics Ltd",
197+
"job_schedule_type": "Full-time",
198+
"job_location": "Hyderabad, Telangana, India",
199+
"avg_yearly_salary": "163782.0",
200+
"job_posted_date": "2023-07-06 21:12:14"
201+
},
202+
{
203+
"job_id": 456405,
204+
"job_title": "Master Data Analyst",
205+
"company_name": "Vertellus Specialities Inc",
206+
"job_schedule_type": "Full-time",
207+
"job_location": "Indianapolis, IN",
208+
"avg_yearly_salary": "125000.0",
209+
"job_posted_date": "2023-02-20 10:01:56"
210+
},
211+
{
212+
"job_id": 1122921,
213+
"job_title": "Data Analyst",
214+
"company_name": "Elevance Health",
215+
"job_schedule_type": "Full-time",
216+
"job_location": "Indianapolis, IN",
217+
"avg_yearly_salary": "120624.0",
218+
"job_posted_date": "2023-06-30 09:02:31"
219+
},
220+
{
221+
"job_id": 635922,
222+
"job_title": "Business Information Consultant- Provider Data Analytics",
223+
"company_name": "Elevance Health",
224+
"job_schedule_type": "Full-time",
225+
"job_location": "Indianapolis, IN",
226+
"avg_yearly_salary": "120624.0",
227+
"job_posted_date": "2023-07-24 08:02:21"
228+
},
229+
{
230+
"job_id": 1127267,
231+
"job_title": "Data Analyst",
232+
"company_name": "Deloitte",
233+
"job_schedule_type": "Full-time",
234+
"job_location": "Indianapolis, IN",
235+
"avg_yearly_salary": "119328.5",
236+
"job_posted_date": "2023-06-22 08:02:07"
237+
}
238+
]
239+
*/

0 commit comments

Comments
 (0)