{"id":16799,"date":"2023-02-09T06:00:00","date_gmt":"2023-02-08T21:00:00","guid":{"rendered":"https:\/\/www.muscle-hypertrophy.com\/?p=16799"},"modified":"2022-10-18T08:55:35","modified_gmt":"2022-10-17T23:55:35","slug":"sql-server-management-studio%e3%81%ae%e7%a9%ba%e9%96%93%e7%b5%90%e6%9e%9c%e3%82%bf%e3%83%96%e3%81%ab%e8%a1%a8%e7%8f%be%e3%81%a7%e3%81%8d%e3%82%8b%e4%b8%8a%e9%99%90%e3%81%a8%e3%81%af","status":"publish","type":"post","link":"https:\/\/www.muscle-hypertrophy.com\/?p=16799","title":{"rendered":"SQL Server Management Studio\u306e\u7a7a\u9593\u7d50\u679c\u30bf\u30d6\u306b\u8868\u73fe\u3067\u304d\u308b\u4e0a\u9650\u3068\u306f"},"content":{"rendered":"\n<p>\u3000SQL Server Management Studio \u306e\u7a7a\u9593\u7d50\u679c\u30bf\u30d6\u306b\u8868\u73fe\u3067\u304d\u308b\u30b8\u30aa\u30e1\u30c8\u30ea\u306b\u306f\u4f55\u3089\u304b\u306e\u5236\u7d04\u304c\u3042\u308b\uff0e\u305d\u306e\u95be\u5024\u306f\u4f55\u3067\u6c7a\u307e\u308a\uff0c\u305d\u306e\u5024\u306f\u3044\u304f\u3064\u306a\u306e\u3060\u308d\u3046\u304b\uff0eMedicalAreaDB\u3092\u4f7f\u3063\u3066\u691c\u8a3c\u3057\u3066\u307f\u305f\uff0e<\/p>\n<p><!--more--><\/p>\n<h2>\u30dd\u30ea\u30b4\u30f31\u500b\u3042\u305f\u308a\u306e\u30dd\u30a4\u30f3\u30c8\u6570\u306e\u4e0a\u9650\u306f10\u4e07\u500b\uff1f<\/h2>\n<h3>\u6839\u5ba4\u533b\u7642\u570f\u306eNumPoints()\u30e1\u30bd\u30c3\u30c9\u306e\u8fd4\u308a\u5024<\/h3>\n<p>\u3000\u304d\u3063\u304b\u3051\u306f\u5317\u6d77\u9053\u306e\u6839\u5ba4\u533b\u7642\u570f\u3092\u8868\u73fe\u3067\u304d\u306a\u304b\u3063\u305f\u3053\u3068\u3067\u3042\u308b\uff0eSQL Server \u306b\u306f\u30b8\u30aa\u30e1\u30c8\u30ea\u306e\u5f62\u72b6\u3092\u7dad\u6301\u3057\u305f\u307e\u307e\u30dd\u30ea\u30b4\u30f3\u306e\u30dd\u30a4\u30f3\u30c8\u6570\u3092\u6e1b\u3089\u3059 <a href=\"https:\/\/www.muscle-hypertrophy.com\/?p=16118#i-23\" target=\"_blank\" rel=\"noopener\">Reduce() \u30e1\u30bd\u30c3\u30c9<\/a>\u304c\u5b58\u5728\u3059\u308b\uff0e\u305d\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u9069\u7528\u3057\u305f\u3068\u3053\u308d\uff0c\u8868\u73fe\u3067\u304d\u306a\u304b\u3063\u305f\u6839\u5ba4\u533b\u7642\u570f\u304c\u8868\u793a\u3067\u304d\u305f\uff0e\u6839\u5ba4\u533b\u7642\u570f\u306e\u5143\u306e\u30dd\u30a4\u30f3\u30c8\u6570\u306f10\u4e07\u3092\u8d85\u3048\u308b\uff0eReduce(1) \u30e1\u30bd\u30c3\u30c9\u3092\u9069\u7528\u3059\u308b\u3068\u7d046\u4e07\u306b\u6e1b\u308b\uff0e\u9055\u3044\u306f\u30dd\u30a4\u30f3\u30c8\u306e\u6570\u306a\u306e\u304b\u3082\u3057\u308c\u306a\u3044\uff0e<\/p>\n<h3>\u30dd\u30a4\u30f3\u30c8\u6570\u3067\u5927\u307e\u304b\u306b\u5207\u308a\u5206\u3051\u308b<\/h3>\n<p>\u3000\u8272\u3005\u8a66\u884c\u932f\u8aa4\u3057\u305f\u672b\uff0c\u4e0b\u8a18\u30af\u30a8\u30ea\u306b\u305f\u3069\u308a\u7740\u3044\u305f\uff0e<\/p>\n<pre>SELECT\tgeog.STGeometryType() AS GeometryType\n,\tgeog.STNumPoints() AS NumPoints\n,\tgeog.Reduce(1).STNumPoints()\tAS ReducedNumPoints\n,\tgeog\nFROM dbo.T_MedicalArea2_Dissolved AS M\nWHERE\tgeog.STNumPoints() BETWEEN 100000 AND 1000000\nORDER\tBY\tgeog.STNumPoints() DESC<\/pre>\n<p>\u3000\u7d50\u679c\u306f\u4ee5\u4e0b\u3067\u3042\u308b\uff0e<\/p>\n<pre>(26 \u884c\u51e6\u7406\u3055\u308c\u307e\u3057\u305f)<\/pre>\n<p>\u3000\u3057\u304b\u3057\uff0c\u7a7a\u9593\u7d50\u679c\u30bf\u30d6\u306b\u306f\u4f55\u3082\u8868\u793a\u3055\u308c\u306a\u3044\uff0eBETWEEN \u53e5\u306e\u7bc4\u56f2\u3092\u4e00\u6841\u305a\u3064\u6e1b\u3089\u3059\uff0e<\/p>\n<pre>SELECT\tgeog.STGeometryType() AS GeometryType\n,\tgeog.STNumPoints() AS NumPoints\n,\tgeog.Reduce(1).STNumPoints()\tAS ReducedNumPoints\n,\tgeog\nFROM dbo.T_MedicalArea2_Dissolved AS M\nWHERE\tgeog.STNumPoints() BETWEEN 10000 AND 100000\nORDER\tBY\tgeog.STNumPoints() DESC<\/pre>\n<pre>(173 \u884c\u51e6\u7406\u3055\u308c\u307e\u3057\u305f)<\/pre>\n<p>\u3000\u7a7a\u9593\u7d50\u679c\u30bf\u30d6\u306b\u306f11\u4ef6\u8868\u793a\u3055\u308c\u308b\uff0e\u3069\u3046\u3084\u3089\u30dd\u30a4\u30f3\u30c8\u65701\u4e07\u306810\u4e07\u306e\u9593\u306b\u95be\u5024\u304c\u3042\u308a\u305d\u3046\u3060\uff0e<\/p>\n<h3>\u30dd\u30ea\u30b4\u30f3\u3092\u4e00\u3064\u305a\u3064\u691c\u8a3c\u3059\u308b<\/h3>\n<p>\u3000\u305d\u306e\u5f8c\uff0c\u66f4\u306b\u30af\u30a8\u30ea\u3092\u5909\u66f4\u3057\u3066\u4e0b\u8a18\u306e\u3088\u3046\u306b\u3057\u3066\u307f\u305f\uff0e<\/p>\n<pre>SELECT\tTOP 30\tM.A38b_003\n,\tM.A38b_004\n,\tgeog.STNumPoints() AS NumPoints\n,\tgeog\nFROM dbo.T_MedicalArea2_Dissolved AS M\nORDER\tBY\tNumPoints DESC<\/pre>\n<p>\u3000\u7d50\u679c\u306f\u4ee5\u4e0b\u306e\u901a\u308a\uff0e<\/p>\n<pre>0409\t\u77f3\u5dfb\u30fb\u767b\u7c73\u30fb\u6c17\u4ed9\u6cbc\t531130\n2403\t\u5357\u52e2\u5fd7\u6469\t381462\n1313\t\u5cf6\u3057\u3087\t354724\n0307\t\u5bae\u53e4\t291525\n2201\t\u8cc0\u8302\t254700\n4202\t\u4f50\u4e16\u4fdd\u770c\u5317\t222537\n3603\t\u5357\u90e8\t200646\n4201\t\u9577\u5d0e\t196932\n4612\t\u5944\u7f8e\t188285\n3007\t\u65b0\u5bae\t166430\n3806\t\u5b87\u548c\u5cf6\t161481\n2404\t\u6771\u7d00\u5dde\t159823\n4705\t\u516b\u91cd\u5c71\t154497\n0305\t\u6c17\u4ed9\t149441\n0306\t\u91dc\u77f3\t143146\n4209\t\u5bfe\u99ac\t132163\n4208\t\u58f1\u5c90\t130835\n2808\t\u4f46\u99ac\t127599\n0308\t\u4e45\u6148\t125225\n3803\t\u4eca\u6cbb\t122840\n4206\t\u4e94\u5cf6\t118297\n4207\t\u4e0a\u4e94\u5cf6\t113142\n0504\t\u79cb\u7530\u5468\u8fba\t109414\n0121\t\u6839\u5ba4\t106850\n4611\t\u718a\u6bdb\t101434\n1804\t\u5dba\u5357\t100877\n4311\t\u5929\u8349\t98571\n0105\t\u5f8c\u5fd7\t98361\n4605\t\u5ddd\u85a9\t96212\n4001\t\u798f\u5ca1\u30fb\u7cf8\u5cf6\t95433<\/pre>\n<p>\u3000\u4e8c\u6b21\u533b\u7642\u570f\u30b3\u30fc\u30c9 1804 \u3068 4311 \u306e\u9593\u3067\u30dd\u30a4\u30f3\u30c8\u6570\u304c 10 \u4e07\u3092\u5207\u3063\u3066\u3044\u308b\uff0e\u6b21\u306e\u30af\u30a8\u30ea\u3092\u5b9f\u884c\u3057\u3066\uff0c\u4e0a\u304b\u3089\u9806\u306b\u7a7a\u9593\u7d50\u679c\u30bf\u30d6\u306b\u30dd\u30ea\u30b4\u30f3\u304c\u8868\u73fe\u3055\u308c\u308b\u304b\u78ba\u8a8d\u3057\u3066\u3044\u304f\uff0e**** \u306b\u306f\u4e8c\u6b21\u533b\u7642\u570f\u30b3\u30fc\u30c9\u3092\u6307\u5b9a\u3059\u308b\uff0e<\/p>\n<pre>SELECT\tM.A38b_003\n,\tM.A38b_004\n,\tgeog.STNumPoints() AS NumPoints\n,\tgeog\nFROM dbo.T_MedicalArea2_Dissolved AS M\nWHERE\tM.A38b_003 = ****<\/pre>\n<p>\u3000\u7d50\u679c\u306f\u30dd\u30a4\u30f3\u30c8\u657010\u4e07\u500b\u3092\u5883\u306b\u7a7a\u9593\u7d50\u679c\u30bf\u30d6\u306b\u30dd\u30ea\u30b4\u30f3\u304c\u8868\u73fe\u3055\u308c\u308b\u304b\u5426\u304b\uff0c\u6c7a\u307e\u308b\u3088\u3046\u3067\u3042\u308b\u304c\uff0c\u53b3\u5bc6\u306a\u95be\u5024\u306f\u5206\u304b\u3089\u306a\u304b\u3063\u305f\uff0e<\/p>\n<h2>\u7dcf\u6570100\u4e07\u30dd\u30a4\u30f3\u30c8\u304c\u4e0a\u9650\uff1f<\/h2>\n<p>\u3000\u30dd\u30ea\u30b4\u30f3\u4e00\u3064\u3042\u305f\u308a\u306e\u30dd\u30a4\u30f3\u30c8\u6570\u3068\u306f\u5225\u306b\uff0c\u7a7a\u9593\u7d50\u679c\u30bf\u30d6\u5168\u4f53\u3067\u306e\u30dd\u30a4\u30f3\u30c8\u7dcf\u6570\u306b\u3082\u4e0a\u9650\u304c\u3042\u308b\u306e\u304b\u3082\u3057\u308c\u306a\u3044\uff0e<\/p>\n<pre>SELECT\tM.A38b_003\n,\tM.A38b_004\n,\tgeog.STNumPoints() AS NumPoints\n,\tgeog\nFROM dbo.T_MedicalArea2_Dissolved AS M\nWHERE\tgeog.STNumPoints() &lt; 100000<\/pre>\n<pre>(309 \u884c\u51e6\u7406\u3055\u308c\u307e\u3057\u305f)<\/pre>\n<p>\u3000\u7a7a\u9593\u7d50\u679c\u30bf\u30d6\u306b\u306f\u300c\u8868\u793a\u3059\u308b\u7a7a\u9593\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u591a\u3059\u304e\u308b\u305f\u3081\uff0c\u6700\u521d\u306e33\u500b\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u307e\u3059\uff0e\u30af\u30a8\u30ea\u3092\u4fee\u6b63\u3057\u3066\u304f\u3060\u3055\u3044\uff0e\u300d\u3068\u8868\u793a\u3055\u308c\u308b\uff0e\u6700\u521d\u306e33\u500b\u306b\u6ce8\u76ee\u3059\u308b\uff0e\u7d50\u679c\u306e NumPoint \u5217\u3092Excel\u306b\u30b3\u30d4\u30da\u3057\u3066\u6700\u521d\u306e33\u30bb\u30eb\u3092\u5408\u8a08\u3059\u308b\u3068 986000 \u3067\u3042\u308b\uff0e<\/p>\n<p>\u3000\u6b21\u306b SELECT \u53e5\u306e geog \u3092 geog.Reduce(1) \u3068\u7f6e\u63db\u3057\u3066\u5b9f\u884c\u3057\uff0c\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u6570\u3060\u3051 NumPoints \u3092\u5408\u8a08\u3059\u308b\uff0e\u3055\u3089\u306b Reduce() \u30e1\u30bd\u30c3\u30c9\u306e\u5f15\u6570 (Tolerance) \u3092 2, 3, &#8230; \u3068\u5897\u3084\u3057\u540c\u69d8\u306e\u624b\u9806\u3092\u7e70\u308a\u8fd4\u3059\uff0e\u5f15\u6570 (Tolerance) \u304c 7 \u306b\u9054\u3057\u305f\u6642\u70b9\u3067\u8868\u73fe\u4ef6\u6570\u304c301 \u4ef6\u3068\u982d\u6253\u3061\u306b\u306a\u3063\u305f\u305f\u3081\uff0c\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u3092\u305d\u3053\u3067\u7d42\u4e86\u3057\u305f\uff0e<\/p>\n<p>\u3000\u7d50\u679c\u3092\u30b0\u30e9\u30d5\u306b\u793a\u3059\uff0e\u304a\u305d\u3089\u304f100\u4e07\u304c\u4e0a\u9650\u3068\u601d\u308f\u308c\u308b\u304c\uff0c\u30c7\u30fc\u30bf\u304c\u5c11\u306a\u304f\u78ba\u8a3c\u304c\u6301\u3066\u306a\u3044\uff0e<\/p>\n<figure id=\"attachment_16811\" aria-describedby=\"caption-attachment-16811\" style=\"width: 480px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.muscle-hypertrophy.com\/wp-content\/uploads\/2022\/10\/11-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-16811\" src=\"https:\/\/www.muscle-hypertrophy.com\/wp-content\/uploads\/2022\/10\/11-2.png\" alt=\"SQL Server Management Studio\u3067\u8868\u73fe\u3067\u304d\u308bPoint\u306e\u7dcf\u6570\" width=\"480\" height=\"475\" srcset=\"https:\/\/www.muscle-hypertrophy.com\/wp-content\/uploads\/2022\/10\/11-2.png 480w, https:\/\/www.muscle-hypertrophy.com\/wp-content\/uploads\/2022\/10\/11-2-300x297.png 300w, https:\/\/www.muscle-hypertrophy.com\/wp-content\/uploads\/2022\/10\/11-2-100x100.png 100w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/a><figcaption id=\"caption-attachment-16811\" class=\"wp-caption-text\">SQL Server Management Studio\u3067\u8868\u73fe\u3067\u304d\u308bPoint\u306e\u7dcf\u6570<\/figcaption><\/figure>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u3000SQL Server Management Studio \u306e\u7a7a\u9593\u7d50\u679c\u30bf\u30d6\u306b\u8868\u73fe\u3067\u304d\u308b\u30dd\u30ea\u30b4\u30f3\u306e 1 \u500b\u3042\u305f\u308a\u306e Point \u306e\u4e0a\u9650\u306f 10 \u4e07\u500b\u3068\u63a8\u6e2c\u3055\u308c\u308b\uff0e<\/p>\n<p>\u3000\u540c\u69d8\u306b\uff0c\u7a7a\u9593\u7d50\u679c\u30bf\u30d6\u306b\u8868\u73fe\u3067\u304d\u308b\u30dd\u30ea\u30b4\u30f3\u306e\u500b\u6570\u306f\u305d\u306e Point \u306e\u7dcf\u6570\u306b\u3088\u308a\u5236\u9650\u3055\u308c\uff0c\u305d\u306e\u4e0a\u9650\u306f 100 \u4e07\u500b\u3068\u63a8\u6e2c\u3055\u308c\u308b\uff0e<\/p>\n<p>\u3000\u3044\u305a\u308c\u3082\u7b46\u8005\u306e\u74b0\u5883\u306b\u4f9d\u5b58\u3057\u3066\u304a\u308a\uff0c\u4ed6\u306e\u74b0\u5883\u3067\u518d\u73fe\u3067\u304d\u308b\u304b\u306f\u4e0d\u660e\u3067\u3042\u308b\uff0e<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3000SQL Server Management Studio \u306e\u7a7a\u9593\u7d50\u679c\u30bf\u30d6\u306b\u8868\u73fe\u3067\u304d\u308b\u30b8\u30aa\u30e1\u30c8\u30ea\u306b\u306f\u4f55\u3089\u304b\u306e\u5236\u7d04\u304c\u3042\u308b\uff0e\u305d\u306e\u95be\u5024\u306f\u4f55\u3067\u6c7a\u307e\u308a\uff0c\u305d\u306e\u5024\u306f\u3044\u304f\u3064\u306a\u306e\u3060\u308d\u3046\u304b\uff0eMedicalAreaDB\u3092\u4f7f\u3063\u3066\u691c\u8a3c\u3057\u3066\u307f\u305f\uff0e<\/p>\n","protected":false},"author":1,"featured_media":15391,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[5540,6391,265,4673,4644,12489,4672,2740,2750,12288,12322,12491,5415,5123,12919,460,2783,9582,7635,12045,4552,3549,12910,2588],"class_list":["post-16799","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology","tag-between","tag-by","tag-excel","tag-from","tag-order","tag-reduce","tag-select","tag-sql-server","tag-sql-server-management-studio","tag-stgeometrytype","tag-stnumpoints","tag-tolerance","tag-top","tag-where","tag-12919","tag-460","tag-2783","tag-9582","tag-7635","tag-12045","tag-4552","tag-3549","tag-12910","tag-2588"],"_links":{"self":[{"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=\/wp\/v2\/posts\/16799","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=16799"}],"version-history":[{"count":18,"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=\/wp\/v2\/posts\/16799\/revisions"}],"predecessor-version":[{"id":16820,"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=\/wp\/v2\/posts\/16799\/revisions\/16820"}],"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=16799"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=16799"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=16799"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}