- Write a query identifying the type of each record in the TRIANGLES table using its three side lengths. Output one of the following statements for each record in the table:
- Equilateral: It's a triangle with 3 sides of equal length.
- Isosceles: It's a triangle with 2 sides of equal length.
- Scalene: It's a triangle with 3 sides of differing lengths.
- Not A Triangle: The given values of A, B, and C don't form a triangle.
HackerRank SQL Solution - Advanced Select - Type of Triangle
HackerRank SQL Solution - Basic Select - Employee Salaries
- Write a query that prints a list of employee names (i.e.: the name attribute) for employees in Employees having a salary greater than $2000 per month who have been employees for less than 10 months. Sort your result by ascending employee_id.
- The Employee table containing employee data for a company is described as follows:
HackerRank SQL Solution - Basic Select - Employee Names
- Write a query that prints a list of employee names (i.e.: the name attribute) from the Employee table in alphabetical order.
- The Employee table containing employee data for a company is described as follows:
HackerRank SQL Solution - Basic Select - Higher Than 75 Marks
- Query the Name of any student in STUDENTS who scored higher than 75 Marks. Order your output by the last three characters of each name. If two or more students both have names ending in the same last three characters (i.e.: Bobby, Robby, etc.), secondary sort them by ascending ID.
- The STUDENTS table is described as follows:
HackerRank SQL Solution - Basic Select - Weather Observation Station 12
- Query the list of CITY names from STATION that does not start with vowels and do not end with vowels. Your result cannot contain duplicates.
- The STATION table is described as follows:
HackerRank SQL Solution - Basic Select - Weather Observation Station 11
- Query the list of CITY names from STATION that either does not start with vowels or do not end with vowels. Your result cannot contain duplicates.
- The STATION table is described as follows:
HackerRank SQL Solution - Basic Select - Weather Observation Station 10
- Query the list of CITY names from STATION that does not end with vowels. Your result cannot contain duplicates.
- The STATION table is described as follows:
HackerRank SQL Solution - Basic Select - Weather Observation Station 9
- Query the list of CITY names from STATION that does not start with vowels. Your result cannot contain duplicates.
- The STATION table is described as follows:
Subscribe to:
Posts (Atom)
You might also like
Deploy your Django web app to Azure Web App using App Service - F1 free plan
In this post, we will look at how we can deploy our Django app using the Microsoft Azure app service - a free plan. You need an Azure accoun...