You are given a table, Functions, containing two columns: X and Y. Two pairs (X1, Y1) and (X2, Y2) are said to be symmetric pairs if X1 = Y2 and X2 = Y1. Write a query to output all such symmetric pairs in ascending order by the value of X. List the rows such that X1 ≤ Y1. Sample Input Sample Output 20 20 20 21 22 23 SELECT F1.X, F1.Y FROM Functions F1 JOIN Functions F2 ON (F1.X = F2.Y AND F1.Y ..
You are given three tables: Students, Friends and Packages. Students contains two columns: ID and Name. Friends contains two columns: ID and Friend_ID (ID of the ONLY best friend). Packages contains two columns: ID and Salary (offered salary in $ thousands per month). Write a query to output the names of those students whose best friends got offered a higher salary than them. Names must be order..
You are given a table, Projects, containing three columns: Task_ID, Start_Date and End_Date. It is guaranteed that the difference between the End_Date and the Start_Date is equal to 1 day for each row in the table. If the End_Date of the tasks are consecutive, then they are part of the same project. Samantha is interested in finding the total number of different projects completed. Write a query..
요소수는 경유 차량에서 발생하는 발암물질인 질소산화물을 물과 질소로 바꿔주는 성분으로 트럭 등에 의무 장착하는 질소산화물 저감장치(SCR)에 들어가는 필수 품목이다. 화물차가 요소수를 넣지 못하면 출력이 65%까지 떨어져 속도를 내지 못하고, 디젤 승용차도 요소수를 못 넣게 되면 시동이 걸리지 않는다. 최근 중국이 요소수의 원료인 요소의 수출을 제한하면서 요소수의 품귀 현상이 벌어지고 있다. 국내 요소 수입량의 2/3를 차지하는 중국은 석탄 공급이 부족해지자 석탄에서 암모니아를 추출해 만드는 요소에 대해 수출 전 검사를 의무화했다. 요소수 품귀 현상으로 인해 국내에서는 사재기 현상까지 벌어지고 있고 10리터에 1만원 안팎이던 요소수 가격은 최대 10만원까지 치솟은 상태이다. 이로 인해서 해당 관련주들의 ..
- Total
- Today
- Yesterday
- 대원화성
- SQL Server
- 미중무역전쟁
- 리비안
- python3
- list
- 넥스트BT
- MS SQL Server
- mysql
- hackerrank
- 코로나19
- 테슬라
- 해커랭크
- 동국알앤에스
- Weather Observation Station
- TSQL
- 경구치료제
- Tableau
- 에코캡
- 몰누피라비르
- DATABASE
- python
- string
- tensorflow
- 매매일지
- 넷플릭스
- MSSQL
- HK이노엔
- 분석탭
- insert
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |