{"id":16821,"date":"2023-02-16T06:00:00","date_gmt":"2023-02-15T21:00:00","guid":{"rendered":"https:\/\/www.muscle-hypertrophy.com\/?p=16821"},"modified":"2022-10-19T14:21:36","modified_gmt":"2022-10-19T05:21:36","slug":"%e5%8c%bb%e7%99%82%e6%a9%9f%e9%96%a2%e3%83%86%e3%83%bc%e3%83%96%e3%83%ab%e3%81%ab%e4%ba%8c%e6%ac%a1%e5%8c%bb%e7%99%82%e5%9c%8f%e3%82%b3%e3%83%bc%e3%83%89%e3%82%92%e8%bf%bd%e5%8a%a0%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/www.muscle-hypertrophy.com\/?p=16821","title":{"rendered":"\u533b\u7642\u6a5f\u95a2\u30c6\u30fc\u30d6\u30eb\u306b\u4e8c\u6b21\u533b\u7642\u570f\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3059\u308b"},"content":{"rendered":"\n<p>\u3000\u533b\u7642\u6a5f\u95a2\u30c6\u30fc\u30d6\u30eb\u306b\u306f\u4e8c\u6b21\u533b\u7642\u570f\u30b3\u30fc\u30c9\u304c\u5b58\u5728\u3057\u306a\u3044\uff0e\u305d\u306e\u305f\u3081\uff0c\u3042\u308b\u533b\u7642\u6a5f\u95a2\u304c\u3069\u306e\u4e8c\u6b21\u533b\u7642\u570f\u306b\u5c5e\u3057\u3066\u3044\u308b\u304b\u3092\u8abf\u3079\u308b\u306b\u306f\u7a7a\u9593\u30c7\u30fc\u30bf\u3092\u8abf\u3079\u308b\u5fc5\u8981\u304c\u3042\u308b\uff0e\u7a7a\u9593\u30c7\u30fc\u30bf\u306f\u8a08\u7b97\u30b3\u30b9\u30c8\u304c\u9ad8\u304f\uff0c\u30c6\u30fc\u30d6\u30eb\u306e\u7d50\u5408\u6761\u4ef6\u306b <a href=\"https:\/\/www.muscle-hypertrophy.com\/?p=16189#i-27\" target=\"_blank\" rel=\"noopener\">STWIthin() \u30e1\u30bd\u30c3\u30c9<\/a>\u3092\u4f7f\u3046\u306e\u306f\u6642\u9593\u304c\u304b\u304b\u308b\uff0e\u305d\u306e\u305f\u3081\uff0c\u533b\u7642\u6a5f\u95a2\u30c6\u30fc\u30d6\u30eb\u306b\u4e8c\u6b21\u533b\u7642\u570f\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u3088\u3046\u3068\u8003\u3048\u305f\uff0e<\/p>\n<p><!--more--><\/p>\n<h2>\u6700\u521d\u306b\u533b\u7642\u6a5f\u95a2\u30c6\u30fc\u30d6\u30eb\u3068\u4e8c\u6b21\u533b\u7642\u570f\u30c6\u30fc\u30d6\u30eb\u3092\u7d50\u5408\u3059\u308b<\/h2>\n<p>\u3000\u6700\u521d\u306b\u8003\u3048\u305f\u30af\u30a8\u30ea\u306f\u6b21\u306e\u901a\u308a\uff0e\u5b9f\u884c\u306b\u306f40\u5206\u4ee5\u4e0a\u304b\u304b\u308b\uff0e<\/p>\n<pre>USE\tMedicalAreaDB\nGO\nSELECT\tI.*\n,\tM.A38b_003\nFROM [dbo].[T_Medical_Institution]\tAS I\nINNER JOIN\tdbo.T_MedicalArea2_Dissolved\tAS M\nON\tI.Location.STWithin(M.geog) = 1<\/pre>\n<pre>(181309 \u884c\u51e6\u7406\u3055\u308c\u307e\u3057\u305f)<\/pre>\n<h2>\u6b21\u306b\u533b\u7642\u6a5f\u95a2\u30c6\u30fc\u30d6\u30eb\u306b\u4e8c\u6b21\u533b\u7642\u570f\u30b3\u30fc\u30c9\u5217\u3092\u8ffd\u52a0\u3059\u308b<\/h2>\n<p>\u3000\u533b\u7642\u6a5f\u95a2\u30c6\u30fc\u30d6\u30eb\u3067\u3042\u308b T_Medical_Institute \u306b\u5bfe\u3057\uff0cSQL Server Management Studio \u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u30fc\u4e0a\u3067\u53f3\u30af\u30ea\u30c3\u30af\u3057\uff0c\u300c\u30c7\u30b6\u30a4\u30f3\u300d\u3092\u9078\u3076\uff0e<\/p>\n<figure id=\"attachment_16822\" aria-describedby=\"caption-attachment-16822\" style=\"width: 444px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.muscle-hypertrophy.com\/wp-content\/uploads\/2022\/10\/01-4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-16822\" src=\"https:\/\/www.muscle-hypertrophy.com\/wp-content\/uploads\/2022\/10\/01-4.png\" alt=\"SQL Server Management Studio \u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u30fc\u4e0a\u3067\u53f3\u30af\u30ea\u30c3\u30af\u3057\uff0c\u300c\u30c7\u30b6\u30a4\u30f3\u300d\u3092\u9078\u3076\" width=\"444\" height=\"421\" srcset=\"https:\/\/www.muscle-hypertrophy.com\/wp-content\/uploads\/2022\/10\/01-4.png 444w, https:\/\/www.muscle-hypertrophy.com\/wp-content\/uploads\/2022\/10\/01-4-300x284.png 300w\" sizes=\"auto, (max-width: 444px) 100vw, 444px\" \/><\/a><figcaption id=\"caption-attachment-16822\" class=\"wp-caption-text\">SQL Server Management Studio \u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u30fc\u4e0a\u3067\u53f3\u30af\u30ea\u30c3\u30af\u3057\uff0c\u300c\u30c7\u30b6\u30a4\u30f3\u300d\u3092\u9078\u3076<\/figcaption><\/figure>\n<p>\u3000\u4e0b\u56f3\u306e\u3088\u3046\u306b\u5217\u540d\u306b SecondaryMedicalAreaCode \u3068\u30bf\u30a4\u30d7\u3057\uff0c\u30c7\u30fc\u30bf\u578b\u3092 nchar(4) \u3068\u3059\u308b\uff0e<\/p>\n<figure id=\"attachment_16823\" aria-describedby=\"caption-attachment-16823\" style=\"width: 400px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.muscle-hypertrophy.com\/wp-content\/uploads\/2022\/10\/00-4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-16823\" src=\"https:\/\/www.muscle-hypertrophy.com\/wp-content\/uploads\/2022\/10\/00-4.png\" alt=\"SecondaryMedicalAreaCode \u3068\u30bf\u30a4\u30d7\u3057\uff0c\u30c7\u30fc\u30bf\u578b\u3092 nchar(4) \u3068\u3059\u308b\" width=\"400\" height=\"345\" srcset=\"https:\/\/www.muscle-hypertrophy.com\/wp-content\/uploads\/2022\/10\/00-4.png 400w, https:\/\/www.muscle-hypertrophy.com\/wp-content\/uploads\/2022\/10\/00-4-300x259.png 300w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/a><figcaption id=\"caption-attachment-16823\" class=\"wp-caption-text\">SecondaryMedicalAreaCode \u3068\u30bf\u30a4\u30d7\u3057\uff0c\u30c7\u30fc\u30bf\u578b\u3092 nchar(4) \u3068\u3059\u308b<\/figcaption><\/figure>\n<p>\u3000\u30af\u30a8\u30ea\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u9589\u3058\u308b\u3068\u4fdd\u5b58\u3059\u308b\u3088\u3046\u4fc3\u3055\u308c\u308b\u306e\u3067\u300c\u306f\u3044\u300d\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\uff0e<\/p>\n<h2>\u3055\u3089\u306b\u30af\u30a8\u30ea\u3067UPDATE\u3059\u308b<\/h2>\n<p>\u3000\u4e0b\u8a18\u30af\u30a8\u30ea\u3067\u533b\u7642\u6a5f\u95a2\u30c6\u30fc\u30d6\u30eb T_Medical_Institute \u3092\u66f4\u65b0\u3059\u308b\uff0e\u5b9f\u884c\u306b\u306f43\u5206\u304b\u304b\u3063\u305f\uff0e<\/p>\n<pre>USE\tMedicalAreaDB\nGO\nUPDATE\tI\nSET\tSecondaryMedicalAreaCode = M.A38b_003\nFROM [dbo].[T_Medical_Institution]\tAS I\nINNER JOIN\tdbo.T_MedicalArea2_Dissolved\tAS M\nON\tI.Location.STWithin(M.geog) = 1<\/pre>\n<pre>(181309 \u884c\u51e6\u7406\u3055\u308c\u307e\u3057\u305f)<\/pre>\n<h2>\u7d50\u5408\u6761\u4ef6\u3092\u5909\u66f4\u3057\u3066\u7d50\u679c\u3092\u78ba\u8a8d<\/h2>\n<p>\u3000\u4e0b\u8a18\u30af\u30a8\u30ea\u306e\u3088\u3046\u306b\u7d50\u5408\u6761\u4ef6\u306b\u4e8c\u6b21\u533b\u7642\u570f\u30b3\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u3066\u5b9f\u884c\u3059\u308b\uff0e\u5b9f\u884c\u306b\u306f1\u79d2\u304b\u304b\u3063\u305f\u306e\u307f\uff0e\u52b9\u679c\u306f\u5287\u7684\u3067\u3042\u308b\uff0e<\/p>\n<pre>USE\tMedicalAreaDB\nGO\nSELECT\tI.*\n,\tM.A38b_003\nFROM [dbo].[T_Medical_Institution]\tAS I\nINNER JOIN\tdbo.T_MedicalArea2_Dissolved\tAS M\nON\tI.SecondaryMedicalAreaCode = M.A38b_003<\/pre>\n<h2>\u30dd\u30ea\u30b4\u30f3\u3092\u878d\u5408\u3057\u305f\u4e8c\u6b21\u533b\u7642\u570f\u30c6\u30fc\u30d6\u30eb\u3092\u5143\u306e\u30c6\u30fc\u30d6\u30eb\u3068\u6bd4\u8f03\u3059\u308b<\/h2>\n<p>\u3000\u4ee5\u524d\u306e\u8a18\u4e8b\uff08<a href=\"https:\/\/www.muscle-hypertrophy.com\/?p=16728\" target=\"_blank\" rel=\"noopener\">\u56fd\u571f\u6570\u5024\u60c5\u5831\u306e\u533b\u7642\u570f\u30c7\u30fc\u30bf\u306e\u6587\u5b57\u5316\u3051\u3092\u89e3\u6c7a\u3059\u308b<\/a>\uff09\u3067\u306f\u4e8c\u6b21\u533b\u7642\u570f\u306e\u30dd\u30ea\u30b4\u30f3\u306b\u91cd\u8907\u304c\u3042\u308b\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u4eee\u5b9a\u3057\u3066\u30b8\u30aa\u30e1\u30c8\u30ea\u6570\u3068\u30dd\u30a4\u30f3\u30c8\u6570\u306e\u5206\u5e03\u3092\u793a\u3057\u305f\u304c\uff0c\u6c7a\u5b9a\u7684\u306a\u8a3c\u62e0\u3068\u306f\u306a\u3089\u306a\u304b\u3063\u305f\uff0e\u4eca\u56de\u306f\u3082\u3046\u5c11\u3057\u8e0f\u307f\u8fbc\u3093\u3060\u8b70\u8ad6\u3092\u3057\u3066\u307f\u305f\u3044\uff0e<\/p>\n<p>\u3000\u4e0b\u8a18\u306e\u30af\u30a8\u30ea\u306f\u30dd\u30ea\u30b4\u30f3\u3092\u878d\u5408\u3057\u305f\u4e8c\u6b21\u533b\u7642\u570f\u30c6\u30fc\u30d6\u30eb T_MedicalArea2_Dissobled \u3068\u5143\u306e\u30c6\u30fc\u30d6\u30eb A38-20_2 \u3092\u7d50\u5408\u3057\uff0c\u4e21\u8005\u306e\u6301\u3064 Point \u306e\u7dcf\u6570\u3092\u6bd4\u8f03\u3059\u308b\u3082\u306e\u3067\u3042\u308b\uff0e<\/p>\n<pre>SELECT\tD.A38b_003\n,\tD.geog.STNumPoints()\tAS DissobledNum\n,\tSUM(A.geog.STNumPoints())\tAS IndividualNum\nFROM\tdbo.T_MedicalArea2_Dissolved\tAS D\nINNER\tJOIN\tdbo.[A38-20_2]\tAS A\nON\tD.A38b_003 = A.A38b_003\nGROUP\tBY\tD.A38b_003,\tD.geog.STNumPoints()<\/pre>\n<p>\u3000\u7d50\u679c\u3092\u6563\u5e03\u56f3\u306b\u793a\u3059\uff0e<\/p>\n<figure id=\"attachment_16832\" aria-describedby=\"caption-attachment-16832\" style=\"width: 481px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.muscle-hypertrophy.com\/wp-content\/uploads\/2022\/10\/02-4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-16832\" src=\"https:\/\/www.muscle-hypertrophy.com\/wp-content\/uploads\/2022\/10\/02-4.png\" alt=\"\u30dd\u30ea\u30b4\u30f3\u3092\u878d\u5408\u3057\u305f\u4e8c\u6b21\u533b\u7642\u570f\u30c6\u30fc\u30d6\u30eb\u3068\u5143\u306e\u30c6\u30fc\u30d6\u30eb\u306e\u30dd\u30a4\u30f3\u30c8\u6570\u3092\u6bd4\u8f03\u3059\u308b\" width=\"481\" height=\"475\" srcset=\"https:\/\/www.muscle-hypertrophy.com\/wp-content\/uploads\/2022\/10\/02-4.png 481w, https:\/\/www.muscle-hypertrophy.com\/wp-content\/uploads\/2022\/10\/02-4-300x296.png 300w, https:\/\/www.muscle-hypertrophy.com\/wp-content\/uploads\/2022\/10\/02-4-100x100.png 100w\" sizes=\"auto, (max-width: 481px) 100vw, 481px\" \/><\/a><figcaption id=\"caption-attachment-16832\" class=\"wp-caption-text\">\u30dd\u30ea\u30b4\u30f3\u3092\u878d\u5408\u3057\u305f\u4e8c\u6b21\u533b\u7642\u570f\u30c6\u30fc\u30d6\u30eb\u3068\u5143\u306e\u30c6\u30fc\u30d6\u30eb\u306e\u30dd\u30a4\u30f3\u30c8\u6570\u3092\u6bd4\u8f03\u3059\u308b<\/figcaption><\/figure>\n<p>\u3000\u307b\u307c\u4e00\u76f4\u7dda\u4e0a\u306b\u70b9\u304c\u4e26\u3093\u3067\u3044\u308b\uff0e\u30dd\u30ea\u30b4\u30f3\u306b\u91cd\u8907\u306f\u306a\u304f\uff0c\u56fd\u571f\u306e\u8907\u96d1\u3055\u3086\u3048\u306b\u30dd\u30ea\u30b4\u30f3\u6570\u304c\u591a\u3044\u306e\u3067\u3042\u308b\u3053\u3068\u304c\u307b\u307c\u78ba\u5b9a\u7684\u3067\u3042\u308b\uff0e<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u3000\u533b\u7642\u6a5f\u95a2\u30c6\u30fc\u30d6\u30eb\u306b\u4e8c\u6b21\u533b\u7642\u570f\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u305f\uff0e\u7a7a\u9593\u6f14\u7b97\u306b\u3088\u308b\u7d50\u5408\u3068\u6bd4\u8f03\u3057\u3066\uff0c\u4e8c\u6b21\u533b\u7642\u570f\u30b3\u30fc\u30c9\u306b\u3088\u308b\u7d50\u5408\u306f\u7d50\u5408\u306b\u304b\u304b\u308b\u8a08\u7b97\u52b9\u7387\u304c\u975e\u5e38\u306b\u9ad8\u3044\uff0e<\/p>\n<p>\u3000\u56fd\u571f\u4ea4\u901a\u7701\u306b\u304a\u304b\u308c\u3066\u306f\uff0c\u533b\u7642\u6a5f\u95a2\u30c6\u30fc\u30d6\u30eb\u306b\u6700\u521d\u304b\u3089\u4e8c\u6b21\u533b\u7642\u570f\u30b3\u30fc\u30c9\u3092\u4ed8\u4e0e\u3057\u3066\u304a\u3044\u3066\u3044\u305f\u3060\u304d\u305f\u3044\uff0e<\/p>\n<p>\u3000\u3068\u3053\u308d\u3067\u4e00\u6642\u533b\u7642\u570f\u30c6\u30fc\u30d6\u30eb\u306b\u306f\u4e00\u6b21\u533b\u7642\u570f\u30b3\u30fc\u30c9\u304c\u5b58\u5728\u3057\u306a\u3044\uff0e\u884c\u653f\u533a\u57df\u30b3\u30fc\u30c9\u304c\u305d\u306e\u4ee3\u66ff\u306a\u306e\u3060\u308d\u3046\u304b\uff0e\u3060\u3068\u3059\u308b\u3068\u884c\u653f\u533a\u57df\u30b3\u30fc\u30c9\u3067\u4e00\u6642\u533b\u7642\u570f\u30c6\u30fc\u30d6\u30eb\u3092\u96c6\u7d04\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3068\u306a\u308b\uff0e\u3053\u308c\u306b\u3064\u3044\u3066\u306f\u6b21\u306e\u8ab2\u984c\u3068\u3057\u305f\u3044\uff0e<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3000\u533b\u7642\u6a5f\u95a2\u30c6\u30fc\u30d6\u30eb\u306b\u306f\u4e8c\u6b21\u533b\u7642\u570f\u30b3\u30fc\u30c9\u304c\u5b58\u5728\u3057\u306a\u3044\uff0e\u305d\u306e\u305f\u3081\uff0c\u3042\u308b\u533b\u7642\u6a5f\u95a2\u304c\u3069\u306e\u4e8c\u6b21\u533b\u7642\u570f\u306b\u5c5e\u3057\u3066\u3044\u308b\u304b\u3092\u8abf\u3079\u308b\u306b\u306f\u7a7a\u9593\u30c7\u30fc\u30bf\u3092\u8abf\u3079\u308b\u5fc5\u8981\u304c\u3042\u308b\uff0e\u7a7a\u9593\u30c7\u30fc\u30bf\u306f\u8a08\u7b97\u30b3\u30b9\u30c8\u304c\u9ad8\u304f\uff0c\u30c6\u30fc\u30d6\u30eb\u306e\u7d50\u5408\u6761\u4ef6\u306b STWIthin()  &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.muscle-hypertrophy.com\/?p=16821\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u533b\u7642\u6a5f\u95a2\u30c6\u30fc\u30d6\u30eb\u306b\u4e8c\u6b21\u533b\u7642\u570f\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3059\u308b&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":15391,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[4673,7155,4000,7091,4672,4657,2740,2750,12618,6392,7154,2829,2783,7455,9582,462,1152,2499,7635,12045,4552,5981,9125,12797,4668,3181,7051,333,7956,7181,7783,12031,1782,7117,12575,12920],"class_list":["post-16821","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-resistance-training","tag-from","tag-go","tag-inner-join","tag-nchar","tag-select","tag-set","tag-sql-server","tag-sql-server-management-studio","tag-stwithin","tag-update","tag-use","tag-2829","tag-2783","tag-7455","tag-9582","tag-462","tag-1152","tag-2499","tag-7635","tag-12045","tag-4552","tag-5981","tag-9125","tag-12797","tag-4668","tag-3181","tag-7051","tag-333","tag-7956","tag-7181","tag-7783","tag-12031","tag-1782","tag-7117","tag-12575","tag-12920"],"_links":{"self":[{"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=\/wp\/v2\/posts\/16821","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=16821"}],"version-history":[{"count":17,"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=\/wp\/v2\/posts\/16821\/revisions"}],"predecessor-version":[{"id":16887,"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=\/wp\/v2\/posts\/16821\/revisions\/16887"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=\/wp\/v2\/media\/15391"}],"wp:attachment":[{"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=16821"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=16821"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=16821"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}