You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.1 KiB

  1. SQL practices
  2. ===
  3. ### ToC
  4. - [Practice 1](#practice-1)
  5. - [Practice 2](#practice-2)
  6. - [Practice 3](#practice-3)
  7. # Practice 1
  8. - Count the number of subordinate 'ENTERPRISE\_CUSTOMER' organizations for each organization.
  9. # Practice 2
  10. - Calculate the center of each `japan_segment`.
  11. # Practice 3
  12. - Select `japan_segments` within the bounds represented as the following GeoJSON.
  13. ```json
  14. {
  15. "type": "FeatureCollection",
  16. "features": [
  17. {
  18. "type": "Feature",
  19. "properties": {},
  20. "geometry": {
  21. "type": "Polygon",
  22. "coordinates": [
  23. [
  24. [
  25. 130.27313232421875,
  26. 30.519681272749402
  27. ],
  28. [
  29. 131.02020263671875,
  30. 30.519681272749402
  31. ],
  32. [
  33. 131.02020263671875,
  34. 30.80909017893796
  35. ],
  36. [
  37. 130.27313232421875,
  38. 30.80909017893796
  39. ],
  40. [
  41. 130.27313232421875,
  42. 30.519681272749402
  43. ]
  44. ]
  45. ]
  46. }
  47. }
  48. ]
  49. }
  50. ```
  51. ![Kagoshima segments](./img/kagoshima_segments.png)