Dashboard Temp Share Shortlinks Frames API

djdj - HTMLify profile

files of /djdj/challange/

Day 1 HackerRank SQl /djdj/challange/day1.sql
56 Views
0 Comments
/*
https://www.hackerrank.com/challenges/
revising-the-select-query/problem
*/

SELECT *
FROM CITY
WHERE population > 100000
Day 10 /djdj/challange/day10.sql
47 Views
0 Comments
/*
https://www.hackerrank.com/challenges/weather-observation-station-5/problem
*/

SELECT CITY, LENGTH(CITY)
FROM STATION
ORDER
Day 11 /djdj/challange/day11.sql
31 Views
0 Comments
/*
https://www.hackerrank.com/challenges/weather-observation-station-6/problem
*/

SELECT DISTINCT CITY
FROM STATION
WHERE CITY
Day 12 /djdj/challange/day12.sql
33 Views
0 Comments
/*
https://www.hackerrank.com/challenges/weather-observation-station-7/problem
*/

SELECT DISTINCT CITY
FROM STATION
WHERE CITY
Day 13 /djdj/challange/day13.sql
40 Views
0 Comments
/*
https://www.hackerrank.com/challenges/weather-observation-station-8/problem
*/

SELECT DISTINCT CITY
FROM STATION
WHERE CITY
Day 14 /djdj/challange/day14.sql
41 Views
0 Comments
/*
https://www.hackerrank.com/challenges/weather-observation-station-9/problem
*/

SELECT DISTINCT CITY
FROM STATION
WHERE CITY
Day 15 /djdj/challange/day15.sql
28 Views
0 Comments
/*
https://www.hackerrank.com/challenges/weather-observation-station-10/problem
*/

SELECT DISTINCT CITY
FROM STATION
WHERE CIT
Day 16 /djdj/challange/day16.sql
31 Views
0 Comments
/*
https://www.hackerrank.com/challenges/weather-observation-station-11/problem
*/

SELECT DISTINCT CITY
FROM STATION
WHERE LEF
Day 17 /djdj/challange/day17.sql
37 Views
0 Comments
/*
https://www.hackerrank.com/challenges/weather-observation-station-12/problem
*/

SELECT DISTINCT CITY
FROM STATION
WHERE LEF
Day 18 /djdj/challange/day18.sql
24 Views
0 Comments
/*
https://leetcode.com/problems/combine-two-tables/description
*/

# Write your MySQL query statement below
Select firstName,
Day 19 /djdj/challange/day19.sql
22 Views
0 Comments
/*
https://leetcode.com/problems/second-highest-salary/
*/

# Write your MySQL query statement below
select
(select distinct
Day 2 /djdj/challange/day2.sql
53 Views
0 Comments
SELECT name
FROM city
WHERE countrycode = 'USA'
AND population > 120000;
Day 20 /djdj/challange/day20.sql
27 Views
0 Comments
/*
https://leetcode.com/problems/employees-earning-more-than-their-managers/description/
*/

# Write your MySQL query statement
Day 21 /djdj/challange/day21.sql
19 Views
0 Comments
# Write your MySQL query statement below
select email from person
group by email
having count(email) > 1;
Day 22 /djdj/challange/day22.sql
27 Views
0 Comments
# Write your MySQL query statement below
select name as Customers from Customers
where id not in(select customerId from Orders);
Day 23 /djdj/challange/day23.sql
25 Views
0 Comments
# Write your MySQL query statement below
delete p1
from Person p1
inner join Person p2
on p1.email = p2.email
where p1.id > p2.i
Day 24 /djdj/challange/day24.sql
16 Views
0 Comments
# Write your MySQL query statement below
SELECT w1.id
FROM Weather w1
JOIN Weather w2
ON DATEDIFF(w1.recordDate, w2.recordDate
Day 25 /djdj/challange/day25.sql
19 Views
0 Comments
# Write your MySQL query statement below
SELECT
player_id,
MIN(event_date) AS first_login
FROM
Activity
GROUP BY
Day 26 /djdj/challange/day26.sql
25 Views
0 Comments
# Write your MySQL query statement below
SELECT name
FROM Employee
WHERE id IN (
SELECT managerId
FROM Employee
WHER
Day 27 /djdj/challange/day27.sql
19 Views
0 Comments
# Write your MySQL query statement below
select name,bonus from employee
left join bonus
on bonus.empId = employee.empId
where b
Day 28 /djdj/challange/day28.sql
21 Views
0 Comments
# Write your MySQL query statement below
select round(sum(tiv_2016),2) as tiv_2016
from Insurance
WHERE
tiv_2015 IN (

Day 29 /djdj/challange/day29.sql
19 Views
0 Comments
# Write your MySQL query statement below
SELECT customer_number FROM Orders
GROUP BY customer_number
ORDER BY COUNT(*) desc limi
Day 3 /djdj/challange/day3.sql
49 Views
0 Comments
SELECT *
FROM city;
Day 30 /djdj/challange/day30.sql
14 Views
0 Comments
# Write your MySQL query statement below
select name,population,area from World
where area >= 3000000 or population >= 25000000;
Day 31 /djdj/challange/day31.sql
15 Views
0 Comments
# Write your MySQL query statement below
select class from courses
group by class
having count(class) >= 5
Day 32 /djdj/challange/day32.sql
21 Views
0 Comments
# Write your MySQL query statement below
SELECT MAX(num) AS num
FROM (
SELECT num
FROM MyNumbers
GROUP BY num
HA
Day 33 /djdj/challange/day33.sql
12 Views
0 Comments
# Write your MySQL query statement below
select * from cinema
where id % 2 = 1 and description != 'boring' order by rating desc;
Day 34 /djdj/challange/day34.sql
14 Views
0 Comments
# Write your MySQL query statement below
update salary set sex = replace('m',sex,'f');
Day 35 /djdj/challange/day35.sql
14 Views
0 Comments
# Write your MySQL query statement below
SELECT customer_id
FROM Customer
GROUP BY customer_id
HAVING COUNT(DISTINCT product_key
Day 36 /djdj/challange/day36.sql
8 Views
0 Comments
# Write your MySQL query statement below
select actor_id,director_id from ActorDirector
group by actor_id, director_id
Having c
Day 37 /djdj/challange/day37.sql
5 Views
0 Comments
# Write your MySQL query statement below
select product_name, year, price
from Sales
inner join Product
where Sales.product_i
Day 38 /djdj/challange/day38.sql
6 Views
0 Comments
# Write your MySQL query statement below
select distinct p.project_id, Round(AVG(e.experience_years), 2) AS average_years
from
Day 39 /djdj/challange/day39.sql
5 Views
0 Comments
# Write your MySQL query statement below
select distinct author_id as id
from Views
where author_id = viewer_id
order by id a
Day 4 /djdj/challange/day4.sql
44 Views
0 Comments
SELECT *
FROM city
WHERE id = '1661';
Day 40 /djdj/challange/day40.sql
3 Views
0 Comments
# Write your MySQL query statement below
select
p.product_id,
round(coalesce(sum(p.price * u.units) / sum(u.units),0), 2) a
Day 5 /djdj/challange/day5.sql
34 Views
0 Comments
SELECT *
FROM city
WHERE countrycode = 'JPN';
Day 6 /djdj/challange/day6.sql
37 Views
0 Comments
SELECT name
FROM city
WHERE countrycode = 'JPN';
Day 7 /djdj/challange/day7.sql
47 Views
0 Comments
/*
https://www.hackerrank.com/challenges/weather-observation-station-3/problem
*/

SELECT DISTINCT city
FROM station
WHERE MOD
Day 8 /djdj/challange/day8.sql
58 Views
0 Comments
/*
https://www.hackerrank.com/challenges/weather-observation-station-1/problem
*/

SELECT city, state
FROM station;
Day 9 /djdj/challange/day9.sql
33 Views
0 Comments
/*
https://www.hackerrank.com/challenges/weather-observation-station-4/problem
*/

SELECT COUNT(city) - COUNT(DISTINCT CITY)
FR