{"id":8621,"date":"2026-06-08T15:53:14","date_gmt":"2026-06-08T06:53:14","guid":{"rendered":"https:\/\/since2020.jp\/media\/?p=8621"},"modified":"2026-06-08T15:56:43","modified_gmt":"2026-06-08T06:56:43","slug":"sqlnyumon","status":"publish","type":"post","link":"https:\/\/since2020.jp\/media\/sqlnyumon\/","title":{"rendered":"\u306f\u3058\u3081\u3066\u306eSQL\u5165\u9580 \u2015 \u30c7\u30fc\u30bf\u3092\u81ea\u5728\u306b\u6271\u3046\u7b2c\u4e00\u6b69"},"content":{"rendered":"<div class=\"sql-article\">\n<p>\u300c\u30c7\u30fc\u30bf\u3092\u96c6\u8a08\u3057\u305f\u3044\u300d\u300c\u6761\u4ef6\u306b\u5408\u3046\u30c7\u30fc\u30bf\u3060\u3051\u53d6\u308a\u51fa\u3057\u305f\u3044\u300d\u3002\u305d\u3093\u306a\u3068\u304d\u306b\u4f7f\u308f\u308c\u308b\u306e\u304cSQL\u3067\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001SQL\u3092\u307e\u3063\u305f\u304f\u89e6\u3063\u305f\u3053\u3068\u304c\u306a\u3044\u65b9\u306b\u5411\u3051\u3066\u3001\u57fa\u790e\u304b\u3089\u5b9f\u969b\u306b\u624b\u3092\u52d5\u304b\u3059\u6f14\u7fd2\u307e\u3067\u3001\u9806\u3092\u8ffd\u3063\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002\u8aad\u307f\u7d42\u308f\u308b\u3053\u308d\u306b\u306f\u3001\u7c21\u5358\u306a\u30c7\u30fc\u30bf\u306e\u53d6\u308a\u51fa\u3057\u3068\u96c6\u8a08\u304c\u81ea\u5206\u3067\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<hr \/>\n<h2>SQL\u3068\u306f<\/h2>\n<p>SQL\uff08\u30a8\u30b9\u30ad\u30e5\u30fc\u30a8\u30eb\u3001\u307e\u305f\u306f\u30b7\u30fc\u30af\u30a7\u30eb\uff09\u3068\u306f\u3001<strong>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u64cd\u4f5c\u3059\u308b\u305f\u3081\u306e\u8a00\u8a9e<\/strong>\u3067\u3059\u3002\u300cStructured Query Language\uff08\u69cb\u9020\u5316\u554f\u3044\u5408\u308f\u305b\u8a00\u8a9e\uff09\u300d\u306e\u7565\u3067\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u5bfe\u3057\u3066\u300c\u3053\u3046\u3044\u3046\u30c7\u30fc\u30bf\u304c\u6b32\u3057\u3044\u300d\u300c\u3053\u306e\u30c7\u30fc\u30bf\u3092\u8ffd\u52a0\u3057\u305f\u3044\u300d\u3068\u3044\u3063\u305f\u6307\u793a\u3092\u51fa\u3059\u305f\u3081\u306b\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<p>\u79c1\u305f\u3061\u304c\u666e\u6bb5\u4f7f\u3063\u3066\u3044\u308b\u8868\u8a08\u7b97\u30bd\u30d5\u30c8\uff08Excel\u3084Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\uff09\u3092\u601d\u3044\u6d6e\u304b\u3079\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002\u3042\u306e\u300c\u8868\u300d\u306b\u5bfe\u3057\u3066\u3001\u30de\u30a6\u30b9\u64cd\u4f5c\u3067\u306f\u306a\u304f<strong>\u6587\u7ae0\u306e\u3088\u3046\u306a\u547d\u4ee4\u6587\u3067\u64cd\u4f5c\u3059\u308b<\/strong>\u306e\u304cSQL\u3060\u3068\u8003\u3048\u308b\u3068\u3001\u30a4\u30e1\u30fc\u30b8\u3057\u3084\u3059\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070\u300c\u58f2\u4e0a\u304c1\u4e07\u5186\u4ee5\u4e0a\u306e\u6ce8\u6587\u3060\u3051\u898b\u305b\u3066\u300d\u3068\u3044\u3046\u6307\u793a\u306f\u3001SQL\u3067\u306f\u3053\u3046\u66f8\u304d\u307e\u3059\u3002<\/p>\n<div class=\"sql-codeblock\" data-code=\"SELECT * FROM \u6ce8\u6587 WHERE \u58f2\u4e0a &gt;= 10000;\"><button class=\"sql-copy-btn\" type=\"button\">\u30b3\u30d4\u30fc<\/button><\/p>\n<pre class=\"sql-code\"><code><span style=\"color:#569cd6\">SELECT<\/span> * <span style=\"color:#569cd6\">FROM<\/span> \u6ce8\u6587 <span style=\"color:#569cd6\">WHERE<\/span> \u58f2\u4e0a &gt;= <span style=\"color:#b5cea8\">10000<\/span>;<\/code><\/pre>\n<\/div>\n<p>\u82f1\u8a9e\u306e\u6587\u7ae0\u3092\u8aad\u3080\u3088\u3046\u306b\u3001\u306a\u3093\u3068\u306a\u304f\u610f\u5473\u304c\u4f1d\u308f\u3063\u3066\u3053\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002SQL\u306f\u3053\u306e\u3088\u3046\u306b\u3001\u4eba\u9593\u306b\u3068\u3063\u3066\u3082\u6bd4\u8f03\u7684\u8aad\u307f\u3084\u3059\u3044\u5f62\u3067\u547d\u4ee4\u3092\u66f8\u3051\u308b\u306e\u304c\u7279\u5fb4\u3067\u3059\u3002<\/p>\n<hr \/>\n<h2>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u30c6\u30fc\u30d6\u30eb\u306e\u57fa\u790e<\/h2>\n<p>SQL\u3092\u5b66\u3076\u524d\u306b\u3001\u300c\u3069\u3053\u306b\u5bfe\u3057\u3066\u547d\u4ee4\u3092\u51fa\u3059\u306e\u304b\u300d\u3092\u77e5\u3063\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u76f8\u624b\u304c<strong>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9<\/strong>\u3068<strong>\u30c6\u30fc\u30d6\u30eb<\/strong>\u3067\u3059\u3002<\/p>\n<ul>\n<li><strong>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9<\/strong>\uff1a\u30c7\u30fc\u30bf\u3092\u307e\u3068\u3081\u3066\u4fdd\u7ba1\u3057\u3066\u304a\u304f\u5165\u308c\u7269\u3002Excel\u30d5\u30a1\u30a4\u30eb1\u3064\u306b\u3042\u305f\u308b\u30a4\u30e1\u30fc\u30b8\u3067\u3059\u3002<\/li>\n<li><strong>\u30c6\u30fc\u30d6\u30eb<\/strong>\uff1a\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u4e2d\u306b\u3042\u308b\u300c\u8868\u300d\u3002Excel\u3067\u3044\u30461\u679a\u306e\u30b7\u30fc\u30c8\u306b\u3042\u305f\u308a\u307e\u3059\u3002<\/li>\n<li><strong>\u884c\uff08\u30ec\u30b3\u30fc\u30c9\uff09<\/strong>\uff1a\u8868\u306e\u6a2a1\u5217\u5206\u306e\u30c7\u30fc\u30bf\u3002\u300c1\u4eba\u5206\u306e\u9867\u5ba2\u60c5\u5831\u300d\u300c1\u4ef6\u5206\u306e\u6ce8\u6587\u300d\u306a\u3069\u30011\u3064\u306e\u307e\u3068\u307e\u308a\u3092\u8868\u3057\u307e\u3059\u3002<\/li>\n<li><strong>\u5217\uff08\u30ab\u30e9\u30e0\uff09<\/strong>\uff1a\u8868\u306e\u7e261\u5217\u5206\u306e\u9805\u76ee\u3002\u300c\u540d\u524d\u300d\u300c\u5e74\u9f62\u300d\u300c\u4fa1\u683c\u300d\u306a\u3069\u3001\u30c7\u30fc\u30bf\u306e\u7a2e\u985e\u3092\u8868\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<p>\u305f\u3068\u3048\u3070\u3001\u6b21\u306e\u3088\u3046\u306a\u300c\u9867\u5ba2\u300d\u30c6\u30fc\u30d6\u30eb\u304c\u3042\u308b\u3068\u3057\u307e\u3059\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>id<\/th>\n<th>\u540d\u524d<\/th>\n<th>\u5e74\u9f62<\/th>\n<th>\u90fd\u9053\u5e9c\u770c<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>1<\/td>\n<td>\u7530\u4e2d<\/td>\n<td>28<\/td>\n<td>\u6771\u4eac<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>\u4f50\u85e4<\/td>\n<td>35<\/td>\n<td>\u5927\u962a<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>\u9234\u6728<\/td>\n<td>42<\/td>\n<td>\u6771\u4eac<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u3053\u306e\u8868\u306e\u4e2d\u3067\u3001\u6a2a\u306e\u300c\u7530\u4e2d, 28, \u6771\u4eac\u300d\u304c<strong>\u884c<\/strong>\u3001\u7e26\u306e\u300c\u5e74\u9f62\u300d\u306e\u307e\u3068\u307e\u308a\u304c<strong>\u5217<\/strong>\u3067\u3059\u3002SQL\u306f\u3001\u3053\u306e\u30c6\u30fc\u30d6\u30eb\u306b\u5bfe\u3057\u3066\u300c\u6771\u4eac\u306e\u4eba\u3060\u3051\u53d6\u308a\u51fa\u3059\u300d\u300c\u5e74\u9f62\u306e\u5e73\u5747\u3092\u51fa\u3059\u300d\u3068\u3044\u3063\u305f\u64cd\u4f5c\u3092\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<hr \/>\n<h2>SQL\u3067\u3067\u304d\u308b\u3053\u3068<\/h2>\n<p>SQL\u3067\u3067\u304d\u308b\u3053\u3068\u306f\u3001\u5927\u304d\u304f\u5206\u3051\u3066\u6b21\u306e4\u3064\u3067\u3059\u3002\u6700\u521d\u306e\u3046\u3061\u306f\u3001\u7279\u306b\u300c\u53d6\u308a\u51fa\u3059\uff08SELECT\uff09\u300d\u304c\u4e2d\u5fc3\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<ol>\n<li><strong>\u30c7\u30fc\u30bf\u3092\u53d6\u308a\u51fa\u3059\uff08SELECT\uff09<\/strong><br \/>\n   \u6761\u4ef6\u306b\u5408\u3046\u30c7\u30fc\u30bf\u3092\u691c\u7d22\u3057\u305f\u308a\u3001\u96c6\u8a08\u3057\u305f\u308a\u3057\u307e\u3059\u3002\u5b9f\u52d9\u3067\u6700\u3082\u3088\u304f\u4f7f\u3046\u64cd\u4f5c\u3067\u3059\u3002<\/li>\n<li><strong>\u30c7\u30fc\u30bf\u3092\u8ffd\u52a0\u3059\u308b\uff08INSERT\uff09<\/strong><br \/>\n   \u65b0\u3057\u3044\u884c\u3092\u30c6\u30fc\u30d6\u30eb\u306b\u767b\u9332\u3057\u307e\u3059\u3002<\/li>\n<li><strong>\u30c7\u30fc\u30bf\u3092\u66f4\u65b0\u3059\u308b\uff08UPDATE\uff09<\/strong><br \/>\n   \u65e2\u5b58\u306e\u30c7\u30fc\u30bf\u306e\u5185\u5bb9\u3092\u66f8\u304d\u63db\u3048\u307e\u3059\u3002<\/li>\n<li><strong>\u30c7\u30fc\u30bf\u3092\u524a\u9664\u3059\u308b\uff08DELETE\uff09<\/strong><br \/>\n   \u4e0d\u8981\u306a\u30c7\u30fc\u30bf\u3092\u6d88\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u307e\u305a\u4e00\u756a\u5927\u5207\u306a\u300c\u30c7\u30fc\u30bf\u3092\u53d6\u308a\u51fa\u3059\uff08SELECT\uff09\u300d\u3092\u4e2d\u5fc3\u306b\u5b66\u3093\u3067\u3044\u304d\u307e\u3059\u3002\u3053\u3053\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308b\u3060\u3051\u3067\u3001\u30c7\u30fc\u30bf\u5206\u6790\u3084\u30ec\u30dd\u30fc\u30c8\u4f5c\u6210\u306e\u5e45\u304c\u5927\u304d\u304f\u5e83\u304c\u308a\u307e\u3059\u3002<\/p>\n<hr \/>\n<h2>\u74b0\u5883\u306e\u6e96\u5099 \u2015 \u5b9f\u969b\u306b\u8a66\u3057\u3066\u307f\u3088\u3046<\/h2>\n<p>SQL\u306f\u3001\u8aad\u3080\u3060\u3051\u3088\u308a<strong>\u81ea\u5206\u3067\u6253\u3061\u8fbc\u3093\u3067\u307f\u308b<\/strong>\u307b\u3046\u304c\u5727\u5012\u7684\u306b\u8eab\u306b\u3064\u304d\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f<strong>PostgreSQL<\/strong>\u3092\u4f7f\u3063\u3066\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002PostgreSQL\u306f\u7121\u6599\u3067\u4f7f\u3048\u308b\u9ad8\u6a5f\u80fd\u306a\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u3001\u5b9f\u52d9\u3067\u3082\u5e83\u304f\u4f7f\u308f\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u8a66\u3059\u65b9\u6cd5\u306f\u3001\u5927\u304d\u304f2\u3064\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li><strong>\u624b\u8efd\u306b\u8a66\u3057\u305f\u3044\u5834\u5408<\/strong>\uff1a\u30d6\u30e9\u30a6\u30b6\u3060\u3051\u3067\u4f7f\u3048\u308b<strong>DB Fiddle<\/strong>\uff08<code>https:\/\/www.db-fiddle.com\/<\/code>\uff09\u304c\u304a\u3059\u3059\u3081\u3067\u3059\u3002\u5de6\u4e0a\u306e\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u300cPostgreSQL\u300d\u3092\u9078\u3079\u3070\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4e0d\u8981\u3067\u3059\u3050\u306bPostgreSQL\u306eSQL\u3092\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002<\/li>\n<li><strong>\u624b\u5143\u306e\u74b0\u5883\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5834\u5408<\/strong>\uff1a<a href=\"https:\/\/www.postgresql.org\/download\/\">\u516c\u5f0f\u30b5\u30a4\u30c8<\/a>\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u3092\u5165\u624b\u3067\u304d\u307e\u3059\u3002\u3042\u308f\u305b\u3066<strong>pgAdmin<\/strong>\uff08PostgreSQL\u7528\u306e\u30b0\u30e9\u30d5\u30a3\u30ab\u30eb\u306a\u64cd\u4f5c\u30c4\u30fc\u30eb\uff09\u3092\u5165\u308c\u3066\u304a\u304f\u3068\u3001SQL\u306e\u5b9f\u884c\u3084\u7d50\u679c\u306e\u78ba\u8a8d\u304c\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/li>\n<\/ul>\n<p>\u307e\u305a\u306fDB Fiddle\u3067\u6c17\u8efd\u306b\u89e6\u3063\u3066\u307f\u3066\u3001\u6163\u308c\u3066\u304d\u305f\u3089\u624b\u5143\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3001\u3068\u3044\u3046\u6d41\u308c\u304c\u304a\u3059\u3059\u3081\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u306e\u6f14\u7fd2\u3067\u4f7f\u3046\u30b5\u30f3\u30d7\u30eb\u30c7\u30fc\u30bf\u306f\u3001\u6b21\u306eSQL\u3067\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002\u5b9f\u884c\u74b0\u5883\u306b\u305d\u306e\u307e\u307e\u8cbc\u308a\u4ed8\u3051\u3066\u5b9f\u884c\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div class=\"sql-codeblock\" data-code=\"CREATE TABLE orders (\n  id        INTEGER,\n  \u9867\u5ba2\u540d     TEXT,\n  \u5546\u54c1       TEXT,\n  \u4fa1\u683c       INTEGER,\n  \u6570\u91cf       INTEGER,\n  \u90fd\u9053\u5e9c\u770c    TEXT\n);\n\nINSERT INTO orders (id, \u9867\u5ba2\u540d, \u5546\u54c1, \u4fa1\u683c, \u6570\u91cf, \u90fd\u9053\u5e9c\u770c) VALUES\n(1, '\u7530\u4e2d', '\u30ce\u30fc\u30c8', 300,  5, '\u6771\u4eac'),\n(2, '\u4f50\u85e4', '\u30da\u30f3',   150, 10, '\u5927\u962a'),\n(3, '\u9234\u6728', '\u30ce\u30fc\u30c8', 300,  2, '\u6771\u4eac'),\n(4, '\u9ad8\u6a4b', '\u306f\u3055\u307f', 500,  1, '\u611b\u77e5'),\n(5, '\u7530\u4e2d', '\u30da\u30f3',   150,  3, '\u6771\u4eac'),\n(6, '\u4f0a\u85e4', '\u30ce\u30fc\u30c8', 300,  8, '\u5927\u962a');\"><button class=\"sql-copy-btn\" type=\"button\">\u30b3\u30d4\u30fc<\/button><\/p>\n<pre class=\"sql-code\"><code><span style=\"color:#569cd6\">CREATE TABLE<\/span> orders (\n  id        <span style=\"color:#569cd6\">INTEGER<\/span>,\n  \u9867\u5ba2\u540d     <span style=\"color:#569cd6\">TEXT<\/span>,\n  \u5546\u54c1       <span style=\"color:#569cd6\">TEXT<\/span>,\n  \u4fa1\u683c       <span style=\"color:#569cd6\">INTEGER<\/span>,\n  \u6570\u91cf       <span style=\"color:#569cd6\">INTEGER<\/span>,\n  \u90fd\u9053\u5e9c\u770c    <span style=\"color:#569cd6\">TEXT<\/span>\n);\n\n<span style=\"color:#569cd6\">INSERT INTO<\/span> orders (id, \u9867\u5ba2\u540d, \u5546\u54c1, \u4fa1\u683c, \u6570\u91cf, \u90fd\u9053\u5e9c\u770c) <span style=\"color:#569cd6\">VALUES<\/span>\n(<span style=\"color:#b5cea8\">1<\/span>, <span style=\"color:#ce9178\">'\u7530\u4e2d'<\/span>, <span style=\"color:#ce9178\">'\u30ce\u30fc\u30c8'<\/span>, <span style=\"color:#b5cea8\">300<\/span>,  <span style=\"color:#b5cea8\">5<\/span>, <span style=\"color:#ce9178\">'\u6771\u4eac'<\/span>),\n(<span style=\"color:#b5cea8\">2<\/span>, <span style=\"color:#ce9178\">'\u4f50\u85e4'<\/span>, <span style=\"color:#ce9178\">'\u30da\u30f3'<\/span>,   <span style=\"color:#b5cea8\">150<\/span>, <span style=\"color:#b5cea8\">10<\/span>, <span style=\"color:#ce9178\">'\u5927\u962a'<\/span>),\n(<span style=\"color:#b5cea8\">3<\/span>, <span style=\"color:#ce9178\">'\u9234\u6728'<\/span>, <span style=\"color:#ce9178\">'\u30ce\u30fc\u30c8'<\/span>, <span style=\"color:#b5cea8\">300<\/span>,  <span style=\"color:#b5cea8\">2<\/span>, <span style=\"color:#ce9178\">'\u6771\u4eac'<\/span>),\n(<span style=\"color:#b5cea8\">4<\/span>, <span style=\"color:#ce9178\">'\u9ad8\u6a4b'<\/span>, <span style=\"color:#ce9178\">'\u306f\u3055\u307f'<\/span>, <span style=\"color:#b5cea8\">500<\/span>,  <span style=\"color:#b5cea8\">1<\/span>, <span style=\"color:#ce9178\">'\u611b\u77e5'<\/span>),\n(<span style=\"color:#b5cea8\">5<\/span>, <span style=\"color:#ce9178\">'\u7530\u4e2d'<\/span>, <span style=\"color:#ce9178\">'\u30da\u30f3'<\/span>,   <span style=\"color:#b5cea8\">150<\/span>,  <span style=\"color:#b5cea8\">3<\/span>, <span style=\"color:#ce9178\">'\u6771\u4eac'<\/span>),\n(<span style=\"color:#b5cea8\">6<\/span>, <span style=\"color:#ce9178\">'\u4f0a\u85e4'<\/span>, <span style=\"color:#ce9178\">'\u30ce\u30fc\u30c8'<\/span>, <span style=\"color:#b5cea8\">300<\/span>,  <span style=\"color:#b5cea8\">8<\/span>, <span style=\"color:#ce9178\">'\u5927\u962a'<\/span>);<\/code><\/pre>\n<\/div>\n<blockquote>\n<p><strong>\u88dc\u8db3<\/strong>\uff1aPostgreSQL\u3067\u306f\u6587\u5b57\u5217\u3092\u56f2\u3080\u3068\u304d\u306b\u5fc5\u305a\u30b7\u30f3\u30b0\u30eb\u30af\u30a9\u30fc\u30c8\uff08<code>'<\/code>\uff09\u3092\u4f7f\u3044\u307e\u3059\u3002\u30c0\u30d6\u30eb\u30af\u30a9\u30fc\u30c8\uff08<code>\"<\/code>\uff09\u306f\u30c6\u30fc\u30d6\u30eb\u540d\u3084\u5217\u540d\u3092\u56f2\u3080\u7528\u9014\u306b\u306a\u308b\u306e\u3067\u3001\u6df7\u540c\u3057\u306a\u3044\u3088\u3046\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<\/blockquote>\n<p>\u5b9f\u884c\u3059\u308b\u3068\u3001<code>orders<\/code>\u30c6\u30fc\u30d6\u30eb\u306b\u306f\u6b21\u306e\u30c7\u30fc\u30bf\u304c\u5165\u3063\u305f\u72b6\u614b\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u3053\u308c\u4ee5\u964d\u3053\u306e\u30c6\u30fc\u30d6\u30eb\u3092\u4f7f\u3063\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>id<\/th>\n<th>\u9867\u5ba2\u540d<\/th>\n<th>\u5546\u54c1<\/th>\n<th>\u4fa1\u683c<\/th>\n<th>\u6570\u91cf<\/th>\n<th>\u90fd\u9053\u5e9c\u770c<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>1<\/td>\n<td>\u7530\u4e2d<\/td>\n<td>\u30ce\u30fc\u30c8<\/td>\n<td>300<\/td>\n<td>5<\/td>\n<td>\u6771\u4eac<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>\u4f50\u85e4<\/td>\n<td>\u30da\u30f3<\/td>\n<td>150<\/td>\n<td>10<\/td>\n<td>\u5927\u962a<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>\u9234\u6728<\/td>\n<td>\u30ce\u30fc\u30c8<\/td>\n<td>300<\/td>\n<td>2<\/td>\n<td>\u6771\u4eac<\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td>\u9ad8\u6a4b<\/td>\n<td>\u306f\u3055\u307f<\/td>\n<td>500<\/td>\n<td>1<\/td>\n<td>\u611b\u77e5<\/td>\n<\/tr>\n<tr>\n<td>5<\/td>\n<td>\u7530\u4e2d<\/td>\n<td>\u30da\u30f3<\/td>\n<td>150<\/td>\n<td>3<\/td>\n<td>\u6771\u4eac<\/td>\n<\/tr>\n<tr>\n<td>6<\/td>\n<td>\u4f0a\u85e4<\/td>\n<td>\u30ce\u30fc\u30c8<\/td>\n<td>300<\/td>\n<td>8<\/td>\n<td>\u5927\u962a<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h2>SQL\u306e\u57fa\u672c\u69cb\u6587\u3068\u95a2\u6570<\/h2>\n<p>\u3053\u3053\u304b\u3089\u304c\u672c\u984c\u3067\u3059\u3002\u30c7\u30fc\u30bf\u3092\u53d6\u308a\u51fa\u3059\u305f\u3081\u306e\u57fa\u672c\u7684\u306a\u547d\u4ee4\u3092\u3001\u3072\u3068\u3064\u305a\u3064\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>SELECT \u2015 \u5217\u3092\u9078\u3093\u3067\u53d6\u308a\u51fa\u3059<\/h3>\n<p><code>SELECT<\/code>\u306f\u300c\u3069\u306e\u5217\u3092\u53d6\u308a\u51fa\u3059\u304b\u300d\u3092\u6307\u5b9a\u3059\u308b\u547d\u4ee4\u3067\u3059\u3002<code>FROM<\/code>\u3067\u300c\u3069\u306e\u30c6\u30fc\u30d6\u30eb\u304b\u3089\u300d\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<div class=\"sql-codeblock\" data-code=\"-- \u3059\u3079\u3066\u306e\u5217\u3092\u53d6\u308a\u51fa\u3059\uff08* \u306f\u300c\u5168\u90e8\u300d\u306e\u610f\u5473\uff09\nSELECT * FROM orders;\n\n-- \u9867\u5ba2\u540d\u3068\u4fa1\u683c\u3060\u3051\u53d6\u308a\u51fa\u3059\nSELECT \u9867\u5ba2\u540d, \u4fa1\u683c FROM orders;\"><button class=\"sql-copy-btn\" type=\"button\">\u30b3\u30d4\u30fc<\/button><\/p>\n<pre class=\"sql-code\"><code><span style=\"color:#6a9955\">-- \u3059\u3079\u3066\u306e\u5217\u3092\u53d6\u308a\u51fa\u3059\uff08* \u306f\u300c\u5168\u90e8\u300d\u306e\u610f\u5473\uff09<\/span>\n<span style=\"color:#569cd6\">SELECT<\/span> * <span style=\"color:#569cd6\">FROM<\/span> orders;\n\n<span style=\"color:#6a9955\">-- \u9867\u5ba2\u540d\u3068\u4fa1\u683c\u3060\u3051\u53d6\u308a\u51fa\u3059<\/span>\n<span style=\"color:#569cd6\">SELECT<\/span> \u9867\u5ba2\u540d, \u4fa1\u683c <span style=\"color:#569cd6\">FROM<\/span> orders;<\/code><\/pre>\n<\/div>\n<p>\u4e0b\u306e\u300c\u9867\u5ba2\u540d\u3068\u4fa1\u683c\u3060\u3051\u53d6\u308a\u51fa\u3059\u300d\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u6307\u5b9a\u3057\u305f2\u5217\u3060\u3051\u304c\u8fd4\u3063\u3066\u304d\u307e\u3059\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>\u9867\u5ba2\u540d<\/th>\n<th>\u4fa1\u683c<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u7530\u4e2d<\/td>\n<td>300<\/td>\n<\/tr>\n<tr>\n<td>\u4f50\u85e4<\/td>\n<td>150<\/td>\n<\/tr>\n<tr>\n<td>\u9234\u6728<\/td>\n<td>300<\/td>\n<\/tr>\n<tr>\n<td>\u9ad8\u6a4b<\/td>\n<td>500<\/td>\n<\/tr>\n<tr>\n<td>\u7530\u4e2d<\/td>\n<td>150<\/td>\n<\/tr>\n<tr>\n<td>\u4f0a\u85e4<\/td>\n<td>300<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>WHERE \u2015 \u6761\u4ef6\u3067\u7d5e\u308a\u8fbc\u3080<\/h3>\n<p><code>WHERE<\/code>\u3092\u4f7f\u3046\u3068\u3001\u300c\u6761\u4ef6\u306b\u5408\u3046\u884c\u3060\u3051\u300d\u3092\u53d6\u308a\u51fa\u305b\u307e\u3059\u3002<\/p>\n<div class=\"sql-codeblock\" data-code=\"-- \u4fa1\u683c\u304c300\u306e\u6ce8\u6587\u3060\u3051\u53d6\u308a\u51fa\u3059\nSELECT * FROM orders WHERE \u4fa1\u683c = 300;\n\n-- \u6771\u4eac\u306e\u6ce8\u6587\u3060\u3051\u53d6\u308a\u51fa\u3059\nSELECT * FROM orders WHERE \u90fd\u9053\u5e9c\u770c = '\u6771\u4eac';\"><button class=\"sql-copy-btn\" type=\"button\">\u30b3\u30d4\u30fc<\/button><\/p>\n<pre class=\"sql-code\"><code><span style=\"color:#6a9955\">-- \u4fa1\u683c\u304c300\u306e\u6ce8\u6587\u3060\u3051\u53d6\u308a\u51fa\u3059<\/span>\n<span style=\"color:#569cd6\">SELECT<\/span> * <span style=\"color:#569cd6\">FROM<\/span> orders <span style=\"color:#569cd6\">WHERE<\/span> \u4fa1\u683c = <span style=\"color:#b5cea8\">300<\/span>;\n\n<span style=\"color:#6a9955\">-- \u6771\u4eac\u306e\u6ce8\u6587\u3060\u3051\u53d6\u308a\u51fa\u3059<\/span>\n<span style=\"color:#569cd6\">SELECT<\/span> * <span style=\"color:#569cd6\">FROM<\/span> orders <span style=\"color:#569cd6\">WHERE<\/span> \u90fd\u9053\u5e9c\u770c = <span style=\"color:#ce9178\">'\u6771\u4eac'<\/span>;<\/code><\/pre>\n<\/div>\n<p>\u300c\u6771\u4eac\u306e\u6ce8\u6587\u3060\u3051\u53d6\u308a\u51fa\u3059\u300d\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u90fd\u9053\u5e9c\u770c\u304c\u6771\u4eac\u306e\u884c\u3060\u3051\u306b\u7d5e\u3089\u308c\u307e\u3059\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>id<\/th>\n<th>\u9867\u5ba2\u540d<\/th>\n<th>\u5546\u54c1<\/th>\n<th>\u4fa1\u683c<\/th>\n<th>\u6570\u91cf<\/th>\n<th>\u90fd\u9053\u5e9c\u770c<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>1<\/td>\n<td>\u7530\u4e2d<\/td>\n<td>\u30ce\u30fc\u30c8<\/td>\n<td>300<\/td>\n<td>5<\/td>\n<td>\u6771\u4eac<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>\u9234\u6728<\/td>\n<td>\u30ce\u30fc\u30c8<\/td>\n<td>300<\/td>\n<td>2<\/td>\n<td>\u6771\u4eac<\/td>\n<\/tr>\n<tr>\n<td>5<\/td>\n<td>\u7530\u4e2d<\/td>\n<td>\u30da\u30f3<\/td>\n<td>150<\/td>\n<td>3<\/td>\n<td>\u6771\u4eac<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u3088\u304f\u4f7f\u3046\u6bd4\u8f03\u306e\u66f8\u304d\u65b9\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>\u66f8\u304d\u65b9<\/th>\n<th>\u610f\u5473<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>=<\/code><\/td>\n<td>\u7b49\u3057\u3044<\/td>\n<\/tr>\n<tr>\n<td><code>&lt;&gt;<\/code><\/td>\n<td>\u7b49\u3057\u304f\u306a\u3044<\/td>\n<\/tr>\n<tr>\n<td><code>&gt;<\/code> <code>&lt;<\/code><\/td>\n<td>\u3088\u308a\u5927\u304d\u3044 \/ \u5c0f\u3055\u3044<\/td>\n<\/tr>\n<tr>\n<td><code>&gt;=<\/code> <code>&lt;=<\/code><\/td>\n<td>\u4ee5\u4e0a \/ \u4ee5\u4e0b<\/td>\n<\/tr>\n<tr>\n<td><code>AND<\/code><\/td>\n<td>\u304b\u3064\uff08\u4e21\u65b9\u306e\u6761\u4ef6\u3092\u6e80\u305f\u3059\uff09<\/td>\n<\/tr>\n<tr>\n<td><code>OR<\/code><\/td>\n<td>\u307e\u305f\u306f\uff08\u3069\u3061\u3089\u304b\u3092\u6e80\u305f\u3059\uff09<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div class=\"sql-codeblock\" data-code=\"-- \u6771\u4eac \u304b\u3064 \u4fa1\u683c\u304c300\u4ee5\u4e0a\nSELECT * FROM orders WHERE \u90fd\u9053\u5e9c\u770c = '\u6771\u4eac' AND \u4fa1\u683c &gt;= 300;\"><button class=\"sql-copy-btn\" type=\"button\">\u30b3\u30d4\u30fc<\/button><\/p>\n<pre class=\"sql-code\"><code><span style=\"color:#6a9955\">-- \u6771\u4eac \u304b\u3064 \u4fa1\u683c\u304c300\u4ee5\u4e0a<\/span>\n<span style=\"color:#569cd6\">SELECT<\/span> * <span style=\"color:#569cd6\">FROM<\/span> orders <span style=\"color:#569cd6\">WHERE<\/span> \u90fd\u9053\u5e9c\u770c = <span style=\"color:#ce9178\">'\u6771\u4eac'<\/span> <span style=\"color:#569cd6\">AND<\/span> \u4fa1\u683c &gt;= <span style=\"color:#b5cea8\">300<\/span>;<\/code><\/pre>\n<\/div>\n<p><code>AND<\/code>\u30672\u3064\u306e\u6761\u4ef6\u3092\u4e21\u65b9\u6e80\u305f\u3059\u884c\u3060\u3051\u304c\u6b8b\u308a\u307e\u3059\u3002\u5148\u307b\u3069\u306e\u6771\u4eac\u306e3\u884c\u304b\u3089\u3001\u3055\u3089\u306b\u300c\u4fa1\u683c300\u4ee5\u4e0a\u300d\u3067\u7d5e\u3089\u308c\u30662\u884c\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>id<\/th>\n<th>\u9867\u5ba2\u540d<\/th>\n<th>\u5546\u54c1<\/th>\n<th>\u4fa1\u683c<\/th>\n<th>\u6570\u91cf<\/th>\n<th>\u90fd\u9053\u5e9c\u770c<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>1<\/td>\n<td>\u7530\u4e2d<\/td>\n<td>\u30ce\u30fc\u30c8<\/td>\n<td>300<\/td>\n<td>5<\/td>\n<td>\u6771\u4eac<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>\u9234\u6728<\/td>\n<td>\u30ce\u30fc\u30c8<\/td>\n<td>300<\/td>\n<td>2<\/td>\n<td>\u6771\u4eac<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>ORDER BY \u2015 \u4e26\u3073\u66ff\u3048\u308b<\/h3>\n<p><code>ORDER BY<\/code>\u3067\u3001\u7d50\u679c\u3092\u4e26\u3073\u66ff\u3048\u3089\u308c\u307e\u3059\u3002<code>ASC<\/code>\u304c\u6607\u9806\uff08\u5c0f\u3055\u3044\u9806\uff09\u3001<code>DESC<\/code>\u304c\u964d\u9806\uff08\u5927\u304d\u3044\u9806\uff09\u3067\u3059\u3002<\/p>\n<div class=\"sql-codeblock\" data-code=\"-- \u4fa1\u683c\u306e\u9ad8\u3044\u9806\u306b\u4e26\u3079\u308b\nSELECT * FROM orders ORDER BY \u4fa1\u683c DESC;\"><button class=\"sql-copy-btn\" type=\"button\">\u30b3\u30d4\u30fc<\/button><\/p>\n<pre class=\"sql-code\"><code><span style=\"color:#6a9955\">-- \u4fa1\u683c\u306e\u9ad8\u3044\u9806\u306b\u4e26\u3079\u308b<\/span>\n<span style=\"color:#569cd6\">SELECT<\/span> * <span style=\"color:#569cd6\">FROM<\/span> orders <span style=\"color:#569cd6\">ORDER BY<\/span> \u4fa1\u683c <span style=\"color:#569cd6\">DESC<\/span>;<\/code><\/pre>\n<\/div>\n<p>\u4fa1\u683c\u306e\u9ad8\u3044\u9806\uff08\u964d\u9806\uff09\u306b\u4e26\u3073\u66ff\u308f\u308a\u307e\u3059\u3002500\u304c\u4e00\u756a\u4e0a\u306b\u6765\u3066\u3001\u540c\u3058\u4fa1\u683c\uff08300\u3084150\uff09\u306e\u884c\u306f\u307e\u3068\u307e\u3063\u3066\u4e26\u3073\u307e\u3059\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>id<\/th>\n<th>\u9867\u5ba2\u540d<\/th>\n<th>\u5546\u54c1<\/th>\n<th>\u4fa1\u683c<\/th>\n<th>\u6570\u91cf<\/th>\n<th>\u90fd\u9053\u5e9c\u770c<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>4<\/td>\n<td>\u9ad8\u6a4b<\/td>\n<td>\u306f\u3055\u307f<\/td>\n<td>500<\/td>\n<td>1<\/td>\n<td>\u611b\u77e5<\/td>\n<\/tr>\n<tr>\n<td>1<\/td>\n<td>\u7530\u4e2d<\/td>\n<td>\u30ce\u30fc\u30c8<\/td>\n<td>300<\/td>\n<td>5<\/td>\n<td>\u6771\u4eac<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>\u9234\u6728<\/td>\n<td>\u30ce\u30fc\u30c8<\/td>\n<td>300<\/td>\n<td>2<\/td>\n<td>\u6771\u4eac<\/td>\n<\/tr>\n<tr>\n<td>6<\/td>\n<td>\u4f0a\u85e4<\/td>\n<td>\u30ce\u30fc\u30c8<\/td>\n<td>300<\/td>\n<td>8<\/td>\n<td>\u5927\u962a<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>\u4f50\u85e4<\/td>\n<td>\u30da\u30f3<\/td>\n<td>150<\/td>\n<td>10<\/td>\n<td>\u5927\u962a<\/td>\n<\/tr>\n<tr>\n<td>5<\/td>\n<td>\u7530\u4e2d<\/td>\n<td>\u30da\u30f3<\/td>\n<td>150<\/td>\n<td>3<\/td>\n<td>\u6771\u4eac<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u96c6\u8a08\u95a2\u6570 \u2015 \u307e\u3068\u3081\u3066\u8a08\u7b97\u3059\u308b<\/h3>\n<p>\u3053\u3053\u3067\u300c\u95a2\u6570\u300d\u304c\u767b\u5834\u3057\u307e\u3059\u3002\u95a2\u6570\u3068\u306f\u3001\u30c7\u30fc\u30bf\u3092\u307e\u3068\u3081\u3066\u8a08\u7b97\u3057\u3066\u304f\u308c\u308b\u4fbf\u5229\u306a\u9053\u5177\u3067\u3059\u3002\u4ee3\u8868\u7684\u306a\u3082\u306e\u306f\u6b21\u306e5\u3064\u3067\u3059\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>\u95a2\u6570<\/th>\n<th>\u610f\u5473<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>COUNT()<\/code><\/td>\n<td>\u4ef6\u6570\u3092\u6570\u3048\u308b<\/td>\n<\/tr>\n<tr>\n<td><code>SUM()<\/code><\/td>\n<td>\u5408\u8a08\u3092\u51fa\u3059<\/td>\n<\/tr>\n<tr>\n<td><code>AVG()<\/code><\/td>\n<td>\u5e73\u5747\u3092\u51fa\u3059<\/td>\n<\/tr>\n<tr>\n<td><code>MAX()<\/code><\/td>\n<td>\u6700\u5927\u5024\u3092\u51fa\u3059<\/td>\n<\/tr>\n<tr>\n<td><code>MIN()<\/code><\/td>\n<td>\u6700\u5c0f\u5024\u3092\u51fa\u3059<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div class=\"sql-codeblock\" data-code=\"-- \u6ce8\u6587\u306e\u4ef6\u6570\u3092\u6570\u3048\u308b\nSELECT COUNT(*) FROM orders;\n\n-- \u4fa1\u683c\u306e\u5e73\u5747\u3092\u51fa\u3059\nSELECT AVG(\u4fa1\u683c) FROM orders;\"><button class=\"sql-copy-btn\" type=\"button\">\u30b3\u30d4\u30fc<\/button><\/p>\n<pre class=\"sql-code\"><code><span style=\"color:#6a9955\">-- \u6ce8\u6587\u306e\u4ef6\u6570\u3092\u6570\u3048\u308b<\/span>\n<span style=\"color:#569cd6\">SELECT<\/span> <span style=\"color:#569cd6\">COUNT<\/span>(*) <span style=\"color:#569cd6\">FROM<\/span> orders;\n\n<span style=\"color:#6a9955\">-- \u4fa1\u683c\u306e\u5e73\u5747\u3092\u51fa\u3059<\/span>\n<span style=\"color:#569cd6\">SELECT<\/span> <span style=\"color:#569cd6\">AVG<\/span>(\u4fa1\u683c) <span style=\"color:#569cd6\">FROM<\/span> orders;<\/code><\/pre>\n<\/div>\n<p><code>COUNT(*)<\/code>\u306e\u7d50\u679c\u306f\u3001\u5168\u90e8\u30676\u4ef6\u3042\u308b\u306e\u3067\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u96c6\u8a08\u95a2\u6570\u3092\u4f7f\u3046\u3068\u3001\u305f\u304f\u3055\u3093\u306e\u884c\u304c1\u3064\u306e\u5024\u306b\u307e\u3068\u3081\u3089\u308c\u308b\u306e\u304c\u7279\u5fb4\u3067\u3059\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>count<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>6<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><code>AVG(\u4fa1\u683c)<\/code>\u306e\u7d50\u679c\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>avg<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>283.3333333333333333<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5e73\u5747\u306e\u3088\u3046\u306b\u5272\u308a\u5207\u308c\u306a\u3044\u5024\u306f\u3001\u3053\u306e\u3088\u3046\u306b\u9577\u3044\u5c0f\u6570\u3067\u8868\u793a\u3055\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u6b63\u3057\u3044\u52d5\u4f5c\u3067\u3059\u3002\u898b\u3084\u3059\u304f\u3057\u305f\u3044\u5834\u5408\u306f\u3001<code>ROUND()<\/code>\u3068\u3044\u3046\u95a2\u6570\u3067\u6841\u6570\u3092\u6307\u5b9a\u3067\u304d\u307e\u3059\uff08\u4f8b\uff1a<code>SELECT ROUND(AVG(\u4fa1\u683c), 1) FROM orders;<\/code> \u3067\u5c0f\u6570\u7b2c1\u4f4d\u307e\u3067\uff09\u3002<\/p>\n<h3>GROUP BY \u2015 \u30b0\u30eb\u30fc\u30d7\u3054\u3068\u306b\u96c6\u8a08\u3059\u308b<\/h3>\n<p><code>GROUP BY<\/code>\u306f\u3001\u96c6\u8a08\u95a2\u6570\u3068\u7d44\u307f\u5408\u308f\u305b\u3066\u300c\u30b0\u30eb\u30fc\u30d7\u3054\u3068\u300d\u306b\u8a08\u7b97\u3059\u308b\u3068\u304d\u306b\u4f7f\u3044\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u300c\u90fd\u9053\u5e9c\u770c\u3054\u3068\u306e\u6ce8\u6587\u4ef6\u6570\u300d\u3092\u51fa\u3057\u305f\u3044\u3068\u304d\u306b\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<div class=\"sql-codeblock\" data-code=\"-- \u90fd\u9053\u5e9c\u770c\u3054\u3068\u306b\u6ce8\u6587\u4ef6\u6570\u3092\u6570\u3048\u308b\nSELECT \u90fd\u9053\u5e9c\u770c, COUNT(*) FROM orders GROUP BY \u90fd\u9053\u5e9c\u770c;\"><button class=\"sql-copy-btn\" type=\"button\">\u30b3\u30d4\u30fc<\/button><\/p>\n<pre class=\"sql-code\"><code><span style=\"color:#6a9955\">-- \u90fd\u9053\u5e9c\u770c\u3054\u3068\u306b\u6ce8\u6587\u4ef6\u6570\u3092\u6570\u3048\u308b<\/span>\n<span style=\"color:#569cd6\">SELECT<\/span> \u90fd\u9053\u5e9c\u770c, <span style=\"color:#569cd6\">COUNT<\/span>(*) <span style=\"color:#569cd6\">FROM<\/span> orders <span style=\"color:#569cd6\">GROUP BY<\/span> \u90fd\u9053\u5e9c\u770c;<\/code><\/pre>\n<\/div>\n<p>\u90fd\u9053\u5e9c\u770c\u3054\u3068\u306b\u30b0\u30eb\u30fc\u30d7\u5206\u3051\u3055\u308c\u3001\u305d\u308c\u305e\u308c\u306e\u4ef6\u6570\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u6771\u4eac\u304c3\u4ef6\u3001\u5927\u962a\u304c2\u4ef6\u3001\u611b\u77e5\u304c1\u4ef6\u3001\u3068\u4e00\u76ee\u3067\u5206\u304b\u308a\u307e\u3059\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>\u90fd\u9053\u5e9c\u770c<\/th>\n<th>count<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u6771\u4eac<\/td>\n<td>3<\/td>\n<\/tr>\n<tr>\n<td>\u5927\u962a<\/td>\n<td>2<\/td>\n<\/tr>\n<tr>\n<td>\u611b\u77e5<\/td>\n<td>1<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<blockquote>\n<p><strong>\u88dc\u8db3<\/strong>\uff1a<code>GROUP BY<\/code>\u3092\u4f7f\u3046\u3068\u3001\u7d50\u679c\u306e\u4e26\u3073\u9806\u306f\u5b9f\u884c\u306e\u305f\u3073\u306b\u5909\u308f\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u6c7a\u307e\u3063\u305f\u9806\u756a\u3067\u8868\u793a\u3057\u305f\u3044\u3068\u304d\u306f\u3001<code>ORDER BY<\/code>\u3092\u4e00\u7dd2\u306b\u4f7f\u3044\u307e\u3059\uff08\u4f8b\uff1a\u672b\u5c3e\u306b<code>ORDER BY COUNT(*) DESC<\/code>\u3092\u4ed8\u3051\u308b\u3068\u4ef6\u6570\u306e\u591a\u3044\u9806\uff09\u3002<\/p>\n<\/blockquote>\n<p>\u3053\u306e\u547d\u4ee4\u306f\u300c\u90fd\u9053\u5e9c\u770c\u300d\u3067\u30b0\u30eb\u30fc\u30d7\u306b\u5206\u3051\u3066\u304b\u3089\u3001\u305d\u308c\u305e\u308c\u306e\u30b0\u30eb\u30fc\u30d7\u306e\u4ef6\u6570\u3092\u6570\u3048\u308b\u3001\u3068\u3044\u3046\u52d5\u304d\u3092\u3057\u307e\u3059\u3002<\/p>\n<hr \/>\n<h2>\u6f14\u7fd2<\/h2>\n<p>\u305d\u308c\u3067\u306f\u3001\u5b9f\u969b\u306b\u624b\u3092\u52d5\u304b\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u5148\u307b\u3069\u4f5c\u6210\u3057\u305f\u6ce8\u6587\u30c7\u30fc\u30bf\u306e\u30c6\u30fc\u30d6\u30eb\uff08<code>orders<\/code>\uff09\u3092\u4f7f\u3044\u307e\u3059\u3002\u6b21\u306e5\u554f\u3092\u3001\u81ea\u5206\u3067SQL\u3092\u66f8\u3044\u3066\u89e3\u3044\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002\u7c21\u5358\u306a\u3082\u306e\u304b\u3089\u5c11\u3057\u305a\u3064\u96e3\u3057\u304f\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><strong>\u554f1.<\/strong> <code>orders<\/code>\u30c6\u30fc\u30d6\u30eb\u306e\u3059\u3079\u3066\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u308a\u51fa\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><strong>\u554f2.<\/strong> \u5546\u54c1\u304c\u300c\u30ce\u30fc\u30c8\u300d\u306e\u6ce8\u6587\u3060\u3051\u3092\u53d6\u308a\u51fa\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><strong>\u554f3.<\/strong> \u4fa1\u683c\u304c200\u4ee5\u4e0a\u306e\u6ce8\u6587\u3092\u3001\u4fa1\u683c\u306e\u9ad8\u3044\u9806\u306b\u4e26\u3079\u3066\u53d6\u308a\u51fa\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><strong>\u554f4.<\/strong> \u6ce8\u6587\u5168\u4f53\u306e\u300c\u4fa1\u683c \u00d7 \u6570\u91cf\u300d\u306e\u5408\u8a08\uff08\u7dcf\u58f2\u4e0a\uff09\u3092\u6c42\u3081\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><strong>\u554f5.<\/strong> \u90fd\u9053\u5e9c\u770c\u3054\u3068\u306b\u3001\u6ce8\u6587\u4ef6\u6570\u3092\u6570\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u307e\u305a\u306f\u7b54\u3048\u3092\u898b\u305a\u306b\u3001\u81ea\u5206\u3067\u8003\u3048\u3066\u66f8\u3044\u3066\u307f\u308b\u306e\u304c\u304a\u3059\u3059\u3081\u3067\u3059\u3002\u9593\u9055\u3048\u3066\u3082\u5927\u4e08\u592b\u3002\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u3089\u3001\u305d\u306e\u90fd\u5ea6\u76f4\u3057\u3066\u3044\u304f\u306e\u304c\u4e0a\u9054\u306e\u8fd1\u9053\u3067\u3059\u3002<\/p>\n<hr \/>\n<h2>\u89e3\u8aac<\/h2>\n<h3>\u554f1\u306e\u89e3\u7b54<\/h3>\n<div class=\"sql-codeblock\" data-code=\"SELECT * FROM orders;\"><button class=\"sql-copy-btn\" type=\"button\">\u30b3\u30d4\u30fc<\/button><\/p>\n<pre class=\"sql-code\"><code><span style=\"color:#569cd6\">SELECT<\/span> * <span style=\"color:#569cd6\">FROM<\/span> orders;<\/code><\/pre>\n<\/div>\n<p><code>*<\/code>\u306f\u300c\u3059\u3079\u3066\u306e\u5217\u300d\u3092\u610f\u5473\u3057\u307e\u3059\u3002<code>SELECT * FROM \u30c6\u30fc\u30d6\u30eb\u540d;<\/code>\u304c\u3001\u30c7\u30fc\u30bf\u53d6\u308a\u51fa\u3057\u306e\u57fa\u672c\u5f62\u3067\u3059\u3002\u7d50\u679c\u306f\u3001\u6700\u521d\u306b\u4f5c\u6210\u3057\u305f6\u884c\u306e\u30c6\u30fc\u30d6\u30eb\u304c\u305d\u306e\u307e\u307e\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3>\u554f2\u306e\u89e3\u7b54<\/h3>\n<div class=\"sql-codeblock\" data-code=\"SELECT * FROM orders WHERE \u5546\u54c1 = '\u30ce\u30fc\u30c8';\"><button class=\"sql-copy-btn\" type=\"button\">\u30b3\u30d4\u30fc<\/button><\/p>\n<pre class=\"sql-code\"><code><span style=\"color:#569cd6\">SELECT<\/span> * <span style=\"color:#569cd6\">FROM<\/span> orders <span style=\"color:#569cd6\">WHERE<\/span> \u5546\u54c1 = <span style=\"color:#ce9178\">'\u30ce\u30fc\u30c8'<\/span>;<\/code><\/pre>\n<\/div>\n<p><code>WHERE<\/code>\u3067\u6761\u4ef6\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u6587\u5b57\u5217\u306f<code>'<\/code>\uff08\u30b7\u30f3\u30b0\u30eb\u30af\u30a9\u30fc\u30c8\uff09\u3067\u56f2\u3080\u306e\u304c\u30dd\u30a4\u30f3\u30c8\u3067\u3059\u3002\u5b9f\u884c\u3059\u308b\u3068\u3001\u5546\u54c1\u304c\u300c\u30ce\u30fc\u30c8\u300d\u306e3\u884c\u3060\u3051\u304c\u8fd4\u3063\u3066\u304d\u307e\u3059\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>id<\/th>\n<th>\u9867\u5ba2\u540d<\/th>\n<th>\u5546\u54c1<\/th>\n<th>\u4fa1\u683c<\/th>\n<th>\u6570\u91cf<\/th>\n<th>\u90fd\u9053\u5e9c\u770c<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>1<\/td>\n<td>\u7530\u4e2d<\/td>\n<td>\u30ce\u30fc\u30c8<\/td>\n<td>300<\/td>\n<td>5<\/td>\n<td>\u6771\u4eac<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>\u9234\u6728<\/td>\n<td>\u30ce\u30fc\u30c8<\/td>\n<td>300<\/td>\n<td>2<\/td>\n<td>\u6771\u4eac<\/td>\n<\/tr>\n<tr>\n<td>6<\/td>\n<td>\u4f0a\u85e4<\/td>\n<td>\u30ce\u30fc\u30c8<\/td>\n<td>300<\/td>\n<td>8<\/td>\n<td>\u5927\u962a<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u554f3\u306e\u89e3\u7b54<\/h3>\n<div class=\"sql-codeblock\" data-code=\"SELECT * FROM orders WHERE \u4fa1\u683c &gt;= 200 ORDER BY \u4fa1\u683c DESC;\"><button class=\"sql-copy-btn\" type=\"button\">\u30b3\u30d4\u30fc<\/button><\/p>\n<pre class=\"sql-code\"><code><span style=\"color:#569cd6\">SELECT<\/span> * <span style=\"color:#569cd6\">FROM<\/span> orders <span style=\"color:#569cd6\">WHERE<\/span> \u4fa1\u683c &gt;= <span style=\"color:#b5cea8\">200<\/span> <span style=\"color:#569cd6\">ORDER BY<\/span> \u4fa1\u683c <span style=\"color:#569cd6\">DESC<\/span>;<\/code><\/pre>\n<\/div>\n<p>\u300c\u4fa1\u683c\u304c200\u4ee5\u4e0a\u300d\u3092<code>WHERE \u4fa1\u683c &gt;= 200<\/code>\u3067\u7d5e\u308a\u8fbc\u307f\u3001\u300c\u9ad8\u3044\u9806\u300d\u3092<code>ORDER BY \u4fa1\u683c DESC<\/code>\u3067\u6307\u5b9a\u3057\u307e\u3059\u3002<code>WHERE<\/code>\u3068<code>ORDER BY<\/code>\u306f\u3001\u3053\u306e\u9806\u756a\u3067\u4e26\u3079\u3066\u66f8\u304d\u307e\u3059\u3002\u4fa1\u683c150\u306e2\u884c\u304c\u9664\u304b\u308c\u3001\u6b8b\u308a\u304c\u9ad8\u3044\u9806\u306b\u4e26\u3073\u307e\u3059\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>id<\/th>\n<th>\u9867\u5ba2\u540d<\/th>\n<th>\u5546\u54c1<\/th>\n<th>\u4fa1\u683c<\/th>\n<th>\u6570\u91cf<\/th>\n<th>\u90fd\u9053\u5e9c\u770c<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>4<\/td>\n<td>\u9ad8\u6a4b<\/td>\n<td>\u306f\u3055\u307f<\/td>\n<td>500<\/td>\n<td>1<\/td>\n<td>\u611b\u77e5<\/td>\n<\/tr>\n<tr>\n<td>1<\/td>\n<td>\u7530\u4e2d<\/td>\n<td>\u30ce\u30fc\u30c8<\/td>\n<td>300<\/td>\n<td>5<\/td>\n<td>\u6771\u4eac<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>\u9234\u6728<\/td>\n<td>\u30ce\u30fc\u30c8<\/td>\n<td>300<\/td>\n<td>2<\/td>\n<td>\u6771\u4eac<\/td>\n<\/tr>\n<tr>\n<td>6<\/td>\n<td>\u4f0a\u85e4<\/td>\n<td>\u30ce\u30fc\u30c8<\/td>\n<td>300<\/td>\n<td>8<\/td>\n<td>\u5927\u962a<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u554f4\u306e\u89e3\u7b54<\/h3>\n<div class=\"sql-codeblock\" data-code=\"SELECT SUM(\u4fa1\u683c * \u6570\u91cf) FROM orders;\"><button class=\"sql-copy-btn\" type=\"button\">\u30b3\u30d4\u30fc<\/button><\/p>\n<pre class=\"sql-code\"><code><span style=\"color:#569cd6\">SELECT<\/span> <span style=\"color:#569cd6\">SUM<\/span>(\u4fa1\u683c * \u6570\u91cf) <span style=\"color:#569cd6\">FROM<\/span> orders;<\/code><\/pre>\n<\/div>\n<p><code>\u4fa1\u683c * \u6570\u91cf<\/code>\u30671\u6ce8\u6587\u3054\u3068\u306e\u58f2\u4e0a\u3092\u8a08\u7b97\u3057\u3001\u305d\u308c\u3092<code>SUM()<\/code>\u3067\u5408\u8a08\u3057\u307e\u3059\u3002\u3053\u306e\u3088\u3046\u306b\u3001\u95a2\u6570\u306e\u4e2d\u3067\u8a08\u7b97\u5f0f\u3092\u4f7f\u3046\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u7d50\u679c\u306f1\u3064\u306e\u5024\uff08\u7dcf\u58f2\u4e0a\uff09\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>sum<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>6950<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u554f5\u306e\u89e3\u7b54<\/h3>\n<div class=\"sql-codeblock\" data-code=\"SELECT \u90fd\u9053\u5e9c\u770c, COUNT(*) FROM orders GROUP BY \u90fd\u9053\u5e9c\u770c;\"><button class=\"sql-copy-btn\" type=\"button\">\u30b3\u30d4\u30fc<\/button><\/p>\n<pre class=\"sql-code\"><code><span style=\"color:#569cd6\">SELECT<\/span> \u90fd\u9053\u5e9c\u770c, <span style=\"color:#569cd6\">COUNT<\/span>(*) <span style=\"color:#569cd6\">FROM<\/span> orders <span style=\"color:#569cd6\">GROUP BY<\/span> \u90fd\u9053\u5e9c\u770c;<\/code><\/pre>\n<\/div>\n<p><code>GROUP BY \u90fd\u9053\u5e9c\u770c<\/code>\u3067\u90fd\u9053\u5e9c\u770c\u3054\u3068\u306b\u30b0\u30eb\u30fc\u30d7\u5206\u3051\u3057\u3001<code>COUNT(*)<\/code>\u3067\u305d\u308c\u305e\u308c\u306e\u4ef6\u6570\u3092\u6570\u3048\u307e\u3059\u3002\u300c\u301c\u3054\u3068\u306b\u96c6\u8a08\u3059\u308b\u300d\u3068\u8a00\u308f\u308c\u305f\u3089<code>GROUP BY<\/code>\u3001\u3068\u899a\u3048\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>\u90fd\u9053\u5e9c\u770c<\/th>\n<th>count<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u6771\u4eac<\/td>\n<td>3<\/td>\n<\/tr>\n<tr>\n<td>\u5927\u962a<\/td>\n<td>2<\/td>\n<\/tr>\n<tr>\n<td>\u611b\u77e5<\/td>\n<td>1<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001SQL\u306e\u57fa\u790e\u304b\u3089\u5b9f\u969b\u306e\u6f14\u7fd2\u307e\u3067\u3092\u4e00\u901a\u308a\u898b\u3066\u304d\u307e\u3057\u305f\u3002\u6700\u5f8c\u306b\u3001\u899a\u3048\u3066\u304a\u304d\u305f\u3044\u30dd\u30a4\u30f3\u30c8\u3092\u632f\u308a\u8fd4\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li><strong>SQL<\/strong>\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u64cd\u4f5c\u3059\u308b\u305f\u3081\u306e\u8a00\u8a9e\u3002\u8868\u8a08\u7b97\u30bd\u30d5\u30c8\u3092\u547d\u4ee4\u6587\u3067\u64cd\u4f5c\u3059\u308b\u30a4\u30e1\u30fc\u30b8\u3002<\/li>\n<li><strong>SELECT \/ FROM<\/strong>\u3067\u30c7\u30fc\u30bf\u3092\u53d6\u308a\u51fa\u3057\u3001<strong>WHERE<\/strong>\u3067\u6761\u4ef6\u3092\u7d5e\u308a\u8fbc\u3080\u3002<\/li>\n<li><strong>ORDER BY<\/strong>\u3067\u4e26\u3073\u66ff\u3048\u3001<strong>\u96c6\u8a08\u95a2\u6570\uff08COUNT, SUM, AVG \u306a\u3069\uff09<\/strong>\u3067\u307e\u3068\u3081\u3066\u8a08\u7b97\u3059\u308b\u3002<\/li>\n<li><strong>GROUP BY<\/strong>\u3067\u300c\u301c\u3054\u3068\u300d\u306e\u96c6\u8a08\u304c\u3067\u304d\u308b\u3002<\/li>\n<\/ul>\n<p>SQL\u306f\u3001\u4e00\u5ea6\u66f8\u304d\u65b9\u3092\u899a\u3048\u3066\u3057\u307e\u3048\u3070\u3001\u3042\u3068\u306f\u7d44\u307f\u5408\u308f\u305b\u306e\u5fdc\u7528\u3067\u3059\u3002\u6700\u521d\u306f\u77ed\u3044\u547d\u4ee4\u304b\u3089\u3001\u5c11\u3057\u305a\u3064\u6761\u4ef6\u3084\u96c6\u8a08\u3092\u8db3\u3057\u3066\u3044\u304f\u3068\u3001\u81ea\u7136\u3068\u8eab\u306b\u3064\u3044\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306e\u30b9\u30c6\u30c3\u30d7\u3068\u3057\u3066\u306f\u3001\u8907\u6570\u306e\u30c6\u30fc\u30d6\u30eb\u3092\u3064\u306a\u3052\u308b<strong>JOIN<\/strong>\u3092\u5b66\u3076\u3068\u3001\u6271\u3048\u308b\u30c7\u30fc\u30bf\u306e\u5e45\u304c\u4e00\u6c17\u306b\u5e83\u304c\u308a\u307e\u3059\u3002\u307e\u305a\u306f\u4eca\u56de\u306e\u6f14\u7fd2\u3092\u4f55\u5ea6\u304b\u7e70\u308a\u8fd4\u3057\u3066\u3001SELECT\u3068WHERE\u306b\u6163\u308c\u308b\u3053\u3068\u304b\u3089\u59cb\u3081\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u300c\u30c7\u30fc\u30bf\u3092\u96c6\u8a08\u3057\u305f\u3044\u300d\u300c\u6761\u4ef6\u306b\u5408\u3046\u30c7\u30fc\u30bf\u3060\u3051\u53d6\u308a\u51fa\u3057\u305f\u3044\u300d\u3002\u305d\u3093\u306a\u3068\u304d\u306b\u4f7f\u308f\u308c\u308b\u306e\u304cSQL\u3067\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001SQL\u3092\u307e\u3063\u305f\u304f\u89e6\u3063\u305f\u3053\u3068\u304c\u306a\u3044\u65b9\u306b\u5411\u3051\u3066\u3001\u57fa\u790e\u304b\u3089\u5b9f\u969b\u306b\u624b\u3092\u52d5\u304b\u3059\u6f14\u7fd2\u307e\u3067\u3001\u9806\u3092\u8ffd\u3063\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002\u8aad\u307f\u7d42\u308f\u308b [&hellip;]<\/p>\n","protected":false},"author":69,"featured_media":5938,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"content-type":"","swell_btn_cv_data":"","footnotes":"","_wp_rev_ctl_limit":""},"categories":[1251],"tags":[148,39,26,35],"class_list":["post-8621","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-data-analysis","tag-sql","tag-39","tag-26","tag-35"],"_links":{"self":[{"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/posts\/8621","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/users\/69"}],"replies":[{"embeddable":true,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/comments?post=8621"}],"version-history":[{"count":10,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/posts\/8621\/revisions"}],"predecessor-version":[{"id":8632,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/posts\/8621\/revisions\/8632"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/media\/5938"}],"wp:attachment":[{"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/media?parent=8621"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/categories?post=8621"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/tags?post=8621"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}