Skip to content

Commit 5620e3b

Browse files
committed
Add more SQL solutions for Basic Select
1 parent d9277e9 commit 5620e3b

File tree

6 files changed

+15
-1
lines changed

6 files changed

+15
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div align="center">
22
<img src="https://github.com/alexprut/HackerRank/raw/master/hackerrank-logo.png" width="450" height="auto"/>
33

4-
[![Solutions](https://img.shields.io/badge/solutions-423-green.svg?style=flat-square)](https://github.com/alexprut/HackerRank#table-of-contents)
4+
[![Solutions](https://img.shields.io/badge/solutions-428-green.svg?style=flat-square)](https://github.com/alexprut/HackerRank#table-of-contents)
55
[![Languages](https://img.shields.io/badge/languages-c%2B%2B%2Cjava%2Chaskell-yellow.svg)](https://github.com/alexprut/HackerRank#table-of-contents)
66
[![Author](https://img.shields.io/badge/author-alexprut-brightgreen.svg?style=flat-square)](https://www.hackerrank.com/alexprut)
77
[![MIT](https://img.shields.io/dub/l/vibe-d.svg?style=flat-square)](https://github.com/alexprut/HackerRank/blob/master/LICENSE)
@@ -532,6 +532,11 @@ platform tests of a given problem.
532532
|Basic Select|[Weather Observation Station 7](https://www.hackerrank.com/challenges/weather-observation-station-7)|Easy|10|[Solution.txt](Sql/Basic%20Select/Weather%20Observation%20Station%207/Solution.txt)|
533533
|Basic Select|[Weather Observation Station 8](https://www.hackerrank.com/challenges/weather-observation-station-8)|Easy|15|[Solution.txt](Sql/Basic%20Select/Weather%20Observation%20Station%208/Solution.txt)|
534534
|Basic Select|[Weather Observation Station 9](https://www.hackerrank.com/challenges/weather-observation-station-9)|Easy|10|[Solution.txt](Sql/Basic%20Select/Weather%20Observation%20Station%209/Solution.txt)|
535+
|Basic Select|[Weather Observation Station 11](https://www.hackerrank.com/challenges/weather-observation-station-11)|Easy|15|[Solution.txt](Sql/Basic%20Select/Weather%20Observation%20Station%2011/Solution.txt)|
536+
|Basic Select|[Weather Observation Station 12](https://www.hackerrank.com/challenges/weather-observation-station-12)|Easy|15|[Solution.txt](Sql/Basic%20Select/Weather%20Observation%20Station%2012/Solution.txt)|
537+
|Basic Select|[Higher Than 75 Marks](https://www.hackerrank.com/challenges/more-than-75-marks)|Easy|15|[Solution.txt](Sql/Basic%20Select/Higher%20Than%2075%20Marks/Solution.txt)|
538+
|Basic Select|[Employee Names](https://www.hackerrank.com/challenges/name-of-employees)|Easy|10|[Solution.txt](Sql/Basic%20Select/Employee%20Names/Solution.txt)|
539+
|Basic Select|[Employee Salaries](https://www.hackerrank.com/challenges/salary-of-employees)|Easy|10|[Solution.txt](Sql/Basic%20Select/Employee%20Salaries/Solution.txt)|
535540

536541
License
537542
=======
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
select name from employee order by name
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
select name from employee where months < 10 and salary > 2000 order by employee_id
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SELECT NAME FROM STUDENTS WHERE MARKS > 75 ORDER BY right(NAME, 3), ID ASC
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
select distinct city from station
2+
where left(city,1) not in ('a','e','i','o','u')
3+
or right(city, 1) not in ('a','e','i','o','u')
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
select distinct city from station
2+
where left(city,1) not in ('a','e','i','o','u')
3+
and right(city, 1) not in ('a','e','i','o','u')

0 commit comments

Comments
 (0)