Oracle(4)
-
HackerRank - Weather Observation Station 15
Prepare - SQL - AggregationWeather - Observation Station 15 Query the Western Longitude (LONG_W) for the largest Northern Latitude (LAT_N) in STATION that is less than 137.2345 . Round your answer to decimal places.Input FormatThe STATION table is described as follows:where LAT_N is the northern latitude and LONG_W is the western longitude.문제는 LAT_N이 137.2345 보다 작은 것들 중에서 가장 큰 LONG_W를 뽑아서 보여주는 ..
2024.12.18 -
[HackerRank] Oracle - New Companies
혼자 풀었는가? group by 찾아보면서 해서 애매함..해설은 안 봄 Amber's conglomerate corporation just acquired some new companies. Each of the companies follows this hierarchy: Given the table schemas below, write a query to print the company_code, founder name, total number of lead managers, total number of senior managers, total number of managers, and total number of employees. Order your output by ascending compan..
2024.11.21 -
[HackerRank] Oracle - Binary Tree Nodes
혼자 풀었는가 ? XYou are given a table, BST, containing two columns: N and P, where N represents the value of a node in Binary Tree, and P is the parent of N.Write a query to find the node type of Binary Tree ordered by the value of the node. Output one of the following for each node:Root: If node is root node.Leaf: If node is leaf node.Inner: If node is neither root nor leaf node.Sample InputSample O..
2024.11.20 -
[HackerRank] Oracle - Occupations
[문제 및 예시 ]Pivot the Occupation column in OCCUPATIONS so that each Name is sorted alphabetically and displayed underneath its corresponding Occupation. The output column headers should be Doctor, Professor, Singer, and Actor, respectively.Note: Print NULL when there are no more names corresponding to an occupation.Input FormatThe OCCUPATIONS table is described as follows:Occupation will only cont..
2024.11.20