{"id":353,"date":"2012-10-02T19:32:55","date_gmt":"2012-10-02T10:32:55","guid":{"rendered":"http:\/\/sorceryforce.net\/WordPress\/?p=353"},"modified":"2012-10-02T19:32:55","modified_gmt":"2012-10-02T10:32:55","slug":"sql-server-management-studio-%e3%81%a7-0-5-%e3%82%92-round-%e3%81%99%e3%82%8b%e3%81%a8%e3%82%a8%e3%83%a9%e3%83%bc%e3%81%ab%e3%81%aa%e3%82%8b","status":"publish","type":"post","link":"https:\/\/blog.sorceryforce.net\/?p=353","title":{"rendered":"SQL Server Management Studio \u3067 0.5 \u3092 round \u3059\u308b\u3068\u30a8\u30e9\u30fc\u306b\u306a\u308b"},"content":{"rendered":"<p>\t\t\t\t<![CDATA[\n\n<h2>\u74b0\u5883<\/h2>\n\n  \n\n<ul>   \n\n<li>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\uff1aSQL Server Management Studio 2008 R2 <\/li>\n\n    \n\n<li>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\uff1aSQL Server 2008 <\/li>\n\n <\/ul>\n\n  \n\n<h2>\u5185\u5bb9<\/h2>\n\n  \n\n<p>SQL Server Management Studio \u3067\u300cround(0.50, 0)\u300d\u306e\u3088\u3046\u306b0.5&lt;=x&lt;1\u306e\u7bc4\u56f2\u3092 round \u3059\u308b\u3068\u300cexpression \u3092\u30c7\u30fc\u30bf\u578b numeric \u306b\u5909\u63db\u4e2d\u306b\u3001\u7b97\u8853\u30aa\u30fc\u30d0\u30fc\u30d5\u30ed\u30fc \u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002\u300d\u3068\u3044\u3046\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3059\u3002<\/p>\n\n  \n\n<p>\u4e0b\u306e\u30b3\u30fc\u30c9\u306e\u30b3\u30e1\u30f3\u30c8\u3092\u5916\u3059\u3068\u78ba\u8a8d\u3067\u304d\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n  \n\n<pre class=\"diagram\"><code>select\n round(0.01, 0) as [0.01]\n,round(0.49, 0) as [0.49]\n--,round(0.50, 0) as [0.50] -- expression \u3092\u30c7\u30fc\u30bf\u578b numeric \u306b\u5909\u63db\u4e2d\u306b\u3001\n--,round(0.99, 0) as [0.99] -- \u7b97\u8853\u30aa\u30fc\u30d0\u30fc\u30d5\u30ed\u30fc \u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002\n,round(cast(0.50 as numeric(10, 2)), 0) as [0.50]\n,round(cast(0.99 as numeric(10, 2)), 0) as [0.99]\n,round(1.01, 0) as [1.01]\n,round(1.49, 0) as [1.49]\n,round(1.50, 0) as [1.50]\n,round(1.99, 0) as [1.99]\n,round(2.01, 0) as [2.01]<\/code><\/pre>\n\n\n\n\n<p>\u8abf\u3079\u3066\u307f\u308b\u3068\u3069\u3046\u3084\u3089 SQL Server Management Studio \u3067\u5b9f\u884c\u3057\u305f\u3068\u304d\u3060\u3051\u51fa\u308b\u3088\u3046\u3067\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306a\u3069\u304b\u3089 SQL \u3092\u6295\u3052\u305f\u5834\u5408\u3067\u306f\u30a8\u30e9\u30fc\u306f\u51fa\u306a\u3044\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n\n<h2>\u53c2\u8003<\/h2>\n\n\n\n\n<ul>\n  \n\n<li><a href=\"http:\/\/connect.microsoft.com\/SQLServer\/feedback\/details\/341762\/sqlserver2005-round\">SQLSERVER2005\uff3fROUND\u95a2\u6570\u306e\u30d0\u30b0\uff1f<\/a> (Microsoft Connect)<\/li>\n\n\n  \n\n<li><a href=\"http:\/\/www.atmarkit.co.jp\/bbs\/phpBB\/viewtopic.php?topic=29574&amp;forum=26&amp;4\">SQLSERVER2005\uff3fROUND\u95a2\u6570\u306e\u30d0\u30b0\uff1f<\/a> (@IT\u4f1a\u8b70\u5ba4)<\/li>\n\n\n  \n\n<li><a href=\"http:\/\/social.msdn.microsoft.com\/forums\/ja-JP\/vsfeedbackja\/thread\/c4217fd3-1290-4b96-9e4b-98e9cc973b1c\/\">SQL Server Management Studio \u3067 ROUND \u95a2\u6570\u3092\u4f7f\u3046\u3068\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3059\u308b<\/a><\/li>\n\n\n<\/ul>\n\n]]>\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\t\t\t\t<![CDATA[]]>\t\t<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[268,293,296,476,820],"class_list":["post-353","post","type-post","status-publish","format-standard","hentry","category-6","tag-round","tag-sql","tag-sql-server-management-studio","tag-476","tag-820"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/blog.sorceryforce.net\/index.php?rest_route=\/wp\/v2\/posts\/353"}],"collection":[{"href":"https:\/\/blog.sorceryforce.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.sorceryforce.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.sorceryforce.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.sorceryforce.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=353"}],"version-history":[{"count":0,"href":"https:\/\/blog.sorceryforce.net\/index.php?rest_route=\/wp\/v2\/posts\/353\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.sorceryforce.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=353"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.sorceryforce.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=353"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.sorceryforce.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}