{"id":1339,"date":"2018-05-06T09:54:44","date_gmt":"2018-05-06T00:54:44","guid":{"rendered":"https:\/\/euc-access-excel-db.com\/tips\/?p=1339"},"modified":"2020-02-19T16:41:52","modified_gmt":"2020-02-19T07:41:52","slug":"yougo-sql01","status":"publish","type":"post","link":"https:\/\/euc-access-excel-db.com\/tips\/ct90_yougo\/yougo-sql01","title":{"rendered":"\u7528\u8a9e\uff1a\u300cSQL\u300d\u3068\u306f\uff1f"},"content":{"rendered":"<p>\u25cf \u7528\u8a9e\uff1a\u300cSQL\u300d\u3068\u306f\uff1f<\/p>\n<p><span style=\"color: #ff0000;\"><b>\u203b\u307e\u3048\u304c\u304d<br \/>\n\u300cSQL\u300d\u306f\u3001Excel\u306e\u300cMicrosoft Query\uff0fQueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff0f\u30d4\u30dc\u30c3\u30c8\u30c6\u30fc\u30d6\u30eb\uff08PivotCache\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff09ADO\uff0fDAO\uff0fPower Query\uff0fPowerPivot\u3082\uff1f\u304b\u306a\uff1f\uff08\u672a\u8abf\u67fb\u3067\u3059\uff09\u300d\u3001Access\u306e\u300c\u30af\u30a8\u30ea\uff0fADO\uff0fDAO\uff0f\u30d5\u30a9\u30fc\u30e0\u3084\u30ec\u30dd\u30fc\u30c8\u7b49\u306e\u90e8\u54c1\u306e\u968f\u6240\u300d\u3001SQL Server\u3001SQL Server Express\u3001MSDE\u3001\u30aa\u30e9\u30af\u30eb\u3001MySQL\u3001PostgreSQL\u3001\u305d\u306e\u4ed6\uff08\u591a\u5206Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3082\uff1f\uff09\u306a\u3069\u306a\u3069\u3001<span style=\"color: #0000ff;\"><b>\uff08\u30c7\u30fc\u30bf\u7ba1\u7406\u7cfb\u30fb\u8a08\u7b97\u7cfb\u306e\u30bd\u30d5\u30c8\u3060\u3051\u3067\u3059\u3051\u3069\uff09\u30bd\u30d5\u30c8\u306e\u57a3\u6839\u3092\u8d8a\u3048\u3066\u4f7f\u3048\u308b\u3082\u306e\uff08\uff1d\u7406\u8ad6\u3067\u3042\u308a\u3001\u6a5f\u80fd\u3067\u3042\u308a\u3001\u3042\u308b\u610f\u5473\u30d7\u30ed\u30b0\u30e9\u30e0\u8a00\u8a9e\uff09<\/b><\/span>\u3067\u3059\u3002<br \/>\n<font style=\"border-bottom:3px double #ff0000;\">\u305d\u3053\u305d\u3053\u8907\u96d1\u306a\u8907\u6570\u306e\u6761\u4ef6\u3067\u306e\u30c7\u30fc\u30bf\u306e\u8aad\u307f\u8fbc\u307f\u30fb\u66f8\u304d\u63db\u3048\u30fb\u96c6\u8a08\u30fb\u30ea\u30b9\u30c8\u30a2\u30c3\u30d7\u306a\u3069\u306b\u4f7f\u3044\u307e\u3059\u3002<br \/>\n\u305d\u3057\u3066\u3001\u305d\u308c\u304c\u300c\u9762\u5012\u304f\u3055\u3044\u30eb\u30fc\u30d7\u51e6\u7406\u306a\u3057\u300d\u3067\u300cExcelVBA\u3088\u308a\u3082\u77ed\u3044\u547d\u4ee4\u6587\u3067\u300d\u300c\u30bb\u30eb\u756a\u5730\u5358\u4f4d\u3067\u306f\u306a\u304f\u5217\u540d\u5358\u4f4d\u306e\u8aad\u307f\u76f4\u3057\u304c\u3057\u3084\u3059\u3044\u547d\u4ee4\u6587\u3067\u300d\u3084\u308c\u307e\u3059\u3002<\/font><BR><span style=\"color: #32cd32;\"><b>\u4f8b\u3048\u3070Excel\u306e\u5834\u5408\u306a\u3089\u305d\u306e\u5206\u91ce\u306b\u304a\u3044\u3066\u300c\u3060\u3051\u300d\u306f\u3001\u300cExcel\u306eVBA\u3084\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u95a2\u6570\u306a\u3093\u304b\u3088\u308a\u3082\u3088\u3063\u307d\u3069\u5f79\u306b\u7acb\u3064\u30fb\uff12\uff5e\uff11\uff10\u500d\u306f\u5f79\u306b\u7acb\u3064\u300d\u3001\u305d\u3046\u3044\u3063\u3066\u3082\u904e\u8a00\u3067\u306f\u306a\u3044\u304f\u3089\u3044\u3001\u305d\u3057\u3066\u3001VBA\u3068\u4f75\u7528\u3059\u308c\u3070\u300c\u4fbf\u5229\u304b\u3064\u3001\uff12\uff5e\uff11\uff10\u500d\u306f\u9ad8\u30b3\u30b9\u30d1\u3092\u5b9f\u73fe\u3067\u304d\u308b\u3082\u306e\u300d\u3067\u3059\u3002\uff08\u300cVBA\u3084\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u95a2\u6570\u306a\u3093\u304b\u3088\u308a\u300d\u3068\u306f\u8a00\u3044\u3059\u304e\u3067\u3057\u305f\u3002\u3059\u307f\u307e\u305b\u3093\u3002\u3067\u3082SQL\u304c\u3042\u308b\u3068\u3001\u7121\u99c4\u306aVBA\uff1a\u7279\u306b\u7121\u99c4\u306a\u30eb\u30fc\u30d7\u51e6\u7406\u3084\u7121\u99c4\u306a\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u95a2\u6570\u304c\u304b\u306a\u308a\u6e1b\u308b\u306e\u3082\u4e8b\u5b9f\u3067\u3059\u3002\uff09<\/b><\/span><BR>\u307e\u305f\u3001Google\u3084\u305d\u306e\u4ed6\u5927\u4f01\u696d\u306e\u793e\u5185\u30b7\u30b9\u30c6\u30e0\u3001\u4e16\u754c\u4e2d\u306eWeb\u30ab\u30fc\u30c8\u30b7\u30b9\u30c6\u30e0\u306e\u591a\u304f\u3001\u5f25\u751f\u30b7\u30ea\u30fc\u30ba\u3084\u5949\u884c\u30b7\u30ea\u30fc\u30ba\u3068\u3044\u3063\u305f\u5e02\u8ca9\u306e\u30d3\u30b8\u30cd\u30b9\u30bd\u30d5\u30c8\u306e\u30b7\u30b9\u30c6\u30e0\u3001\u305d\u308c\u4ee5\u5916\u306e\u4f1a\u8a08\u30b7\u30b9\u30c6\u30e0\u3084\u9867\u5ba2\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0\u3001\u58f2\u308a\u4e0a\u3052\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0\u3001\u5728\u5eab\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0\u3001\u4eba\u4e8b\u7528\u30b7\u30b9\u30c6\u30e0\u3001\u7b49\u3005\u3001\u4e16\u754c\u4e2d\u306e\u672c\u5f53\u306b\u591a\u304f\u306e\u30b7\u30b9\u30c6\u30e0\u304c\u300cSQL\u300d\u3092\u571f\u53f0\u3068\u3057\u305f\u3001\u300c\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b7\u30b9\u30c6\u30e0\u300d\u3067\u3067\u304d\u3066\u3044\u307e\u3059\u3002<BR><br \/>\nSQL\u306f\u3001\u4f8b\u3048\u3070 Excel\u3067\u4f7f\u3046\u5834\u5408\u3001\u300c\u6a5f\u80fd\u3068\u3057\u3066\u306e\u9762\u300d\u304b\u3089\u898b\u307e\u3059\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u3053\u3068\u304c\u3001<span style=\"color: #0000ff;\"><b><font style=\"border-bottom:3px double #0000ff;\">\u300c1\u56de\u306e\u51e6\u7406\u3067\u300d\u3001\u300c\u3059\u3079\u3066\u30fb1\u767a\u3067\u30fb\u5168\u90e8\u540c\u6642\u306b\u300d\u884c\u3048\u308b\u3001<\/font><\/b><\/span>\u300c\u3061\u3087\u3063\u3068\u30cf\u30a4\u30d6\u30ea\u30c3\u30c9\u306a\u6a5f\u80fd\uff08\u8d85\u9ad8\u6a5f\u80fd\u306a\u3001\u51fa\u6765\u5408\u3044\u81ea\u52d5\u8a08\u7b97\u5668\uff09\u300d\u3067\u3059\u3002<br \/>\n<span style=\"color: #7401DF;\"><b>\u30fbVLOOKUP\u95a2\u6570\u306a\u3069\u306e\u3001\u95a2\u6570\u3092\u4f7f\u3063\u3066\u306e\u8868\u3068\u8868\u3068\u306e\u7d10\u4ed8\u3051<br \/>\n\u3000\u3000\uff08\u6a2a\u3082\u7e26\u3082\u3067\u304d\u307e\u3059\u3002\u3082\u3061\u308d\u3093\u30012\u679a\u3060\u3051\u3067\u306a\u304f\u30013\u679a\u30fb4\u679a\u3068\u3067\u304d\u307e\u3059\u3002\uff09<br \/>\n\u30fb\u30aa\u30fc\u30c8\u30d5\u30a3\u30eb\u30bf\u6a5f\u80fd\u306e\u3088\u3046\u306a\u7d5e\u308a\u8fbc\u307f\uff08\u3082\u3061\u308d\u3093\u8907\u6570\u6761\u4ef6\u3067\u306e\u3002\uff09<br \/>\n\u30fb\u4e26\u3079\u66ff\u3048\u6a5f\u80fd\u306e\u3088\u3046\u306a\u4e26\u3079\u66ff\u3048<br \/>\n\u3000\u3000\uff08\u3082\u3061\u308d\u3093\u8907\u6570\u306e\u5217\u3067\u3044\u304f\u3064\u3067\u3082\u30fb\u5217\u3054\u3068\u306b\u6607\u9806\u30fb\u964d\u9806\u3067\u3002\uff09<br \/>\n\u30fb\u300c\u96c6\u8a08\u300d\u306e\u6a5f\u80fd\u3084\u30d4\u30dc\u30c3\u30c8\u306e\u3088\u3046\u306a\u96c6\u8a08\u95a2\u6570\u3092\u4f7f\u3063\u305f\u3088\u3046\u306a\u30b0\u30eb\u30fc\u30d7\u5316\u96c6\u8a08<br \/>\n\u3000\u3000\uff08\u30b0\u30eb\u30fc\u30d7\u5316\u3057\u3066\u306e\u3001\u56db\u5247\u6f14\u7b97\u3001\u500b\u6570\u30ab\u30a6\u30f3\u30c8\u3001\u5e73\u5747\u51fa\u3057\u3001\u6700\u5927\u30fb\u6700\u5c0f\u5024\u51fa\u3057\u3001\u306a\u3069\uff09<br \/>\n\u30fb\u547d\u4ee4\u6587\u306e\u30cd\u30b9\u30c8\uff08\u5165\u308c\u5b50\u69cb\u9020\uff09\u7684\u306a\u51e6\u7f6e\u304c\u3067\u304d\u307e\u3059\u3002\uff08\u526f\u554f\u3044\u5408\u308f\u305b\u3001\u3068\u3044\u3044\u307e\u3059\uff09<br \/>\n\u30fb\u305d\u306e\u96c6\u8a08\u30fb\u30ea\u30b9\u30c8\u30a2\u30c3\u30d7\u306e\u7d50\u679c\u3092\u3001\u5e38\u306b\u3001\u30d4\u30dc\u30c3\u30c8\u30c6\u30fc\u30d6\u30eb\u306e\u30bd\u30fc\u30b9\u306b\u3067\u304d\u3066\u3001\u96c6\u8a08\u7b49\u306e\u5185\u5bb9\u5909\u66f4\u304c\u5e38\u306b\u30d4\u30dc\u30c3\u30c8\u306b\u53cd\u6620\u3067\u304d\u308b\u3002<\/b><\/span><br \/>\n<font style=\"border-bottom:3px double #ff0000;\">\u3053\u308c\u3089\u3092\u300c\u3059\u3079\u3066\u30fb1\u56de\u306e\u51e6\u7406\u3067\u30fb1\u767a\u3067\u30fb\u5168\u90e8\u540c\u6642\u306b\u300d\u884c\u3048\u307e\u3059\u3002<\/font><br \/>\n<span style=\"color: #32cd32;\"><b>\u307e\u305f\u3001\u300c\u57fa\u672c\u30eb\u30fc\u30d7\u30d7\u30ed\u30b0\u30e9\u30e0\uff08\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\uff09\u3092\u66f8\u304b\u306a\u304f\u3066\u3082\u305d\u308c\u3089\u304c\u4e00\u767a\u3067\u540c\u6642\u306b\u51e6\u7406\u3067\u304d\u308b\u300d\u306e\u3067\u3001ExcelVBA\u3088\u308a\u3082\u9ad8\u901f\u306b\u51e6\u7406\u304c\u7d42\u308f\u308b\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002\uff08\u3082\u3061\u308d\u3093\u3001\u3044\u3064\u3082\u7d76\u5bfe\u3001\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3002\uff09<\/b><\/span><br \/>\n\u3068\u3044\u3046\u308f\u3051\u3067\u3001\u300c\u96c6\u8a08\u3084\u30ea\u30b9\u30c8\u30a2\u30c3\u30d7\u306b\u95a2\u3057\u3066 \u201d \u3060\u3051 \u201d \u300d\u8a00\u3048\u3070\u3001<span style=\"color: #0000ff;\"><b>\u300c\u4f8b\u3048\u3070 \u201d ExcelVBA\u3054\u3068\u304d \u201d \u306a\u3093\u304b\u3001\u307e\u3063\u305f\u304f\u3082\u3063\u3066SQL\u306e\u6bd4\u3067\u306f\u306a\u304f\uff08\uff1f\u3042\u308c\uff1f\u9006\u304b\u306a\uff1f\u65e5\u672c\u8a9e\u96e3\u3057\u3044\uff09\u3001\u8db3\u5143\u306b\u3082\u53ca\u3073\u307e\u305b\u3093\u3002\u300d\u30fb\u30fb\u30fb<\/b><\/span>\u3068\u8a00\u3063\u3066\u3044\u3044\u3082\u306e\u304b\u3069\u3046\u304b\u308f\u304b\u308a\u307e\u305b\u3093\u304c\u3001\u4e8b\u5b9f\u3001\u305d\u3046\u8a00\u3044\u305f\u304f\u3082\u306a\u308b\u304f\u3089\u3044\u3001ExcelVBA\u3088\u308a\u3082\u300c\u30b3\u30b9\u30d1\u304c\uff15\uff5e\uff11\uff10\u500d\u4ee5\u4e0a\u306b\u8df3\u306d\u4e0a\u304c\u308b\u5834\u9762\u300d\u304c\u5897\u3048\u3001\u304b\u3064\u3001\u4fbf\u5229\u306b\u4f7f\u3048\u308b\u5834\u9762\u304c\u5c11\u306a\u304f\u3042\u308a\u307e\u305b\u3093\u3002<br \/>\nExcel2000\u4ee5\u524d\u304b\u3089\u5b9f\u88c5\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u30012000\u304b\u3089\u304c\u6271\u3044\u3084\u3059\u3044\u3067\u3059\u3002\uff08\u9ad8\u6821\u306e\u5546\u696d\u79d1\u3067\u306f\u6559\u3048\u3066\u3044\u308b\u3068\u3053\u308d\u3082\u3042\u308b\u306e\u306b\uff1d\u57fa\u790e\u306a\u3089\u9ad8\u6821\u751f\u3067\u3082\u308f\u304b\u308b\u306e\u306b\u3001\u306a\u305c\u304b<a href=\"https:\/\/euc-access-excel-db.com\/tips\/ct07_se\/ct075012_xls2k_vba_tips\/fool-excelvba-teacher-writer-editor01\" target=\"_blank\" rel=\"noopener noreferrer\">VBA\u8b1b\u5e2b\u305f\u3061<\/a>\u3084\u307b\u3068\u3093\u3069\u306e\u30d1\u30bd\u30b3\u30f3\u6559\u5ba4\u306f\u6559\u3048\u3066\u304f\u308c\u307e\u305b\u3093\u3002Excel\u306e\u5927\u304d\u306a\u4f7f\u7528\u76ee\u7684\u306e\u3072\u3068\u3064\u306f\u8a08\u7b97\u30fb\u96c6\u8a08\u30fb\u30ea\u30b9\u30c8\u30a2\u30c3\u30d7\u3001\u306a\u306e\u306b\u3002\uff09<br \/>\n<span style=\"color: #32cd32;\"><b>\uff08Excel\u3067\u306f<font style=\"border-bottom:3px double #ff0000;\">\u9589\u3058\u305f<\/font>Excel\u30d5\u30a1\u30a4\u30eb\u306e\u30c7\u30fc\u30bf\u306e<font style=\"border-bottom:3px double #ff0000;\">\u300c\u66f8\u304d\u8fbc\u307f\u300d<\/font>\u306b\u3082\u4f7f\u3048\u307e\u3059\u3002\uff09<\/b><\/span><br \/>\n\u3053\u308c\u306b\u3088\u308a\u3001Excel\u3067\u306f\u3001\u5834\u5408\u306b\u3088\u3063\u3066\u306f\u300c\u5927\u5e45\u30fb\u304b\u3064\u30fb\u30e0\u30c0\u306aVBA\u30d7\u30ed\u30b0\u30e9\u30e0\u3084\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u95a2\u6570\u3092\u6fc0\u6e1b\u300d\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<BR><br \/>\n<span style=\"color: #0000ff;\"><b>\u307e\u305f\u3001VBA\u304c\u3067\u304d\u308b\u3088\u308a\u3082\u304a\u7d66\u6599\u304c\u3088\u304f\u306a\u308b\u30b1\u30fc\u30b9\u3082\u591a\u3044\u3082\u306e\u3067\u3059\u3002<\/b><\/span><br \/>\n<font style=\"border-bottom:3px double #ff0000;\"><span style=\"color: #ff8c00;\"><b>\u7406\u7531\u306f\u3001SQL\u306f\u300cExcel\u300d\u306e\u57fa\u790e\u300c\u3067\u306f\u306a\u304f\u300d\u3001<\/b><\/span><span style=\"color: #008000;\"><b>\u300c\u30c7\u30fc\u30bf\u7ba1\u7406\u300d\u306e\u57fa\u790e\u3060\u304b\u3089<\/b><\/span>\u3067\u3059\u3002<\/font><br \/>\n\u305d\u308c\u3086\u3048\u8272\u3093\u306a\u30bd\u30d5\u30c8\u3067\u5fdc\u7528\u304c\u5229\u304d\u307e\u3059\u304b\u3089\u3001\u7279\u306b\u300c\u304a\u82e5\u3044\u65b9\u3005\u300d\u306f\u3001VBA\u3092\u7fd2\u3046\u3088\u308a\u3001SQL\u3092\u6df1\u304f\u7fd2\u3046\u307b\u3046\u3092\u304a\u3059\u3059\u3081\u3057\u307e\u3059\u3002<span style=\"color: #7401DF;\"><b>\uff08\u3042\u3068\u3001\u3076\u3063\u3061\u3083\u3051\u3001Excel\u306e\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u95a2\u6570\u306b\u304a\u3051\u308b\u3001\u300c\u3088\u304f\u4f7f\u308f\u308c\u308b\u95a2\u6570\u300d\u306b\u306f\u3001\u518d\u5ea6\u3076\u3063\u3061\u3083\u3051\u300eSQL\u3092\u4f7f\u308f\u306a\u3044\u3068\u3057\u305f\u3089\u3069\u3046\u3057\u305f\u3089\u3044\u3044\u304b\uff1f\u3068\u3044\u3046\u7a74\u57cb\u3081\u306e\u305f\u3081\u306b\u4f5c\u3089\u308c\u305f\u306e\u3067\u306f\uff1f\u300f\u3068\u601d\u308f\u305b\u3089\u308c\u308b\u3082\u306e\u304c\u7d50\u69cb\u591a\u3044\u3067\u3059\u3002\u3063\u3066\u50d5\u306f\u307b\u3068\u3093\u3069\u4f7f\u3063\u305f\u3053\u3068\u306a\u3044\u3067\u3059\u3051\u3069\u30fb\u30fb\u30fb\u3002\uff09<\/b><\/span><br \/>\n\u3061\u306a\u307f\u306b\u3067\u3059\u304c\u3001\u50d5\u306fVBA\u306e\u4e0b\u306e\u4e0b\u3057\u304b\u3084\u308c\u306a\u3044\u30fb\u30fb\u30fb\u305d\u3093\u306a\u30ec\u30d9\u30eb\u306e\u982d\u3057\u304b\u3082\u3063\u3066\u3044\u307e\u305b\u3093\u3067\u3001\u3067\u3082\u3063\u3066\u300cSQL\u300d\u306f\u5965\u304c\u6df1\u3044\u3082\u3093\u3067\u3059\u304b\u3089\u305c\u3093\u305c\u3093\u3061\u3083\u3093\u3068\u3084\u308c\u3066\u3044\u307e\u305b\u3093\u3002<br \/>\n\u7c21\u5358\u306a\u90e8\u5206\u3057\u304b\u3067\u304d\u307e\u305b\u3093\u3002\u305f\u3060\u3001\u3067\u3082\u305d\u308c\u3067\u3082\u91cd\u5b9d\u3057\u3066\u3044\u307e\u3059\u3002<BR><br \/>\n<font style=\"border-bottom:3px double #ff0000;\">SQL\u306f\u3001\u300c\u50d5\u307f\u305f\u3044\u306a\u30d0\u30ab\u30fb\u30ab\u30b9\u3067\u3082\u3001\u6271\u3048\u308b\u90e8\u5206\u304c\u3061\u3083\u3093\u3068\u3042\u308b\u300d\u306e\u3067\u3059\u3002<BR><br \/>\n\u306a\u306e\u3067\u3001\u300c\u4e2d\u9ad8\u751f\u3067\u3082\u6271\u3048\u308b\u300d\u90e8\u5206\u3082\u591a\u3005\u3042\u308a\u307e\u3059\u3002<br \/>\n\u306a\u306e\u3067\u3001\u9ad8\u6821\u306e\u5546\u696d\u79d1\u3067\u3082\u6559\u3048\u3089\u308c\u3066\u3044\u307e\u3059<\/font>\u3002<BR><BR><br \/>\n<span style=\"color: #0000ff;\"><b>\u7fd2\u5f97\u306b\u3064\u3044\u3066\u3082\u3001<a href=\"https:\/\/gihyo.jp\/book\/2019\/978-4-297-10717-8\" target=\"_blank\" rel=\"noopener noreferrer\">\u3042\u308b\u672c<\/a>\u306b\u3088\u308b\u3068\uff08\u304b\u3044\u3064\u307e\u3093\u3067\u306e\u50d5\u306e\u52dd\u624b\u306a\u8981\u7d04\u3067\u3059\u304c\uff09\u3001<br \/>\n\u300e <font style=\"border-bottom:3px double #ff0000;\">\uff08ExcelVBA\u3082\u542b\u3081\uff09C\uff03\u3084Java\u3001Ruby\u3001Python\u306a\u3069\u306e\u624b\u7d9a\u304d\u578b\u306e\u8a00\u8a9e\u3067\u30b4\u30ea\u30b4\u30ea\u306b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u3044\u3066\u304d\u305f\u4eba\u305f\u3061\u306f\u3001\u305d\u306e\u3084\u308a\u65b9\uff08\u7279\u306b\u30eb\u30fc\u30d7\u51e6\u7406\uff09\u304b\u3089\u629c\u3051\u51fa\u305b\u306a\u304f\u3066SQL\u3092\u7406\u89e3\u3067\u304d\u306a\u3044\u30fb\u656c\u9060\u3059\u308b\u30fb\u9762\u5012\u304c\u308b\u30fb\u3061\u3083\u3093\u3068\u3057\u305fSQL\u306e\u57fa\u790e\u3092\u3084\u308d\u3046\u3068\u3057\u306a\u3044\u4eba\u304c\u591a\u3044\u3067\u3059\u3088\u3002\u7406\u89e3\u3067\u304d\u308b\u4eba\u304c\u4e0a\u306b\u5c45\u306a\u3044\u305f\u3081\u306b\u793e\u5185\u30eb\u30fc\u30eb\u3067\u9006\u306b\u5236\u9650\u304b\u3051\u3066\u3057\u307e\u3046\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3057\u3002\u305d\u308c\u3067\u308f\u3056\u308f\u3056\u30eb\u30fc\u30d7\u3092\uff12\u91cd\uff13\u91cd\u306b\u5165\u308c\u3066\u4f4e\u901f\u306b\u3057\u3066\u3057\u307e\u3046\u3053\u3068\u3082\u3042\u308b\u30fb\u30fb\u30fb\u3002<\/font><br \/>\n\uff08\u50d5\u306e\u611f\u60f3\u2192\u3042\u308b\u610f\u5473\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306b\u9ad8\u901f\u306a\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30a8\u30f3\u30b8\u30f3\u3092\u4f7f\u3063\u3066\u3044\u308b\u610f\u5473\u304c\u7121\u3044\u30fb\u30fb\u30fb\u307f\u305f\u3044\u306a\u3053\u3068\uff1f\uff09<br \/>\n<span style=\"color: #32cd32;\"><b>\u9006\u306b\u3001Excel\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u3067LOOKUP\u95a2\u6570\u3084IF\u95a2\u6570\u306a\u3069\u3092\u4f7f\u3048\u308b\u3060\u3051\u304f\u3089\u3044\u306e\u6d3e\u9063\u306e\u65b9\u306e\u307b\u3046\u304c\u3001\u30b4\u30ea\u30b4\u30ea\u306eC\uff03\u3084Java\u3092\u66f8\u304f\u4eba\u3088\u308a\u3082\u7fd2\u5f97\u304c\u65e9\u3044\u3067\u3059\u3002<br \/>\n<font style=\"border-bottom:3px double #ff0000;\">\u305d\u3046\u3044\u3046\u98a8\u306b\u3001\u6d3e\u9063\u306e\u65b9\u306e\u307b\u3046\u304c\u3042\u3063\u3068\u3044\u3046\u9593\u306bSQL\u3092\u7fd2\u5f97\u3057\u3066\u3057\u307e\u3046\u3068\u3044\u3046\u73fe\u5834\u3092\u3001\u79c1\u306f\u4f55\u5ea6\u3082\u76ee\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/font><\/b><\/span><br \/>\n\u3042\u308bExcel\u30b7\u30fc\u30c8\u51e6\u7406\uff08\u3060\u3051\uff09\u306b\u6163\u308c\u305f\u4e8b\u52d9\u8077\u306e\u65b9\u306f\u3001\u79c1\u306eSQL\u8b1b\u5ea7\u306b\u53c2\u52a0\u3057\u3066\u30012\u65e5\u76ee\u3067DML\u306b\u3064\u3044\u3066\u79c1\u3068\u540c\u3058\u30ec\u30d9\u30eb\u306b\u306a\u3063\u305f\u4eba\u3082\u3044\u307e\u3057\u305f\u3002 \u300f<br \/>\n\u307f\u305f\u3044\u306a\u611f\u3058\u3053\u3068\u304c\u66f8\u3044\u3066\u3042\u308a\u307e\u3059\u3002<br \/>\n\uff08\u203bDML\u30fb\u30fb\u30fb\u30c7\u30fc\u30bf\u306e\u53d6\u5f97\uff0f\u8ffd\u52a0\uff0f\u7de8\u96c6\uff08\u66f4\u65b0\uff09\uff0f\u524a\u9664\u306a\u3069\u306e\u30c6\u30fc\u30d6\u30eb\u64cd\u4f5c\u3059\u308b\u547d\u4ee4\u3053\u3068\uff1f\uff09<BR><br \/>\n<span style=\"color: #7401DF;\"><b>\u203b\u30fb\u30fb\u30fb\u7d50\u679c\u3001\u6d3e\u9063\u306e\u4e8b\u52d9\u8077\u306e\u65b9\u306e\u307b\u3046\u304c\u3001\u300cSQL\u3092\u656c\u9060\u3057\u3066\u3044\u308b\u30b4\u30ea\u30b4\u30ea\u306e\u30d7\u30ed\u30b0\u30e9\u30de\u9054\u300d\u304c\u66f8\u304f\u3088\u308a\u3082\u300c\u9ad8\u901f\u306a\u51e6\u7406\u300d\u304c\u3001\u300cSQL\u3092\u656c\u9060\u3057\u3066\u3044\u308b\u30b4\u30ea\u30b4\u30ea\u306e\u30d7\u30ed\u30b0\u30e9\u30de\u9054\u300d\u3088\u308a\u3082\u7d20\u65e9\u304f\u66f8\u3051\u308b\u30fb\u30fb\u30fb\u3068\u3044\u3046\u3053\u3068\u306a\u3093\u3067\u3057\u3087\u3046\u304b\uff1f\uff1f\uff1f\u308f\u304b\u308a\u307e\u305b\u3093\u3051\u3069\u30fb\u30fb\u30fb\u3002<br \/>\n\u50d5\u306f\u30d0\u30ab\u306a\u306e\u3067SQL\u306f\u5c11\u3057\u3057\u304b\u6271\u3048\u305a\u3001\u305d\u3093\u306a\u3053\u3068\u60f3\u50cf\u3082\u3067\u304d\u307e\u305b\u3093\u304c\u30fb\u30fb\u30fb\u30fb\u3002<\/b><\/span><\/b><\/span><BR><BR><br \/>\n\u307e\u305f\u3001\u4f8b\u3048\u3070Excel\u306e\u5834\u5408\u3067\u306f\u3001\u30bb\u30eb\u30a2\u30c9\u30ec\u30b9\u30d9\u30fc\u30b9\u306e\u308f\u304b\u308a\u3065\u3089\u3044\u30d7\u30ed\u30b0\u30e9\u30e0\uff08\u8aad\u307f\u3065\u3089\u3044\u30d7\u30ed\u30b0\u30e9\u30e0\uff09\u3092\u66f8\u304f\u91cf\u304c\u3050\u3063\u3068\u6e1b\u3063\u3066\u308f\u304b\u308a\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3057\u3001\u300c\u7121\u99c4\u300d\u306a\u300cVBA\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u591a\u7528\u3084\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u95a2\u6570\u306e\u591a\u7528\u300d\u3082\u6e1b\u308a\u307e\u3059\u3002\u7279\u306b\u3001\u300c\u8907\u6570\u306e\u8907\u96d1\u306a\u6761\u4ef6\u3067\u306e\u30c7\u30fc\u30bf\u62bd\u51fa\uff08\uff1d\u4eee\u60f3\u8868\u306e\u4f5c\u6210\uff09\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u300d\u3067\u305d\u308c\u304c\u9855\u8457\u3067\u3059\u3002<br \/>\n\u3042\u3068\u3001Access\u304c\u7121\u304f\u3066\u3082Access\u306eMDB\u30d5\u30a1\u30a4\u30eb\u3084SQL Server\u3001\u30aa\u30e9\u30af\u30eb\u3001\u306a\u3069\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30c7\u30fc\u30bf\u3082\u8aad\u307f\u66f8\u304d\u3067\u304d\u307e\u3059\uff08odbc\u30c9\u30e9\u30a4\u30d0\u7d4c\u7531\u3067\uff09\u3002<br \/>\n<span style=\"color: #32cd32;\"><b>\u3055\u3089\u306b\u306f\u3001\u9589\u3058\u305fExcel\u30d5\u30a1\u30a4\u30eb\u306e\u30c7\u30fc\u30bf\u3092\u300c\u305d\u306eExcel\u30d5\u30a1\u30a4\u30eb\u3092\u9589\u3058\u305f\u307e\u307e\u300d\u3001<\/b><\/span>\u8aad\u307f\u8fbc\u3080\u3053\u3068\u306f\u3082\u3061\u308d\u3093\u3001<span style=\"color: #0000ff;\"><b>\u66f8\u304d\u63db\u3048\u305f\u308a\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u3066\u3057\u307e\u3046\u306e\u3067\u3001<\/b><\/span>\u3068\u3066\u3082\u4fbf\u5229\u3067\u3059\u3002<br \/>\n<span style=\"color: #7401DF;\"><b>\u3064\u307e\u308a\u3001VBA\u3060\u3051\u3067\u306f\u5b9f\u73fe\u3067\u304d\u306a\u3044\u3053\u3068\u304c\u5b9f\u73fe\u3067\u304d\u305f\u308a\u3082\u3057\u307e\u3059\u3057\u30fb\u30fb\u30fb\u3001<\/b><\/span>\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u30d7\u30ed\u30b0\u30e9\u30e0\u4f5c\u6210\u304c\u3001\u96e3\u6613\u5ea6\u304c\u4e0a\u304c\u3063\u3066\u81ea\u5206\u306e\u624b\u306b\u8ca0\u3048\u306a\u304f\u306a\u3063\u3066\u30b7\u30b9\u30c6\u30e0\u696d\u8005\u306b\u5916\u6ce8\u3059\u308b\u3068\u304d\u3082\u3001\u30b7\u30b9\u30c6\u30e0\u696d\u8005\u306fVBA\u3088\u308a\u3082SQL\u306e\u307b\u3046\u304c\u30b9\u30e9\u30b9\u30e9\u306b\u7406\u89e3\u3057\u3084\u3059\u3044\u306e\u3067\u3001\u5916\u6ce8\u8cbb\u3092\u5c11\u3057\u3067\u3082\u5b89\u304f\u3067\u304d\u307e\u3059\u3002\u5c0f\u898f\u6a21\u306a\u57fa\u5e79\u30b7\u30b9\u30c6\u30e0\u69cb\u7bc9\u306e\u5834\u5408\u3001Access\u3067\u4f5c\u3063\u305f\u307b\u3046\u304c\u3044\u3044\u7406\u7531\u3082\u3053\u3053\u306b\u3042\u308a\u307e\u3059\u3002<a href=\"https:\/\/euc-access-excel-db.com\/tips\/ct07_se\/ct071350_automation_non-autosoft\/excel-access-diff01\" target=\"_blank\" rel=\"noopener noreferrer\">\u3053\u3061\u3089<\/a>\u306b\u3082\u66f8\u304d\u307e\u3057\u305f\u304c\u3001Access\u306fSQL\u3092\u4f7f\u3046\u3053\u3068\u304c\u524d\u63d0\u306e\u30bd\u30d5\u30c8\u3067\u3001\u304b\u3064\u3001\u5185\u90e8\u69cb\u9020\u3082SQL\u306e\u7406\u8ad6\u4e0a\u306b\u6210\u308a\u7acb\u3063\u3066\u3044\u308b\u304b\u3089\u3067\u3059\u3002\uff08\u3053\u308c\u304c\u300c\u7406\u7531\u306e\u3059\u3079\u3066\u300d\u3001\u3067\u306f\u306a\u3044\u3067\u3059\u304c\u3002\uff09<br \/>\n<span style=\"color: #0000ff;\"><b>\u307e\u305f\u3001\u300c\u8868\u306e\u8aad\u307f\u66f8\u304d\u306b\u95a2\u3057\u3066\u3060\u3051\u300d\u306f\u3001\u300e\u30af\u30e9\u30b9\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u3063\u3066 \u201d\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff0f\u30d7\u30ed\u30d1\u30c6\u30a3\uff0f\u30e1\u30bd\u30c3\u30c9\u201d \u306a\u3069\u3092\u81ea\u4f5c\u3059\u308b\u300f\u30fb\u30fb\u30fb\u3068\u3044\u3063\u305f\u5fc5\u8981\u6027\u30fb\u9762\u5012\u30fb\u624b\u9593\u3082\u3051\u3063\u3053\u3046\u6e1b\u308b\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\uff08\u30af\u30e9\u30b9\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u3053\u3068\u3092\u8aac\u660e\u3059\u308b\u3068\u304d\u306b\u3001Excel\u3067\u306e\u5834\u5408\u3001\u300c\u8868\u3092\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5316\u3059\u308b\u4f8b\u300d\u3092\u4f7f\u3063\u3066\u8aac\u660e\u3055\u308c\u308b\u30b1\u30fc\u30b9\u304c\u591a\u3044\u306e\u3067\u3059\u3051\u3069\u3001\u5b9f\u969b\u306b\u306f\u3001<font style=\"border-bottom:3px double #ff0000;\">\u300e \u3053\u306e\u7a0b\u5ea6\u306e\u3053\u3068\u306a\u3089\u3044\u3061\u3044\u3061\u30af\u30e9\u30b9\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u3046\u5fc5\u8981\u3082\u306a\u304f\u3001ADO\u30fbDAO\u306e\u305d\u308c\u305e\u308c\u306e\u300c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d\u3068\u300cSQL\u300d\u3067\u3084\u3063\u305f\u307b\u3046\u304c\u9ad8\u6a5f\u80fd\u3060\u3057\u30fb\u65e9\u3044\u3057\u30fb\u30e1\u30f3\u30c6\u3082\u5f15\u304d\u7d99\u304e\u3082\u697d\u304b\u306a\u30fb\u30fb\u30fb\u300f<\/font>\u3068\u611f\u3058\u3066\u3057\u307e\u3046\u5185\u5bb9\u304c\u591a\u3044\u3067\u3059\u3002\u305f\u3060\u3001Excel\u4ee5\u5916\u3067\u306f\u3069\u3046\u306a\u306e\u304b\u308f\u304b\u308a\u307e\u305b\u3093\u3057\u3001\u3082\u3061\u308d\u3093\u3001\u8868\u3092\u6271\u3046\u4ee5\u5916\u306e\u3053\u3068\u3084\u3001\u8868\u3092\u6271\u3046\u306e\u3067\u3082\u7279\u6b8a\u306a\u3053\u3068\u3092\u3057\u305f\u3044\u5834\u5408\u306a\u3089\u30af\u30e9\u30b9\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u3046\u610f\u5473\u306f\u5927\u304d\u3044\u306e\u3067\u3057\u3087\u3046\u3051\u3069\u30fb\u30fb\u30fb\u3002\uff09<\/b><\/span><br \/>\n\u7279\u306bExcel\u3067\u306f\u3001\u3059\u3079\u3066\u3092\u300cSQL\u300d\u3067\u3084\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u300cMicrosoft Query\u300d\u3084\u300cVBA\u300d\u306e\u4e2d\u3067\u300c\u90e8\u5206\u7684\u306b\u300d\u4f7f\u3046\u3068\u3001\u304b\u306a\u308a\u30b3\u30b9\u30d1\u30a2\u30c3\u30d7\u306b\u7d50\u3073\u4ed8\u304d\u307e\u3059\u306e\u3067\u3001\u305c\u3072\u3001SQL\u3092\uff08\u50d5\u304c\u3067\u304d\u308b\u304f\u3089\u3044\u306e\u7c21\u5358\u306a\u30ec\u30d9\u30eb\u304b\u3089\u3067\u3082\u5341\u5206VBA\u306e\u4e2d\u3067\u4f7f\u3048\u308b\u306e\u3067\uff09\u3001\u5b66\u3093\u3067\u307f\u308b\u3053\u3068\u3092\u304a\u52e7\u3081\u3057\u307e\u3059\u3002<\/b><\/span><\/p>\n<p>\uff1d\uff1d\uff1d\uff1d\uff1d\uff1d\uff1d\uff1d\uff1d\uff1d\uff1d\uff1d\uff1d<br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n<span style=\"color: #ff0000;\">\u203b\u307e\u3060\u66f8\u304d\u304b\u3051\u3067\u3059\u3002\u3059\u307f\u307e\u305b\u3093\u3002<\/span><br \/>\n<span style=\"color: #ff0000;\">\u203b\u9593\u9055\u3063\u3066\u305f\u3089\u3059\u307f\u307e\u305b\u3093\u3002<\/span><br \/>\n<span style=\"color: #ff0000;\">\u203b\u30e1\u30e2\u66f8\u304d\u306a\u306e\u3067\u3001\u81ea\u5206\u3067\u3082\u610f\u5473\u4e0d\u660e\u306a\u7b87\u6240\u3082\u591a\u3044\u3067\u3059\u3002\u3054\u3081\u3093\u306a\u3055\u3044\u3002<\/span><br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n\u76ee\u6b21<br \/>\n<span style=\"font-size: 9pt;\"> \u3000<a href=\"#lbl_20\">\u2605 \u306f\u3058\u3081\u306b\uff08\u300cSQL\u300d\u306e\u6982\u8981\u30fb\u96e3\u6613\u5ea6\u306a\u3069\uff09<\/a><\/SPAN><br \/>\n<span style=\"font-size: 9pt;\"> \u3000<a href=\"#lbl_36\">\u2605 SQL\u306e\u6709\u540d\u5ea6<\/a><\/SPAN><br \/>\n<span style=\"font-size: 9pt;\"> \u3000<a href=\"#lbl_45\">\u2605 SQL\u3067\u3067\u304d\u308b\u3053\u3068\u3084\u4f7f\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u305f\u3081\u306e\u524d\u6761\u4ef6\uff08Excel\u76ee\u7dda\uff09<\/a><\/SPAN><br \/>\n<span style=\"font-size: 9pt;\"> \u3000<a href=\"#lbl_68\">\u2605 SQL\u306e\u57fa\u672c\u7684\u30fb\u4ee3\u8868\u7684\u306a\u66f8\u5f0f\uff08\u69cb\u9020\u30fb\u69cb\u6587\uff09<\/a><\/SPAN><br \/>\n<span style=\"font-size: 9pt;\"> \u3000<a href=\"#lbl_130\">\u2605 EXCEL\u3067SQL\u3092\u4f7f\u3046\u65b9\u6cd5\uff14\u3064<\/a><\/SPAN><br \/>\n<span style=\"font-size: 9pt;\"> \u3000 \u3000\u3000\u3000<a href=\"#lbl_132\">(01)\u300cMicrosoft Query\u300d\u3068\u3044\u3046\u6a5f\u80fd\u3092\u4f7f\u3046\u3002<\/a><\/SPAN><br \/>\n<span style=\"font-size: 9pt;\"> \u3000 \u3000\u3000\u3000<a href=\"#lbl_134\">(02)VBA\u306e\u300cQueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d+SQL\u30fb\u30fb\u30fb\u30fb\uff08(01)\u3092\u300c\u30de\u30af\u30ed\u306e\u8a18\u9332\u300d\u3067\u4f5c\u308b\u3068\u3067\u304d\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\uff09<\/a><\/SPAN><br \/>\n<span style=\"font-size: 9pt;\"> \u3000 \u3000\u3000\u3000<a href=\"#lbl_136\">(03)ADO\u63a5\u7d9a+VBA+SQL<\/a><\/SPAN><br \/>\n<span style=\"font-size: 9pt;\"> \u3000 \u3000\u3000\u3000<a href=\"#lbl_138\">(04)DAO\u63a5\u7d9a+VBA+SQL<\/a><\/SPAN><br \/>\n<span style=\"font-size: 9pt;\"> \u3000 \u3000\u3000\u3000<a href=\"#lbl_140\">(05)\u88dc\u8db3\uff08Excel\u3067\u306eSQL\u304c\u3089\u307f\u306e\u5b66\u7fd2\u306b\u3064\u3044\u3066\uff09<\/a><\/SPAN><br \/>\n<span style=\"font-size: 9pt;\"> \u3000 \u3000\u3000\u3000<a href=\"#lbl_142\">(06)Excel\u306eSQL\u3067\u306f\u300c\u524a\u9664\u300d\u3060\u3051\u304c\u3067\u304d\u306a\u3044<\/a><\/SPAN><br \/>\n<span style=\"font-size: 9pt;\"> \u3000<a href=\"#lbl_145\">\u2605 Excel\u306e\u300cMicrosoftQuery\u300d\u3067SQL\u6587\u3092\u6271\u3046\u5834\u5408\u306e\u6ce8\u610f\u4e8b\u9805<\/a><\/SPAN><br \/>\n<span style=\"font-size: 9pt;\"> \u3000<a href=\"#lbl_151\">\u2605 SQL\u6587\u306e\u66f8\u304d\u65b9\u4e8b\u4f8b\uff08VBA\u3068\u6bd4\u8f03\u3057\u305f\u96e3\u6613\u5ea6\u306e\u53c2\u8003\u3002Excel\u306eMicrosoftQuery\u3092\u4f7f\u7528\u3057\u305f\u5834\u5408\u3002\uff09<\/a><\/SPAN><\/p>\n<p>\u203bShift\uff0bTAB\u30ad\u30fc\u3001\u3082\u3057\u304f\u306f\u3001Home\u30ad\u30fc\u3001Home\u30ad\u30fc\uff0bTAB\u6570\u56de\u3001\u3092\u62bc\u3059\u3068\u3001\u76ee\u6b21\u4ed8\u8fd1\u306b\u623b\u308c\u307e\u3059\u3002<br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n\uff1d\uff1d\uff1d\uff1d\uff1d\uff1d\uff1d\uff1d\uff1d\uff1d\uff1d\uff1d\uff1d<br \/>\n\u4ee5\u4e0b\u3001\u672c\u6587\u3067\u3059\u3002<br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n<a name=\"lbl_20\">\u2605 \u306f\u3058\u3081\u306b\uff08\u300cSQL\u300d\u306e\u6982\u8981\u30fb\u96e3\u6613\u5ea6\u306a\u3069\uff09<\/a><\/p>\n<p>\u300cSQL\u300d\u3068\u306f\u3001VBA\u3084\u4ed6\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3001\u3042\u308b\u3044\u306f\u591a\u6bb5\u7684\u306a\u9762\u5012\u304f\u3055\u3044Excel\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u95a2\u6570\u3092\u4f7f\u308f\u305a\u3068\u3082\u3001\u3067\u304d\u308b\u3060\u3051\u7c21\u5358\u306b\uff08\u5c11\u306a\u304f\u3068\u3082VBA\u3084\u591a\u6bb5\u95a2\u6570\u306e10\u500d\u306f\u624b\u9593\u3092\u304b\u3051\u305a\u306b\uff09\u3001<a href=\"https:\/\/euc-access-excel-db.com\/tips\/ct08_exceltruebasic\/ct080201_keieisya_true_wants\/executive_wants\" target=\"_blank\" rel=\"noopener noreferrer\">\u3053\u3061\u3089<\/a>\u306b\u793a\u3057\u305f\u3088\u3046\u306a\u30c7\u30fc\u30bf\u3084\u30ea\u30b9\u30c8\u3092\u81ea\u7531\u81ea\u5728\u306b\u53d6\u308a\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u305f\u30fb\u30fb\u30fb\u3001\u30c7\u30fc\u30bf\u7ba1\u7406\u5c02\u7528\u306e\u8a00\u8a9e\u3068\u3044\u3046\u304b\u6a5f\u80fd\u3068\u3044\u3046\u304b\u7406\u8ad6\u3068\u3044\u3046\u304b\u3001\u305d\u3093\u306a\u611f\u3058\u306e\u3082\u306e\u3067\u3059\u3002\uff08Excel\u306e\u30d5\u30a3\u30eb\u30bf\u6a5f\u80fd\u3068\u96c6\u8a08\u6a5f\u80fd\u3092\u304b\u3051\u5408\u308f\u305b\u3066\u30fb\u30fb\u30fb\u3001\u30cf\u30a4\u30d6\u30ea\u30c3\u30c9\u3068\u3044\u3044\u307e\u3059\u304b\u3001\u9ad8\u6027\u80fd\u306b\u3057\u305f\u611f\u3058\u306e\u30e2\u30ce\u3067\u3059\u3002\uff09<\/p>\n<p><span style=\"color: #0000ff;\">\u5177\u4f53\u7684\u306b\u306f\u3001<a href=\"https:\/\/euc-access-excel-db.com\/tips\/ct09_biz-pctec\/ct090201_biz_pc_basic\/book_sugoi-quantified_n_pdca\" target=\"_blank\" rel=\"noopener noreferrer\">\u300c\u554f\u984c\u306e\u6570\u5024\u5316\u300d\u3001\u300c\u9078\u629e\u306e\u96c6\u4e2d\u300d\u3001\u300c\u4eee\u8aac\u3068\u691c\u8a3c\u300d\u3001\u300cPDCA\u30b5\u30a4\u30af\u30eb\u56de\u3057\u300d\u3001<\/a>\u7b49\u3005\u3001\u3068\u3044\u3063\u305f\u3053\u3068\u306b\u5341\u5206\u4f7f\u3048\u308b\u30c7\u30fc\u30bf\uff08\u8868\uff09\u304c\u3001SE\u3084\u30d7\u30ed\u30b0\u30e9\u30de\u3067\u306a\u304f\u3068\u3082\uff08\uff1dVBA\u3084\u4ed6\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3092\u4f7f\u308f\u305a\u3068\u3082\uff09\u3001\u79c1\u305f\u3061\u7d20\u4eba\u3067\u3082\u5341\u5206\u3001\u4f8b\u3048\u3070\u57fa\u5e79\u30b7\u30b9\u30c6\u30e0\u304b\u3089\u81ea\u4e3b\u7684\u306b\u6bd4\u8f03\u7684\u65e9\u304f\u53d6\u308a\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u308b\u3082\u306e\u3067\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #0000ff;\">\u57fa\u672c\u7684\u306b\u306f\u3001\u30c7\u30fc\u30bf\u306e\u96c6\u8a08\u3084\u62bd\u51fa\u306b\u95a2\u3057\u3066\u306f\u3001VBA\u3084\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u95a2\u6570\u306e\u7121\u99c4\u306a\u591a\u7528\u3068\u6bd4\u3079\u308b\u3068\u3001\u300c\u591a\u520610\u500d\u306f\u7c21\u5358\u300d\u3067\u3001\u304b\u3064\u3001\u300c10\u500d\u306f\u8907\u96d1\u306a\u30c7\u30fc\u30bf\u306e\u53d6\u308a\u51fa\u3057\u300d\u3092\u30012\uff5e10\u500d\u300c\u77ed\u6642\u9593\u306b\u300d\u53ef\u80fd\u304b\u3068\u601d\u3044\u307e\u3059\u3002\u30d4\u30dc\u30c3\u30c8\u307b\u3069\u7c21\u5358\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u3067\u3082\u79c1\u305f\u3061\u30c9\u7d20\u4eba\u306b\u3082\u6271\u3048\u308b\u30ec\u30d9\u30eb\u306e\u64cd\u4f5c\u65b9\u6cd5\u306e\u5834\u5408\u3001\u300c\u30a4\u30e1\u30fc\u30b8\u7684\u306b\u306f\u30d4\u30dc\u30c3\u30c8\u306b\u8fd1\u3044\u611f\u3058\u300d\u3067\u3059\u3002<\/span><br \/>\n\u3082\u3057\u304b\u3057\u305f\u3089\u3001\u4e2d\u9ad8\u751f\u304b\u5c0f\u5b66\u751f\u306e\u9ad8\u5b66\u5e74\u306e\u5b50\u3067\u3082\u3001\u7c21\u5358\u306a\u3082\u306e\u306a\u3089\u89e6\u308c\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<br \/>\n\u662f\u975e\u304a\u5b50\u69d8\u306b\u3082\u30c1\u30e3\u30ec\u30f3\u30b8\u3057\u3066\u307b\u3057\u3044\u3067\u3059\u3002\uff08\u30b2\u30fc\u30e0\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3070\u304b\u308a\u3067\u306f\u306a\u304f\u3002\uff09<\/p>\n<p>\u3082\u3061\u308d\u3093\u3001\u300c\u7c21\u5358\u306b\u300d\u3068\u306f\u3044\u3063\u3066\u3082\u3001SQL\u306f\u3068\u3066\u3082\u5965\u304c\u6df1\u304f\u3066\u3001\u79c1\u305f\u3061\u7d20\u4eba\u3067\u306f\u3001\u300c\u7c21\u5358\u306b\u300d\u306e\u90e8\u5206\u3057\u304b\u6700\u521d\u304b\u3089\u6271\u3048\u307e\u305b\u3093\u3002<br \/>\n\u5b9f\u969b\u306b\u306f\u30d7\u30ed\u306e\u4eba\u3057\u304b\u7406\u89e3\u3067\u304d\u306a\u3044\u300c\u3068\u3066\u3082\u3058\u3083\u306a\u3044\u3051\u3069\u7406\u89e3\u3067\u304d\u306a\u3044\u96e3\u89e3\u300d\u306a\u300cSQL\u6587\uff08SQL\u547d\u4ee4\u6587\uff09\u300d\u3082\u591a\u3044\u3067\u3059\u304c\u3001<span style=\"color: #0000ff;\">\u3067\u3082\u305d\u308c\u306f\u3001SQL\u3092\u304b\u3051\u305f\u3082\u306e\u306b\u3055\u3089\u306bSQL\u3092\u304b\u3051\u3001\u307e\u305f\u3055\u3089\u306bSQL\u3092\u304b\u3051\u3066\u30fb\u30fb\u30fb\u3068\u4f55\u6bb5\u968e\u306b\u3082\u300c\u591a\u6bb5\u7684\u306b\u300dSQL\u3092\u304b\u3051\u308b\u3053\u3068\u3067\u3001\u79c1\u305f\u3061\u7d20\u4eba\u3067\u3082\u306a\u3093\u3068\u304b\u5927\u4f53\u306e\u3068\u3053\u308d\u306f\u30ab\u30d0\u30fc\u3057\u3066\u3044\u3051\u307e\u3059\u3002\uff08\u6bd4\u8f03\u7684\u77ed\u6642\u9593\u306b\u3002\u5c11\u306a\u304f\u3068\u3082ExcelVBA\u3088\u308a\u306f\u901f\u304f\u30fb\u65e9\u304f\u30fb\u5b89\u304f\u3002\uff09<\/span><\/p>\n<p><span style=\"color: #008000;\">\u5927\u62b5\u306f\u300c\u7c21\u5358\u306b\u300d\u306e\u90e8\u5206\u3060\u3051\u3067\u3001<a href=\"https:\/\/euc-access-excel-db.com\/tips\/ct09_biz-pctec\/ct090201_biz_pc_basic\/book_sugoi-quantified_n_pdca\" target=\"_blank\" rel=\"noopener noreferrer\">\u300c\u554f\u984c\u306e\u6570\u5024\u5316\u300d\u3001\u300c\u9078\u629e\u306e\u96c6\u4e2d\u300d\u3001\u300c\u4eee\u8aac\u3068\u691c\u8a3c\u300d\u3001\u300cPDCA\u30b5\u30a4\u30af\u30eb\u56de\u3057\u300d\u3001<\/a>\u7b49\u3005\u306b\u306f\u5341\u5206\u4f7f\u3048\u308b\u30c7\u30fc\u30bf\u304c\u53d6\u308a\u51fa\u3057\u3067\u304d\u307e\u3059\u306e\u3067\u3001\u3054\u5b89\u5fc3\u304f\u3060\u3055\u3044\u3002\uff08\u305d\u308c\u3089\u306b\u306f\u3082\u3068\u3082\u3068\u3001\u8907\u96d1\u306a\u6570\u5024\u96c6\u8a08\u306f\u5fc5\u8981\u306a\u3044\u3053\u3068\u306e\u307b\u3046\u304c\u591a\u3044\u306e\u3067\uff09<\/span><br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n<a name=\"lbl_36\">\u2605 SQL\u306e\u6709\u540d\u5ea6<\/a><\/p>\n<p>\u306a\u304a\u3001\u300cSQL\u300d\u306f\u3001\u6709\u540d\u5ea6\u306b\u95a2\u3057\u3066\u8a00\u3046\u3068\u3001\u300c\u30c7\u30fc\u30bf\u7ba1\u7406\u306e\u4e16\u754c\u6a19\u6e96\u300d\u3068\u8a00\u3063\u3066\u3082\u904e\u8a00\u3067\u306a\u3044\u3082\u306e\u3067\u3001\u305d\u306e\u4e16\u754c\u3067\u306f\u300c\u8907\u5f0f\u7c3f\u8a18\u300d\u3068\u540c\u3058\u304b\u3001\u3042\u308b\u3044\u306f\u305d\u308c\u4ee5\u4e0a\u306b\u6709\u540d\u3067\u3059\u3002<br \/>\n\uff08\u307e\u305fExcel\u306b\u4f9d\u5b58\u3057\u306a\u3044\u306e\u3067\u4ed6\u306e\u8868\u8a08\u7b97\u30bd\u30d5\u30c8\u3084\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30bd\u30d5\u30c8\u3067\u3082\u4f7f\u3048\u307e\u3059\uff09<\/p>\n<p><span style=\"color: #ff0000;\"><b>\u305d\u3057\u3066\u3001Excel\u3067\u3082\u4f7f\u3048\u307e\u3059\u3002<br \/>\n\u3057\u304b\u3057\u3001\u305d\u3093\u306a\u306b\u3082\u6709\u540d\u306a\u306e\u306b\u3001\u304b\u3064\u3001\u30c7\u30fc\u30bf\u7ba1\u7406\u306e\u30e0\u30ea\u30fb\u30e0\u30c0\u30fb\u30e0\u30e9\u306e\u524a\u6e1b\u306b\u5927\u304d\u304f\u8ca2\u732e\u3057\u3066\u304f\u308c\u308b\u306e\u306b\uff08\u96c6\u8a08\u3084\u30ea\u30b9\u30c8\u30a2\u30c3\u30d7\u306b\u3064\u3044\u3066\u3060\u3051\u3044\u3048\u3070\u3001ExcelVBA\u3088\u308a\u3082\u306f\u308b\u304b\u306b\u52b9\u7387\u7684\u306a\u306e\u306b\uff09\u3001ExcelVBA\u306e\u30ec\u30b8\u30a7\u30f3\u30c9\u3055\u3093\u3082\u3001\u3069\u306e\u30d1\u30bd\u30b3\u30f3\u6559\u5ba4\u3082\u3001\u3069\u306eExcel\u30b5\u30a4\u30c8\u3082\u3001\u8a73\u3057\u304f\u6559\u3048\u3066\u304f\u308c\u307e\u305b\u3093\u3002<br \/>\n\u300c\u30c7\u30fc\u30bf\u7ba1\u7406\u306e\u57fa\u790e\u300d\u3068\u8a00\u3063\u3066\u3082\u904e\u8a00\u3067\u306f\u306a\u3044\u306e\u306b\u3001\u6559\u3048\u3066\u304f\u308c\u306a\u3044\u306e\u3067\u3059\u3002\uff08\u9ad8\u6821\u306e\u5546\u696d\u5316\u306e\u60c5\u5831\u51e6\u7406\u3067\u306f\u57fa\u790e\u304c\u6559\u3048\u3089\u308c\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002\uff09<br \/>\nExcel\u304c\u51fa\u306620\u5e74\u3082\u7d4c\u3063\u305f\u306e\u306b\u653e\u7f6e\u3055\u308c\u305f\u307e\u307e\u3067\u3059\u3002<BR>SQL\u306fExcel\u3067\u308220\u5e74\u3082\u524d\u304b\u3089\u4f7f\u3048\u308b\u306e\u306b\u3001\u653e\u7f6e\u3055\u308c\u305f\u307e\u307e\u3067\u3059\u3002<br \/>\n\u305d\u3057\u3066\u3001\u9ad8\u6821\u751f\u3067\u3082\u6559\u3048\u3066\u3082\u3089\u3048\u308b\u306e\u306b\u3002<BR><a href=\"https:\/\/euc-access-excel-db.com\/tips\/ct07_se\/ct075012_xls2k_vba_tips\/fool-excelvba-teacher-writer-editor01\" target=\"_blank\" rel=\"noopener noreferrer\">ExcelVBA\u8b1b\u5e2b\u305f\u3061<\/a>\u306f\u6559\u3048\u3066\u304f\u308c\u307e\u305b\u3093\u3002<br \/>\n\u305d\u308c\u304c\u3001Excel\u306b\u304a\u3044\u3066\u306e\u7121\u99c4\u306a\u95a2\u6570\u306e\u591a\u6bb5\u5316\u3084\u7121\u99c4\u306aVBA\u30d7\u30ed\u30b0\u30e9\u30e0\u30fb\u3072\u3044\u3066\u306f\u7121\u99c4\u306a\u30e1\u30f3\u30c6\u3082\u5f15\u304d\u8d77\u3053\u3057\u3066\u3044\u308b\u8af8\u60aa\u306e\u6839\u6e90\u3060\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n20\u5e74\u3082\u653e\u7f6e\u3057\u3066\u304d\u3066\u3057\u307e\u3063\u305f\u306e\u3067\u3001ExcelVBA\u306e\u66f8\u7c4d\u3084\u30b5\u30a4\u30c8\u3067\u306f\u3001\u57fa\u790e\u306e\u521d\u7d1a\u306e\u90e8\u5206\u306e\u6559\u7fd2\u304c\u7d42\u308f\u3063\u305f\u3042\u3068\u3067\u3082\u3001\u300c\u305d\u3082\u305d\u3082\u7121\u99c4\u306e\u591a\u3059\u304e\u308b\u30c7\u30fc\u30bf\u306e\u6301\u3061\u65b9\u3092\u3057\u3066\u3044\u308b\u3053\u3068\u300d\u306b\u7591\u554f\u3092\u6301\u305f\u305b\u308b\u3053\u3068\u3059\u3089\u305b\u305a\u3001\u300c\u7121\u99c4\u306e\u591a\u3044\u30c7\u30fc\u30bf\u306e\u6301\u3061\u65b9\u300d\u306e\u307e\u307e\u3001\u305d\u308c\u306b\u5bfe\u3059\u308b\u51e6\u7406\u306e\u3053\u3068\u3053\u3068\u3070\u3063\u304b\u308a\u6559\u3048\u3066\u3044\u307e\u3059\u3002\u3088\u308a\u52b9\u7387\u306e\u826f\u3044\u96c6\u8a08\u65b9\u6cd5\u306a\u3069\u3092\u6559\u3048\u307e\u305b\u3093\u3002<br \/>\n\u3072\u3069\u3044\u3068\u3001VBA\u3067\u30d5\u30a9\u30eb\u30c0\u30921000\u500b\u3082\u4f5c\u3063\u3066\u30c7\u30fc\u30bf\u3092\u4fdd\u7ba1\u3055\u305b\u308b\u3088\u3046\u306a\u3053\u3068\u3092\u3055\u3082\u52b9\u7387\u304c\u3044\u3044\u304b\u306e\u3088\u3046\u306b\u8aac\u660e\u3057\u305f\u308a\u3057\u3066\u9a19\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u8aa4\u89e3\u3092\u3059\u3054\u304f\u6050\u308c\u306a\u304c\u3089\u8a00\u3046\u3068\u3001\u305d\u308c\u306f\u3001\u304a\u533b\u8005\u3055\u3093\u304c\u60a3\u8005\u3055\u3093\u306b\u85ac\u3070\u3063\u304b\u308a\u3042\u305f\u3048\u3066\u85ac\u6f2c\u3051\u306b\u3057\u3001\u98df\u4e8b\u306e\u6307\u5c0e\u3092\u307e\u3063\u305f\u304f\u3057\u306a\u3044\u30fb\u30fb\u30fb\u3001\u307f\u305f\u3044\u306a\u611f\u3058\u3067\u3059\u3002<br \/>\n\u300c\u305d\u3082\u305d\u3082\u7121\u99c4\u306e\u591a\u3059\u304e\u308b\u30c7\u30fc\u30bf\u306e\u6301\u3061\u65b9\u3070\u3063\u304b\u308a\u3057\u3066\u3044\u308b\u300d\u3092\u300120\u5e74\u9593\u3082\u306e\u3042\u3044\u3060\u3001\u307e\u3063\u305f\u304f\u6b63\u305d\u3046\u3068\u305c\u305a\u3001\u653e\u7f6e\u3057\u3066\u304d\u307e\u3057\u305f\u3002<br \/>\n\u300c\u9ad8\u6821\u751f\u3067\u3082\u7406\u89e3\u3067\u304d\u3066\u6d3b\u7528\u3067\u304d\u308b\u300d\u3053\u3068\u304c\u3042\u308b\u3001\u306e\u306b\u3001\u306a\u305c\u793e\u4f1a\u4eba\u306b\u6559\u3048\u306a\u3044\u306e\u3067\u3057\u3087\u3046\u304b\uff1f\uff1f\uff1f\u3055\u3063\u3071\u308a\u308f\u304b\u308a\u307e\u305b\u3093\u3002<br \/>\n\u3055\u3089\u306b\u8aa4\u89e3\u3092\u3059\u3054\u304f\u6050\u308c\u3066\u30d3\u30af\u30d3\u30af\u3057\u306a\u304c\u3089\u8a00\u3046\u3068\u3001\u300c\u65e5\u672c\u306e\u96c6\u8a08\u3068\u30ea\u30b9\u30c8\u30a2\u30c3\u30d7\u3092\u30c0\u30e1\u306b\u3057\u305f\u306e\u306f\u3001ExcelVBA\u3068\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u95a2\u6570\u306e\u4f7f\u3044\u3059\u304e\u300d\u3067\u306f\u306a\u3044\u304b\u3068\u601d\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n\u7279\u306b\u3001ExcelVBA\u306f\u3001\u30b0\u30e9\u30d5\u5316\u30fb\u898b\u3048\u308b\u5316\u30fb\u30b7\u30e5\u30df\u30ec\u30fc\u30b7\u30e7\u30f3\u306a\u3069\u306e\u81ea\u52d5\u5316\u306e\u305f\u3081\u306b\u3042\u308b\u3082\u306e\u3060\u3068\u601d\u3063\u3066\u3044\u3066\u30012\u6b21\u7684\u306b\u30d4\u30dc\u30c3\u30c8\u3068Microsoft Query\uff08QueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff09\u306e\u64cd\u4f5c\u304c\u5fc5\u9808\u3067\u300120\u5e74\u3082\u7d4c\u3063\u305f\u4eca\u306f\u3001\u305d\u308c\u304c\u300c\u521d\u7d1a\u30af\u30e9\u30b9\u300d\u306e\u5185\u5bb9\u306b\u306a\u3063\u3066\u3044\u3066\u305d\u308c\u304c\u3069\u3053\u306e\u30b5\u30a4\u30c8\u3082\u66f8\u7c4d\u3082\u6559\u5ba4\u3082\u300c\u3042\u305f\u308a\u307e\u3048\u300d\u306b\u306a\u3063\u3066\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u300c\u96c6\u8a08\u3084\u30ea\u30b9\u30c8\u30a2\u30c3\u30d7\u300d\u304c\u76ee\u7684\u306e\u5834\u5408\u3001SQL\u306fExcel\u3067\u3082\u4f7f\u3048\u3066\u3001\u304b\u3064\u3001VBA\u3088\u308a\u3082\u91cd\u8981\u30fb\u304b\u3064\u30fb\u5165\u308a\u53e3\u306f\u96e3\u6613\u5ea6\u3082\u4f4e\u3044\u306e\u306b\u3001\u306a\u305c\u6559\u3048\u306a\u3044\u306e\u3067\u3057\u3087\u3046\uff1f<br \/>\n\u300c\u5165\u308a\u53e3\u306f\u96e3\u6613\u5ea6\u3082\u4f4e\u3044\u90e8\u5206\u300d\u3092\u5b66\u3076\u3060\u3051\u3067\u3082\u3001VBA\u3088\u308a\u308210\u500d\u7c21\u5358\u306a\u306e\u306bVBA\u3088\u308a\u3082\u52b9\u7387\u304c\u826f\u304f\u306a\u3063\u3066\u30fb\u30d7\u30ed\u30b0\u30e9\u30de\u3084SE\u3058\u3083\u306a\u304f\u3066\u3082\u3001\u666e\u901a\u306e\u55b6\u696d\u3055\u3093\u3084\u4e8b\u52d9\u306e\u65b9\u3001\u3067\u3082\u5341\u5206\u306b\u7406\u89e3\u3067\u304d\u308b\u90e8\u5206\u3060\u3063\u3066\u3051\u3063\u3053\u3046\u3042\u308b\u306e\u306b\u30fb\u30fb\u30fb\u3002<br \/>\n\u50d5\u3060\u3063\u3066\uff08\u4eca\u66f4\u3088\u3046\u3084\u304f\u3067\u3059\u304c\uff09Excel\u306e\u52c9\u5f37\u3092\u3057\u59cb\u3081\u305f\u8eab\u3068\u3057\u3066\u306f\u3001\u3082\u3063\u3068\u6559\u3048\u3066\u307b\u3057\u3044\u3067\u3059\u3002\u4eca\u3067\u3082\u3001\u305c\u3093\u305c\u3093\u52c9\u5f37\u3067\u304d\u3066\u306a\u3044\u306e\u3067\u30fb\u30fb\u30fb\u3002<\/b><\/span><\/p>\n<p>\u4f59\u8ac7\u3067\u3059\u304c\uff08\u3069\u3063\u3061\u304c\u5049\u3044\u3068\u3044\u3046\u3053\u3068\u306f\u7121\u3044\u306e\u3067\u3059\u304c\uff09\u3001\u300c\u4e00\u90e8\u306e\u696d\u754c\u300d\u306e\u5c31\u8077\u3084\u8ee2\u8077\u306b\u95a2\u3057\u3066\u8a00\u3048\u3070\u3001VBA\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u3059\u3089\u3059\u3089\u66f8\u3051\u308b\u3088\u308a\u306f\u3001SQL\u306e\u77e5\u8b58\u304c\u6df1\u304f\u3066SQL\u3067\u306e\u547d\u4ee4\u8a9e\u53e5\u304c\u3059\u3089\u3059\u3089\u66f8\u3051\u308b\u307b\u3046\u304c\u3001\u65e9\u304f\u5c31\u8077\u30fb\u8ee2\u8077\u3067\u304d\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u3059\u3002\uff08\u5e78\u305b\u306a\u5c31\u8077\u30fb\u8ee2\u8077\u306b\u306a\u308b\u304b\u3069\u3046\u304b\u306f\u5225\u3068\u3057\u3066\u30fb\u30fb\u30fb\u3002\u7279\u306b\u6d3e\u9063\u3067\u306f\u6bb5\u9055\u3044\u3068\u306a\u308a\u307e\u3059\u3002VBA\u3088\u308a\u3082SQL\u3092\u6df1\u304f\u899a\u3048\u305f\u307b\u3046\u304c\u6709\u5229\u306a\u306e\u306f\u4e8b\u5b9f\u3067\u3059\u3002\uff09<br \/>\n\u305d\u306e\u304f\u3089\u3044\u306e\u6709\u540d\u5ea6\u3067\u3059\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3067\u3059\u304c\u3001Google\u3084\u305d\u306e\u4ed6\u5927\u4f01\u696d\u306e\u793e\u5185\u30b7\u30b9\u30c6\u30e0\u3001\u4e16\u754c\u4e2d\u306eWeb\u30ab\u30fc\u30c8\u30b7\u30b9\u30c6\u30e0\u306e\u591a\u304f\u3001\u5f25\u751f\u30b7\u30ea\u30fc\u30ba\u3084\u5949\u884c\u30b7\u30ea\u30fc\u30ba\u3068\u3044\u3063\u305f\u5e02\u8ca9\u306e\u30d3\u30b8\u30cd\u30b9\u30bd\u30d5\u30c8\u306e\u30b7\u30b9\u30c6\u30e0\u3001\u305d\u308c\u4ee5\u5916\u306e\u4f1a\u8a08\u30b7\u30b9\u30c6\u30e0\u3084\u9867\u5ba2\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0\u3001\u58f2\u308a\u4e0a\u3052\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0\u3001\u5728\u5eab\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0\u3001\u4eba\u4e8b\u7528\u30b7\u30b9\u30c6\u30e0\u3001\u7b49\u3005\u3001\u4e16\u754c\u4e2d\u306e\u672c\u5f53\u306b\u591a\u304f\u306e\u30b7\u30b9\u30c6\u30e0\u304c\u300cSQL\u300d\u3092\u571f\u53f0\u3068\u3057\u305f\u3001\u300c\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b7\u30b9\u30c6\u30e0\u300d\u3067\u3067\u304d\u3066\u3044\u307e\u3059\u3002<br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n<a name=\"lbl_45\">\u2605 SQL\u3067\u3067\u304d\u308b\u3053\u3068\u3084\u4f7f\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u305f\u3081\u306e\u524d\u6761\u4ef6\uff08Excel\u76ee\u7dda\uff09<\/a><\/p>\n<p>\u300cSQL\u300d\u306f\u3001\u624b\u5165\u529b\u3057\u305f\u300c\u5b9f\u8868\u300d\u304b\u3089\u3001\u3044\u308d\u3093\u306a\u6761\u4ef6\u3092\u6307\u5b9a\u3057\u3066\u3001\u300c\u4eee\u60f3\u8868\u300d\u3092\u4f5c\u308a\u51fa\u3059\u6a5f\u80fd\u3067\u3059\u3002<\/p>\n<p>\u300c\u5b9f\u8868\u300d\u304b\u3089\u3001\u3044\u308d\u3093\u306a\u6761\u4ef6\u3092\u8907\u6570 \u6307\u5b9a\u3057\u3066\u3001\u300c\u5fc5\u8981\u306a\u30c7\u30fc\u30bf\u306e\u307f\u306b\u7d5e\u308a\u8fbc\u3093\u3060\u8868\uff08Excel\u306e\u30d5\u30a3\u30eb\u30bf\u3068\u3082\u4f3c\u3066\u3044\u308b\uff09\u300d\u3092\u4f5c\u308a\u51fa\u3059\u6a5f\u80fd\u30fb\u30fb\u30fb\u3001\u3068\u3082\u8a00\u3048\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p><span style=\"color: #0000ff;\"><b>\u307e\u305f\u3001\u8a00\u3063\u3066\u306f\u3044\u3051\u306a\u3044\u3053\u3068\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3000\uff06\u3000\u8aa4\u89e3\u3092\u6050\u308c\u304c\u3089 \u3053\u308f\u3054\u308f\u8a00\u3046\u3068\u30fb\u30fb\u30fb\u3001<span style=\"color: #32cd32;\"><b>\u300e \u4f8b\u3048\u3070Excel\u306e\u5834\u5408\u3001\u58f2\u4e0a\u8868\u3092\u6708\u3054\u3068\u306b\u8907\u6570\u306e\u30b7\u30fc\u30c8\u306b\u5225\u3005\u306b\u8a18\u9332\u3057\u3066\u3001\u305d\u308c\u3092\u30e2\u30c8\u306b\u3057\u3066\u300c\u4e32\u523a\u3057\u96c6\u8a08\u3057\u305f\u308a\u30fbVBA\u30d7\u30ed\u30b0\u30e9\u30e0\uff08\u4f8b\u3048\u3070\u30eb\u30fc\u30d7\uff1d\u7e70\u308a\u8fd4\u3057\u51e6\u7406\uff09\u3067\u96c6\u8a08\u3057\u305f\u308a\u300d\u30fb\u30fb\u30fb\u3001\u3068\u3044\u3046\u3001 \u201d\u8d85\u201d \u7121\u99c4\u30fb\u304b\u3064\u975e\u52b9\u7387\u306a\u3053\u3068 \u300f<\/b><\/span>\u3092\u56de\u907f\u3067\u304d\u308b\u3001\u300c\u96c6\u8a08\u30b3\u30b9\u30d1\u30fb\u30c7\u30fc\u30bf\u62bd\u51fa\u30b3\u30b9\u30d1\u300d\u3092\u3067\u304d\u3046\u308b\u9650\u308a\u3001\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3082\u306e\u3067\u3059\u3002<br \/>\n\uff08\u5c11\u306a\u304f\u3068\u3082<span style=\"color: #ff0000;\"><b>\u300c\u4e32\u523a\u3057\u96c6\u8a08\u3092VBA\u5316\u300d\u3059\u308b\u3088\u3046\u306a \u201d\u975e\u52b9\u7387\u30fb\u30c7\u30fc\u30bf\u7ba1\u7406\u306e\u7121\u99c4\u201d <\/b><\/span>\u3068\u6bd4\u3079\u308c\u3070\u3001\uff12\uff5e\uff11\uff10\u500d\u4ee5\u4e0a\u306f\u3001\u300c\u30b3\u30b9 \u201d\u30d1\u201d \u300d\u3001\u304c\u3001\u30a2\u30c3\u30d7\u3067\u304d\u308b\u3068\u601d\u3044\u307e\u3059\u3002\uff09<BR><br \/>\n\u3082\u3061\u308d\u3093\u3001\u300c\u3059\u3079\u3066\u3092SQL\u3067\u8cc4\u3046\u3079\u304d\uff01\u300d\u3068\u3044\u3046\u7121\u7406\u5f37\u3044\u3067\u306f\u306a\u304f\u3066\u3001\u9078\u629e\u80a2\u306e\u3072\u3068\u3064\u3068\u3057\u3066\u8003\u3048\u3066\u307b\u3057\u3044\u306e\u3067\u3059\u304c\u3001\u305f\u3060\u3001\u300c\u7d76\u5bfe\u306b\uff08\u3069\u3053\u304b1\u304b\u6240\u3067\u3001\u304f\u3089\u3044\u306f\uff09SQL\u3092\u8a66\u3057\u3066\u307b\u3057\u3044\uff01\uff01\u9069\u6750\u9069\u6240\u3067\u4f7f\u3048\u3070\u3001<span style=\"color: #ff0000;\"><b>\u7121\u99c4\u306a\u96c6\u8a08\u3084\u30ea\u30b9\u30c8\u30a2\u30c3\u30d7\u3084\u95a2\u9023\u3059\u308b\u7121\u99c4\u306aVBA\u30d7\u30ed\u30b0\u30e9\u30e0\u30fb\u7121\u99c4\u306a\u95a2\u6570\u306e\u591a\u7528\u304c\u6fc0\u6e1b\u3057\u307e\u3059\uff01\u300d\u3068\u304a\u30b9\u30b9\u30e1\u304c\u3067\u304d\u308b\u3082\u306e<\/b><\/span>\u3067\u3059\u3002<BR><br \/>\n<span style=\"color: #ff0000;\"><b>\u305d\u306e\u307b\u304b\u3001<span style=\"color: #7401DF;\"><b>Access\u3092\u307e\u3060\u8cb7\u3048\u306a\u3044\u5834\u5408\u306b\u3001\u3068\u308a\u3042\u3048\u305a\u300cExcel\u306b\u3066\u300d\u3001Access\u306e\u300c\u30af\u30a8\u30ea\u300d\u3092\u64cd\u4f5c\u3059\u308b\u7df4\u7fd2\u3084\u300c\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u300d\u3092\u7d44\u3080\u7df4\u7fd2\u3001\u3042\u308b\u3044\u306f\u3001ADO\u3084DAO\u3092\u4f7f\u3046\u7df4\u7fd2\u3001\u7b49\u3005\u3082\u3001SQL\u3092\u4f7f\u3046\u3053\u3068\u3067\u304a\u3053\u306a\u3048\u307e\u3059\u3002<\/b><\/span><br \/>\n\u306a\u304a\u3001\u3053\u3053\u3067\u8a00\u3046\u300c\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u300d\u3068\u306f\u30012013\u30842016\u306e\u300c\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u30b7\u30c3\u30d7\u300d\u6a5f\u80fd\u3068\u306f\u7570\u306a\u308b\u3001\u7d14\u7136\u305f\u308b\u30b7\u30b9\u30c6\u30e0\u69cb\u7bc9\u696d\u754c\u6a19\u6e96\u30fb\u30c7\u30fc\u30bf\u7ba1\u7406\u306e\u57fa\u790e\u6a19\u6e96\u306e\u307b\u3046\u306e\u300c\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u300d\u3067\u3059\u3002<br \/>\n\u307e\u305f\u3001\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u30b7\u30c3\u30d7\u6a5f\u80fd\u3092\u4f7f\u3046\u3068\u3001\u300c\u30d4\u30dc\u30c3\u30c8\u30c6\u30fc\u30d6\u30eb\u306e\u96c6\u8a08\u30d5\u30a3\u30fc\u30eb\u30c9\u3084\u30b0\u30eb\u30fc\u30d7\u5316\u304c\u4f7f\u3048\u306a\u304f\u306a\u308b\u300d\u305d\u3046\u3067\u3059\u304c\u3001SQL\u3092\u4f7f\u3046\u3068\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u7d44\u3093\u3067\u3082\u305d\u3046\u3044\u3046\u3053\u3068\u306f\u8d77\u3053\u308a\u307e\u305b\u3093\u3002\u4f8b\u3048\u3070SQL\u3092\u4f7f\u3063\u3066\u3001Microsoft Query\uff08QueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff09\u306a\u3069\u306b\u3066\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u7d44\u3093\u3060\u8868\u306e\u5834\u5408\u3001\u305d\u308c\u3092\u30bd\u30fc\u30b9\u306b\u3057\u305f\u30d4\u30dc\u30c3\u30c8\u30c6\u30fc\u30d6\u30eb\u3067\u306f\u3001\u30d4\u30dc\u30c3\u30c8\u306e\u300c\u5168\u6a5f\u80fd\u300d\u304c\u4f7f\u3048\u307e\u3059\u3002\u3082\u3061\u308d\u3093\u3001\u300c\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u7d44\u3093\u3060\u8868\u300d\u3092\u8868\u793a\u3059\u308b\u6bb5\u968e\u3067\u3001\u540c\u6642\u306b\u3001\u30b0\u30eb\u30fc\u30d7\u5316\u96c6\u8a08\u30fb\u30ea\u30b9\u30c8\u30a2\u30c3\u30d7\u306a\u3069\u3082\u3067\u304d\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u305d\u3057\u3066\u3001\u305d\u308c\u3092\u30d4\u30dc\u30c3\u30c8\u306b\u304b\u3051\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/b><\/span><\/b><\/span><br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n\u300cSQL\u300d\u306f\u3001\u524d\u8ff0\u3057\u305f\u3068\u304a\u308a\uff08\u30c7\u30fc\u30bf\u7ba1\u7406\u7cfb\u306e\u30bd\u30d5\u30c8\u306b\u9650\u308a\u307e\u3059\u304c\uff09\u3001\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306e\u57a3\u6839\u3092\u8d8a\u3048\u3066\u3001\u591a\u304f\u306e\u30bd\u30d5\u30c8\u3067\u5229\u7528\u3067\u304d\u307e\u3059\u304c\u3001\u4f8b\u3048\u3070<span style=\"color: #7401DF;\"><b>Excel\u76ee\u7dda\u3067\u8a00\u3046\u3068\u3001<br \/>\nExcel\u306e\u30fb\u30fb\u30fb<br \/>\n\u30fb\u300c\u30aa\u30fc\u30c8\u30d5\u30a3\u30eb\u30bf\u3084\u30d5\u30a3\u30eb\u30bf\u30aa\u30d7\u30b7\u30e7\u30f3\u300d\u306e\u6a5f\u80fd\u3068\u3001<br \/>\n\u30fb\u300c\u96c6\u8a08\u300d\u306e\u6a5f\u80fd\uff08\u3042\u308b\u3044\u306f\u300c\u30d4\u30dc\u30c3\u30c8\u30c6\u30fc\u30d6\u30eb\u300d\u306e\u4e00\u90e8\u306e\u96c6\u8a08\u6a5f\u80fd\uff09\u3001\u30d7\u30e9\u30b9\u3001<br \/>\n\u30fb\u300cVLOOKUP\u95a2\u6570\u300d\uff08or 2013\u30fb2016\u306e\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u30b7\u30c3\u30d7\uff09\u306e\u6a5f\u80fd\u3068<br \/>\n\u30fb\u300c\u30c6\u30fc\u30d6\u30eb\u300d\u306e\u6a5f\u80fd\u3001\u3092\u3001<br \/>\n\u30fb\u300c\u5408\u4f53\u300d\u3055\u305b\u305f\u3088\u3046\u306a\u300c\u81ea\u52d5\u96c6\u8a08\u300d\u300c\u81ea\u52d5\u30ea\u30b9\u30c8\u30a2\u30c3\u30d7\u300d\u306e\u6a5f\u80fd<br \/>\n<span style=\"color: #ff0000;\"><b>\u30fb\u305d\u3057\u3066\u4ee5\u4e0a\u304c\u300c\u3059\u3079\u3066\u540c\u6642\u306b \u201d\uff11\u56de\u3067\u201d \u51e6\u7406\u3067\u304d\u308b\u300d\u6a5f\u80fd<\/b><\/span><\/b><\/span><br \/>\n\u30fb\u30fb\u30fb\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u305d\u3093\u306a\u98a8\u306b\u8a00\u3063\u305f\u3089\u3001\u306a\u3093\u3068\u306a\u304f\u30a4\u30e1\u30fc\u30b8\u304c\u3067\u304d\u307e\u3059\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<p><span style=\"color: #32cd32;\"><b>\u304b\u3064\u3001\u300cVLOOKUP\u95a2\u6570\u300d\u306e\u6a5f\u80fd\u306b\u76f8\u5f53\u3059\u308b\u90e8\u5206\u306b\u3064\u3044\u3066\u306f\u3001\u300c\u6700\u521d\u304b\u3089\u305d\u308c\u3042\u308a\u304d\u300d\u3067\u3059\u3002<br \/>\n\u3064\u307e\u308a\u3001\u300c\u6700\u521d\u304b\u3089\u3001\u8907\u6570\u679a\u6570\u306e\u8868\u3092\u7d10\u4ed8\u3051\u3057\u3042\u3046\u3053\u3068\u3092 \u201d\u524d\u63d0\u201d \u3068\u3057\u3066\u6a5f\u80fd\u304c\u304b\u305f\u3061\u3065\u304f\u3089\u308c\u3066\u3044\u308b\u300d\u306e\u3067\u3001\u300cVLOOKUP\u95a2\u6570\u3088\u308a\u3082\u67d4\u8edf\u306a\u7d10\u4ed8\u3051\u51e6\u7406\u304c\u3067\u304d\u308b\u300d\u3068\u3044\u3046\u5229\u70b9\u3092\u6301\u3061\u307e\u3059\u3002<\/b><\/span><br \/>\n\uff08\u3082\u3061\u308d\u3093\u3001TPO\u306b\u3088\u3063\u3066\u306fVLOOKUP\u95a2\u6570\u306e\u307b\u3046\u304c\u4fbf\u5229\u306a\u5834\u9762\u3082\u5c11\u306a\u304f\u306a\u3044\u3067\u3059\u3002\u305f\u3060\u3001VLOOKUP\u95a2\u6570\u306b\u3042\u308a\u304c\u3061\u306a\u300c\u5f31\u70b9\u3092\u30ab\u30d0\u30fc\u3059\u308b\u3088\u3046\u306a\u4f59\u8a08\u306a\u51e6\u7406\u300d\u3092\u3059\u308b\u5fc5\u8981\u304c\u306a\u304f\u3001\u30b7\u30f3\u30d7\u30eb\u306f\u30b7\u30f3\u30d7\u30eb\u3060\u3068\u601d\u3044\u307e\u3059\u3002MicrosoftQuery\u306e\u753b\u9762\u3067\u306f\u30c9\u30e9\u30c3\u30b0\u4e00\u767a\u3092\u3084\u308b\u3060\u3051\u3067\u3001VLOOKUP\u306e\u3088\u3046\u306a\u7d10\u4ed8\u3051\u4f5c\u696d\u304c\u5168\u884c\u30fb\u4e00\u77ac\u3067\u7d42\u308f\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u30022013\u30fb2016\u306e\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u30b7\u30c3\u30d7\u6a5f\u80fd\u3068\u540c\u3058\u51e6\u7406\u3067\u3059\u3002\u304a\u307e\u3051\u306b\u3001\u7d10\u4ed8\u3051\u5bfe\u8c61\u5916\u3001\u306e\u30c7\u30fc\u30bf\u307e\u3067\u6c42\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u8a00\u3044\u65b9\u3092\u5909\u3048\u308b\u3068\u300c\u30d9\u30f3\u56f3\u306e2\u3064\u306e\u5186\u304c\u91cd\u306a\u308a\u5408\u308f\u306a\u3044\u3068\u3053\u308d\u300d\u306e\u30c7\u30fc\u30bf\u62bd\u51fa\u3082\u3001\u6bd4\u8f03\u7684\u3001\u3084\u308a\u3084\u3059\u304f\u306a\u3063\u3066\u3044\u307e\u3059\u3002<a href=\"https:\/\/euc-access-excel-db.com\/tips\/ct07_se\/ct075012_xls2k_vba_tips\/table-b-dell_conf-table-a-b01\" target=\"_blank\" rel=\"noopener noreferrer\">\uff1d\u3064\u307e\u308a\u3001\u300c\u9664\u5916\u51e6\u7406\u300d\u304c\u3067\u304d\u307e\u3059<\/a>\u3002\uff09<\/p>\n<p><span style=\"color: #ff8c00;\"><b>\u304b\u3064\u3001\u300c\u9762\u5012\u306a\u30eb\u30fc\u30d7\u51e6\u7406\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u300d\u3092\u3059\u308b\u3053\u3068\u306a\u304f\u3001\u4e00\u62ec\u3067\u306e\u30c7\u30fc\u30bf\u51e6\u7406\uff08\u96c6\u8a08\u3001\u66f8\u304d\u63db\u3048\u3001\u30ea\u30b9\u30c8\u30a2\u30c3\u30d7\u3001\u7b49\u3005\uff09\u304c\u8272\u3005\u3068\u884c\u3048\u308b\u306e\u3067\u3001\u8907\u96d1\u306a\u6761\u4ef6\u306e\u96c6\u8a08\u3067\u306f\u3001ExcelVBA\u306e\u30eb\u30fc\u30d7\u3092\u99c6\u4f7f\u3057\u305f\u96c6\u8a08\u3088\u308a\u3082\u3001\u6700\u4f4e\u30672\u500d\u3001\u666e\u901a\u306710\u500d\u30fb20\u500d\u306e\u30c7\u30fc\u30bf\u7ba1\u7406\u306e\u52b9\u7387\u5316\u3092\u56f3\u308b\u3053\u3068\u304c\u3067\u304d\u308b<\/b><\/span>\u3068\u601d\u3044\u307e\u3059\u3002\uff08\u7121\u99c4\u306aVBA\u304c\u6e1b\u3089\u305b\u308b\u306e\u3067\uff09<\/p>\n<p>\u305d\u3057\u3066\u7279\u306b\u3001\u300c\u3007\u00d7\u5225\u25b2\u25a1\u5225\u96c6\u8a08\u300d\u300c\u3007\u00d7\u5225\u25b2\u25a1\u5225\uff5e\u2605\u5225\u30ea\u30b9\u30c8\u30a2\u30c3\u30d7\u300d\u3068\u3044\u3063\u305f\u3082\u306e\u304c\u5f97\u610f\u3067\u3059\u3002<br \/>\n\u300c<a href=\"https:\/\/euc-access-excel-db.com\/tips\/ct08_exceltruebasic\/ct080301_dynamictable_n_statictable\/dynamic_table\" target=\"_blank\" rel=\"noopener noreferrer\">\u52d5\u7684\u306a\u8868<\/a>\uff08\u30ea\u30b9\u30c8\u5f62\u5f0f\u306e\u8868\uff09\u300d\u304b\u3089\u300c<a href=\"https:\/\/euc-access-excel-db.com\/tips\/ct08_exceltruebasic\/ct080301_dynamictable_n_statictable\/static_table\" target=\"_blank\" rel=\"noopener noreferrer\">\u9759\u7684\u306a\u8868<\/a>\uff08\u30af\u30ed\u30b9\u96c6\u8a08\u8868\uff09\u300d\u306e\u3082\u5f97\u610f\u3067\u3059\u3002<br \/>\n<span style=\"color: #32cd32;\"><b>\u8a00\u3063\u3066\u307f\u308c\u3070\u3001\u30d3\u30b8\u30cd\u30b9\u5b9a\u578b\u96c6\u8a08\u304c\u3001\u3059\u3054\u304f\u5f97\u610f\u3067\u3001\u305d\u308c\u304cVBA\u30d7\u30ed\u30b0\u30e9\u30e0\u3084\u95a2\u6570\u7121\u3057\u306b\u300c\u81ea\u52d5\u3067\u300d\u3084\u308a\u3084\u3059\u3044\u3067\u3059\u3002<\/b><\/span><br \/>\n<span style=\"color: #7401DF;\"><b>\uff08\u5b9f\u306fExcel\u30fb\u30fb\u30fb\u3068\u3044\u3046\u304bMSOffice\u306b\u306f20\u5e74\u3082\u524d\u304b\u3089\u5b9f\u88c5\u3055\u308c\u3066\u3044\u307e\u3059\u3002\uff09<\/b><\/span><br \/>\nExcel\u306e\u901a\u5e38\u306e\u30d5\u30a3\u30eb\u30bf\u6a5f\u80fd\u3084\u30c6\u30fc\u30d6\u30eb\u6a5f\u80fd\u306f\u30d5\u30a3\u30eb\u30bf\u304c\u3067\u304d\u308b\u3060\u3051\u3067\u3001\u300c\u540c\u6642\u306b\u96c6\u8a08\u300d\u3063\u3066\u3067\u304d\u306a\u3044\u306e\u3067\u3059\u3051\u3069\u3001\u300cSQL\u300d\u306f\u3001\u30d5\u30a3\u30eb\u30bf\u3092\u304b\u3051\u306a\u304c\u3089\u305d\u306e\u7d50\u679c\u304b\u3089\u66f4\u306b\u30b0\u30eb\u30fc\u30d7\u5316\u3082\u96c6\u8a08\u3082\u540c\u6642\u306b\u3084\u3063\u3066\u3057\u307e\u3048\u307e\u3059\u3002<br \/>\n<span style=\"color: #0000ff;\"><b>\u307e\u305f\u3001\u7e70\u308a\u8fd4\u3057\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u305d\u306e\u300c\u30d5\u30a3\u30eb\u30bf\u5b9f\u884c\uff0b\u540c\u6642\u30b0\u30eb\u30fc\u30d7\u5316\uff0b\u540c\u6642\u96c6\u8a08\u300d\u3082\u3001\u5358\u4e00\u306e\u8868\u304b\u3089\u3060\u3051\u3067\u306f\u306a\u304f\u30012\u679a\u30013\u679a\u3068\u3001\u8907\u6570\u306e\u8868\u3092\u7d10\u4ed8\u3051\u3057\u3042\u3063\u305f\u4e0a\u3067\u3067\u3082\u3067\u304d\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/b><\/span><br \/>\n\u305d\u3057\u3066\u300cSQL\u300d\u3067\u306e\u30d5\u30a3\u30eb\u30bf\u7d50\u679c\uff08\uff1d\u300c\u4eee\u60f3\u8868\u300d\uff09\u306f\u3001\u305d\u306e\u307e\u307e<span style=\"color: #32cd32;\"><b>\u30d4\u30dc\u30c3\u30c8\u30c6\u30fc\u30d6\u30eb\u306e\u30bd\u30fc\u30b9\u306b\u3067\u304d\u3001\u30d5\u30a3\u30eb\u30bf\u5074\u3067\u6761\u4ef6\u3092\u5909\u3048\u3066\u30bd\u30fc\u30b9\u306e\u7d5e\u8fbc\u7d50\u679c\u304c\u5909\u308f\u308c\u3070\u3001\u305d\u308c\u304c\u30d4\u30dc\u30c3\u30c8\u5074\u306b\u3082\u53cd\u6620\u3055\u308c\u307e\u3059\u3002\u305d\u308c\u304c<span style=\"color: #0000ff;\"><b>\u30d0\u30fc\u30b8\u30e7\u30f32000\u3067\u3082\u3001\u3067\u3059\u3002<\/b><\/span><\/b><\/span><span style=\"color: #ff0000;\"><b>\uff08\u300e\u901a\u5e38\u306e\u30d5\u30a3\u30eb\u30bf\u6a5f\u80fd\u300f\u3084\u300e\u300c\u30c6\u30fc\u30d6\u30eb\u6a5f\u80fd\u300d\u306e\u4e0a\u3067\u5b9f\u884c\u3057\u305f\u30d5\u30a3\u30eb\u30bf\u300f\u3067\u306f\u3001\u30d0\u30fc\u30b8\u30e7\u30f32007\u4ee5\u964d\u3067\u3082\u305d\u308c\u304c\u3067\u304d\u307e\u305b\u3093\uff09<\/b><\/span><br \/>\n\u5fc5\u8981\u6027\u304c\u7121\u3051\u308c\u3070\u30d4\u30dc\u30c3\u30c8\u5074\u3067\u30d5\u30a3\u30eb\u30bf\u3092\u304b\u3051\u306a\u304f\u3066\u3082OK\u3067\u3059\u3057\u3001\u3082\u3068\u3082\u3068\u30d4\u30dc\u30c3\u30c8\u5074\u3067\u304b\u3051\u308b\u30d5\u30a3\u30eb\u30bf\u3088\u308a\u3082\u8907\u96d1\u3067\u67d4\u8edf\u30fb\u9ad8\u5ea6\u306a\u30d5\u30a3\u30eb\u30bf\u304c\u304b\u3051\u3089\u308c\u307e\u3059\u3002<br \/>\n\u3082\u3061\u308d\u3093\u3001\u305d\u306e\u30d4\u30dc\u30c3\u30c8\u30bd\u30fc\u30b9\u306bOffset\u95a2\u6570\u3092\u4f7f\u3063\u3066\u540d\u524d\u306e\u5b9a\u7fa9\u3092\u3059\u308c\u3070\u884c\u3082\u5217\u3082\u53ef\u5909\u3067\u3059\u3002\uff08\u3082\u3061\u308d\u3093\u3001\u3053\u308c\u3082\u5168\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3002\uff09<\/p>\n<p>\uff0a\uff0a\uff0a<br \/>\n\u4ee5\u4e0b\u3001\u82e5\u5e72\u306e\u8a73\u7d30\u3067\u3059\u3002<\/p>\n<p>\u300c\u4eee\u60f3\u8868\u300d\u3092\u4f5c\u308a\u51fa\u3059\u306e\u306b\u306f\u3001\u5168\u90e8\u3001\u300c\u6587\u5b57\u300d\u3067\u6307\u5b9a\u3057\u3066\u4f5c\u308a\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\uff08\u3064\u307e\u308a\u306f\u300c\u547d\u4ee4\u6587\u300d\u3002\uff09<br \/>\n\u305d\u3057\u3066\u305d\u306e\u547d\u4ee4\u6587\u3092\u300cSQL\u6587\u300d\u3068\u547c\u3073\u307e\u3059\u3002<br \/>\n\u300cSQL\u6587\u300d\u3092\u4f7f\u3063\u3066Excel\u306e\u30d5\u30a3\u30eb\u30bf\u30aa\u30d7\u30b7\u30e7\u30f3\u3068\u540c\u3058\u3088\u3046\u306a\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u3067\u3059\u304c\u3001\u305d\u306e\u3068\u304d\u3001<span style=\"color: #0000ff;\"><b>\u300c\u8907\u6570\u306e\u8868\u3092\u540c\u6642\u306b\u7d10\u4ed8\u3051\u3057\u3042\u3063\u3066\u6271\u3063\u305f\u308a\u3001\u3055\u3089\u306b\u540c\u6642\u306b\u3001\u7c21\u6613\u7684\u306a\u30b0\u30eb\u30fc\u30d7\u5316\u96c6\u8a08\u7b49\u3005\u3082\u3057\u306a\u304c\u3089\u300d<\/b><\/span>\u30d4\u30dc\u30c3\u30c8\u30c6\u30fc\u30d6\u30eb\u306e\u30bd\u30fc\u30b9\u306b\u3057\u305f\u308a\u3001\u4eee\u60f3\u8868\u3092\u51fa\u529b\u3057\u305f\u308a\u304c\u3067\u304d\u307e\u3059\u3002\uff08\u8907\u6570\u306e\u8868\u3092\u540c\u6642\u306b\u6271\u3046\u969b\u306f\u300c\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u300d\u3068\u547c\u3070\u308c\u308b\u3001Excel\u3067\u8a00\u3046\u3068\u3053\u308d\u306eVLOOKUP\u95a2\u6570\u306e\u3088\u3046\u306a\u4ed5\u7d44\u307f\u3092\u4f7f\u3044\u307e\u3059\u3002Excel 2016\u30842013\u306e\u300c\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u30b7\u30c3\u30d7\u300d\u3068\u306f\u4ed5\u7d44\u307f\u7684\u306b\u306f\u540c\u3058\u4ed5\u7d44\u307f\u3067\u3059\u3002\u3068\u3044\u3044\u307e\u3059\u304b\u3001\u300cAccess\u306e\u30af\u30a8\u30ea\u300d\u3084\u300cSQL Server\u306e\u30d3\u30e5\u30fc\u300d\u3068\u57fa\u672c\u7684\u306b\u306f\u540c\u3058\u3001\u3068\u3044\u3063\u305f\u307b\u3046\u304c\u826f\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\uff09<\/p>\n<p>\u57fa\u672c\u3001\u300cSQL\u300d\u306f\u3001\u4e8b\u524d\u306b\u300c<a href=\"https:\/\/euc-access-excel-db.com\/tips\/ct08_exceltruebasic\/ct080301_dynamictable_n_statictable\/dynamic_table\" target=\"_blank\" rel=\"noopener noreferrer\">\u52d5\u7684\u306a\u8868<\/a>\u300d\u304c\u4f5c\u6210\u3055\u308c\u3066\u306a\u3044\u3068\u4f7f\u3048\u307e\u305b\u3093\u304c\u3001\u300c<a href=\"https:\/\/euc-access-excel-db.com\/tips\/ct08_exceltruebasic\/ct080301_dynamictable_n_statictable\/dynamic_table\" target=\"_blank\" rel=\"noopener noreferrer\">\u52d5\u7684\u306a\u8868<\/a>\u300d\u3055\u3048\u4f5c\u3089\u308c\u3066\u3044\u308c\u3070\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\uff08\u3053\u306e\u70b9\u306f\u30d4\u30dc\u30c3\u30c8\u30c6\u30fc\u30d6\u30eb\u3068\u540c\u3058\u3067\u3059\uff09\u3002 <\/p>\n<p>\u4f8b\u3048\u3070\u3001\u30d4\u30dc\u30c3\u30c8\u3068\u540c\u3058\u3088\u3046\u306b\u300c<a href=\"https:\/\/euc-access-excel-db.com\/tips\/ct08_exceltruebasic\/ct080301_dynamictable_n_statictable\/dynamic_table\" target=\"_blank\" rel=\"noopener noreferrer\">\u52d5\u7684\u306a\u8868<\/a>\u300d\u304b\u3089\u300c<a href=\"https:\/\/euc-access-excel-db.com\/tips\/ct08_exceltruebasic\/ct080301_dynamictable_n_statictable\/static_table\" target=\"_blank\" rel=\"noopener noreferrer\">\u9759\u7684\u306a\u8868<\/a>\uff08\u30af\u30ed\u30b9\u96c6\u8a08\u8868\uff09\u300d\u3092\u4f5c\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u3001\u30d4\u30dc\u30c3\u30c8\u30c6\u30fc\u30d6\u30eb\u306e\u30bd\u30fc\u30b9\u306b\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>Excel\u306e\u5834\u5408\u306b\u9650\u3063\u3066\u306f\u3001\u305d\u306e\u300c<a href=\"https:\/\/euc-access-excel-db.com\/tips\/ct08_exceltruebasic\/ct080301_dynamictable_n_statictable\/dynamic_table\" target=\"_blank\" rel=\"noopener noreferrer\">\u52d5\u7684\u306a\u8868<\/a>\u300d\u3092\u300c\u30b7\u30b9\u30c6\u30e0\u30c6\u30fc\u30d6\u30eb\u300d\u306e\u5f62\u3092\u53d6\u3063\u3066\u4f5c\u6210\u3059\u308c\u3070\u3001\u300cMicrosoft Query\u300d\u3084\u300cDAO\u3084ADO\u306a\u3069\u306e\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u300d\u304b\u3089\u6271\u3046\u3053\u3068\u304c\u3067\u304d\u3001\u307e\u305f\u3001\u51e6\u7406\u3092\u300c\u81ea\u52d5\u5316\u300d\u3067\u304d\u307e\u3059\u3002\uff08<span style=\"color: #0000ff;\"><b>\u300c\u30b7\u30b9\u30c6\u30e0\u30c6\u30fc\u30d6\u30eb\u300d\u306f\u5c0f\u5b66\u751f\u3067\u3082\u308f\u304b\u308b<a href=\"https:\/\/euc-access-excel-db.com\/tips\/ct08_exceltruebasic\/ct080820_make_table_rule\/table-make-tutorial-01\" target=\"_blank\" rel=\"noopener noreferrer\">\u4f5c\u8868\u30eb\u30fc\u30eb<\/a>\u3092\u3061\u3087\u3063\u3068\u5b88\u308b\u3060\u3051\u3067\u4f5c\u308c\u307e\u3059\u3002<\/b><\/span><span style=\"color: #ff0000;\"><b>\u305f\u3060\u3057Excel\u306f\u3001\u6700\u521d\u306e\u6570\u884c\u306b\u5165\u529b\u3055\u308c\u305f\u30c7\u30fc\u30bf\u3067\u305d\u306e\u5217\u306e\u30c7\u30fc\u30bf\u578b\u3092\u81ea\u52d5\u5224\u5225\u3057\u307e\u3059\u306e\u3067\u3001\u6700\u521d\u306e\u6570\u884c\u306e\u5165\u529b\u5024\u306b\u306f\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002\u5fc5\u305a\u300c\u5165\u529b\u898f\u5247\u300d\u306e\u6a5f\u80fd\u306b\u3066\u5217\u4e38\u3054\u3068\u306bIME\u30e2\u30fc\u30c9\u306e\u8a2d\u5b9a\u3084\u305d\u306e\u4ed6\u306e\u5236\u9650\u3092\u3057\u3066\u304a\u304f\u307b\u3046\u304c\u3044\u3044\u3067\u3059\u3002\u3082\u3057\u305d\u308c\u304c\u539f\u56e0\u3067\u30a8\u30e9\u30fc\u306b\u306a\u3063\u305f\u3089\u3001<a href=\"https:\/\/euc-access-excel-db.com\/tips\/ct08_exceltruebasic\/ct080820_make_table_rule\/table-make-tutorial-01#lbl_263\" target=\"_blank\" rel=\"noopener noreferrer\">\u8a73\u3057\u304f\u306f\u2192\u3053\u3061\u3089\u3002<\/a><\/b><\/span>\uff09<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u305d\u308c\u3089\u300cMicrosoft Query\u300d\u3084\u300cDAO\u3084ADO\u306a\u3069\u306e\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u300d\u3092VBA\u3067\u64cd\u4f5c\u3059\u308b\u3068\u304d\u306b\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u306a\u304b\u3067SQL\u6587\u3092\u76f4\u63a5\u66f8\u3044\u3066\u30fb\u3044\u3058\u3063\u3066\u3001\u4eee\u60f3\u8868\u306e\u7d50\u679c\u3092\u81ea\u5728\u306b\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u30fb\u81ea\u52d5\u66f4\u65b0\u306a\u3069\u3092\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u3067\u3059\u3002\u3064\u307e\u308a\u3001\u4eee\u60f3\u8868\u306e\u4f5c\u6210\u3092\u300c\u30af\u30ea\u30c3\u30af\u64cd\u4f5c\u3092\u4f7f\u308f\u305a\u306b\u3001\u5168\u90e8\u6587\u5b57\u64cd\u4f5c\u3060\u3051\u3067\u81ea\u52d5\u5316\u3067\u304d\u308b\u300d\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<br \/>\n<span style=\"color: #0000ff;\"><b>\u307e\u305f\u3001SQL\u3092\u300cMicrosoft Query\u300d\u3084\u300cDAO\u3084ADO\u306a\u3069\u306e\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u300d\u3067\u4f7f\u3046\u3068\u3001\u9589\u3058\u305fExcel\u306e\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u306e\u30c7\u30fc\u30bf\u3082\uff08\u4eca\u958b\u3044\u3066\u3044\u308bExcel\u30d5\u30a1\u30a4\u30eb\u306b\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u3053\u3068\u306a\u304f\uff09\u3001\u6271\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<span style=\"color: #32cd32;\"><b>\u4f8b\u3048\u3070\u8aad\u3080\u3060\u3051\u306a\u304f\u3001\u66f8\u304d\u63db\u3048\u3082\u3067\u304d\u307e\u3059\u3002\uff08\u3082\u3061\u308d\u3093\u76f8\u624b\u30d5\u30a1\u30a4\u30eb\u3092\u9589\u3058\u305f\u307e\u307e\uff09<\/b><\/span><\/b><\/span><\/p>\n<p>\u305d\u306eSQL\u306e\u7d50\u679c\u8868\u3092\u30bd\u30fc\u30b9\u306b\u3057\u305f\u30d4\u30dc\u30c3\u30c8\u30c6\u30fc\u30d6\u30eb\u3082\u3082\u3061\u308d\u3093\u3001VBA\u3067\u81ea\u52d5\u66f4\u65b0\u3067\u304d\u307e\u3059\u306e\u3067\u3001\u8272\u3005\u306a\u30c7\u30fc\u30bf\u306e\u30d4\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u5168\u90e8\u3001\u547d\u4ee4\u306e\u6587\u5b57\u5217\u3067\u81ea\u52d5\u5316\u3067\u304d\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u6700\u7d42\u7684\u306b\u306fExcel\u3092\u300c\u3061\u3087\u3068\u3057\u305f\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9Mini\u30b7\u30b9\u30c6\u30e0\u300d\u3068\u3057\u3066\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u306a\u306e\u3067\u3001\u306a\u304a\u3055\u3089\u3001\u7121\u99c4\u306aVBA\u30d7\u30ed\u30b0\u30e9\u30e0\u3084\u7121\u99c4\u306a\u95a2\u6570\u306e\u591a\u7528\u304c\u6e1b\u308a\u307e\u3059\u3002\uff08\u30d0\u30fc\u30b8\u30e7\u30f32000\u3067\u3042\u3063\u3066\u3082\u3002\uff09<br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n<a name=\"lbl_68\">\u2605 SQL\u306e\u57fa\u672c\u7684\u30fb\u4ee3\u8868\u7684\u306a\u66f8\u5f0f\uff08\u69cb\u9020\u30fb\u69cb\u6587\uff09<\/a><\/p>\n<p>SQL\u306e\u57fa\u672c\u7684\u30fb\u4ee3\u8868\u7684\u306a\u66f8\u5f0f\uff08\u69cb\u9020\u30fb\u69cb\u6587\uff09\u306f\u4ee5\u964d\u306b\u66f8\u3044\u305f\u3088\u3046\u306a\u611f\u3058\u3067\u3059\u3002<br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n\u307e\u305a\u3001\u6b21\u306e\u3088\u3046\u306b\u3001\u6a2a\u306b\u4e00\u6587\u3067\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\uff08\u6587\u304c\u77ed\u3044\u3068\u304d\u306f\u3053\u306e\u5f62\u5f0f\u3067\u66f8\u3044\u305f\u307b\u3046\u304c\u308f\u304b\u308a\u3084\u3059\u3044\u5834\u5408\u3082\u3042\u308a\u307e\u3059\u3002\uff09<\/p>\n<p><span style=\"color: #008000;\"><b>SELECT<\/b> \u53d6\u308a\u51fa\u3057\u305f\u3044\u5217\u540d <b>FROM<\/b> \u30c6\u30fc\u30d6\u30eb\u540d\uff08\u8868\uff09 <b>WHERE<\/b> \u53d6\u308a\u51fa\u3057\u305f\u3044\u884c\u306e\u62bd\u51fa\u6761\u4ef6;<\/span><br \/>\n\uff08\u5217\u540d\u306a\u3069\u306f\u8907\u6570\u6307\u5b9a\u53ef\uff09<\/p>\n<p>\u6587\u306e\u6700\u5f8c\u306b\u306f\u300c;\u300d\uff08\u30bb\u30df\u30b3\u30ed\u30f3\uff09\u304c\u8981\u308a\u307e\u3059\u3002ExcelVBA\uff0bDAO\u306a\u3069\u3067SQL\u6587\u3092\u64cd\u4f5c\u3059\u308b\u5834\u5408\u306f\u8981\u3089\u306a\u3044\u307f\u305f\u3044\u3067\u3059\u304c\u3001\u4e00\u5fdc\u3001\u305d\u306e\u5834\u5408\u3067\u3082\u3061\u3083\u3093\u3068\u4ed8\u3051\u307e\u3059\u3002<br \/>\n\u57fa\u672c\u3001\u6700\u5f8c\u306e\u300c;\u300d\u3092\u5fd8\u308c\u308b\u3068\u3001\u3069\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b7\u30b9\u30c6\u30e0\u3067\u3082\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n\u307e\u305f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3001\u610f\u5473\u6bce\u306b\u3001\u7e26\u306b\u5206\u3051\u3066\u3001\u66f8\u304f\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<br \/>\n\uff08\u6587\u304c\u9577\u304f\u306a\u3063\u305f\u3068\u304d\u306f\u3053\u306e\u5f62\u5f0f\u3067\u66f8\u3044\u305f\u307b\u3046\u304c\u308f\u304b\u308a\u3084\u3059\u3044\u3067\u3059\u3002\uff09<\/p>\n<p>\u5c11\u3057\u3001\u88dc\u8db3\u8aac\u660e\u3092\u8db3\u3057\u307e\u3059\u3002<br \/>\n<span style=\"color: #008000;\"><br \/>\n<b>SELECT<\/b><br \/>\n\u3000\u3000\u53d6\u308a\u51fa\u3057\u305f\u3044\u5217\u540d\u3000\u3000<br \/>\n\u3000\u3000\u8907\u6570\u306e\u5217\u540d\u3092\u30ab\u30f3\u30de\u3068\u534a\u89d2\u30b9\u30da\u30fc\u30b9\u3067\u533a\u5207\u3063\u3066\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002<br \/>\n\u3000\u3000\uff08\u534a\u89d2\u30b9\u30da\u30fc\u30b9\u3092\u5fd8\u308c\u308b\u3068\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u3002\uff09<br \/>\n\u3000\u3000\u203bFROM\u53e5\u306e\u30c6\u30fc\u30d6\u30eb\u304c\u8907\u6570\u3042\u3063\u3066\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u306b\u3001<br \/>\n\u3000\u3000\u3000\u3000\u3082\u3057\u540c\u3058\u5217\u540d\u304c\u3042\u308c\u3070\u3001\u300c\u30c6\u30fc\u30d6\u30eb\u540d\uff0b\u5217\u540d\u300d\u306e\u5f62\u3067\u7279\u5b9a\u3067\u304d\u307e\u3059\u3002<br \/>\n\u3000\u3000\u3000\u3000\u307e\u305f\u3001\u5217\u540d\u306b\u5225\u540d\uff08\u30a8\u30a4\u30ea\u30a2\u30b9\uff09\u3092\u4ed8\u3051\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<br \/>\n\u3000\u3000\u3000\u3000\u305f\u3068\u3048\u3070\u300c\u6027\u5225\u300d\u3084\u300c\u5e74\u9f62\u300d\u300c\u4f4f\u624001\u300d\u3068\u3044\u3063\u305f\u5217\u306f\u3001<br \/>\n\u3000\u3000\u3000\u3000\u300c\u9867\u5ba2\u30de\u30b9\u30bf\u300d\u3084\u300c\u5f93\u696d\u54e1\u30de\u30b9\u30bf\u300d\u3068\u3044\u3063\u305f\u8907\u6570\u306e\u30c6\u30fc\u30d6\u30eb<br \/>\n\u3000\u3000\u3000\u3000\u306b\u51fa\u3066\u304d\u307e\u3059\u304c\u3001\u4f8b\u3048\u3070\u3082\u3057\u4e21\u65b9\u306e\u300c\u6027\u5225\u300d\u5217\u3092\u8868\u793a\u3055\u305b\u305f\u3044\u5834\u5408\u306b\u306f\u3001<br \/>\n\u3000\u3000\u3000\u3000\u300c\u9867\u5ba2\u30de\u30b9\u30bf.\u6027\u5225,\u300d\u300c\u5f93\u696d\u54e1\u30de\u30b9\u30bf.\u6027\u5225,\u300d\u306e\u3088\u3046\u306b\u3057\u3066\u7279\u5b9a\u3067\u304d\u308b\u3001<br \/>\n\u3000\u3000\u3000\u3000\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<br \/>\n\u3000\u3000\u307e\u305f\u3001\u30ab\u30f3\u30de\u3068\u534a\u89d2\u30b9\u30da\u30fc\u30b9\u3054\u3068\u3001\u3042\u308b\u3044\u306f\u30ab\u30f3\u30de\u3054\u3068\u306b\u6539\u884c\u3057\u3066\u3001<br \/>\n\u3000\u3000\u5217\u540d\u3092\u7e26\u65b9\u5411\u306b\u5217\u6319\u3059\u308b\u3068\u898b\u3084\u3059\u3044\u3067\u3059\u3002<br \/>\n\u3000\u3000\uff08\u30ab\u30f3\u30de\u3067\u533a\u5207\u308b\u3068\u534a\u89d2\u30b9\u30da\u30fc\u30b9\u304c\u5148\u982d\u306b\u6765\u308b\u306e\u3067\u78ba\u5b9f\u3067\u3059\u3002\uff09<br \/>\n\u3000\u3000\u306a\u304a\u3001\u3053\u3053\u306eSELECT\u53e5\u306e\u4e2d\u3067\u8907\u6570\u306e\u5217\u3092\u5217\u6319\u3059\u308b\u5834\u5408\u306f\u3001<br \/>\n\u3000\u3000\u5404\u5217\u540d\u3054\u3068\u306b\u30ab\u30f3\u30de\u3092\u5165\u308c\u307e\u3059\u304c\u3001\u4e00\u756a\u6700\u5f8c\u3060\u3051\u306f\u30ab\u30f3\u30de\u7121\u3057\u3067OK\u3067\u3059\u3002<br \/>\n\u3000\u3000\uff08\u534a\u89d2\u30b9\u30da\u30fc\u30b9\u306f\u5fc5\u8981\u3067\u3059\u3002\uff09<br \/>\n\u3000\u3000\u30b9\u30da\u30fc\u30b9\u3084\u8a18\u53f7\u306f\u5168\u90e8\u534a\u89d2\u3067\u3059\u3002\u5168\u89d2\u3092\u6253\u3064\u3068\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u3000\u3000\u307e\u305f\u3001\u534a\u89d2\u30b9\u30da\u30fc\u30b9\u306f\u8907\u6570\u304c\u3064\u306a\u304c\u3063\u3066\u5165\u529b\u3055\u308c\u3066\u3044\u3066\u3082OK\u3067\u3059\u3002<br \/>\n\u3000\u30001\u500b\u4ee5\u4e0a\u3001\u3057\u304b\u308b\u3079\u304d\u5834\u6240\u306b\u5165\u3063\u3066\u3044\u308c\u3070\u3002<br \/>\n<b>FROM<\/b><br \/>\n\u3000\u3000\u30c6\u30fc\u30d6\u30eb\u540d\uff08\u8868\uff09\u3000\u3042\u308b\u3044\u306f\u3001\u30c6\u30fc\u30d6\u30eb\u306e\u72b6\u614b\u3002<br \/>\n\u3000\u3000\u8868\u306f1\u679a\u3060\u3051\u3067\u3082\u6307\u5b9a\u3067\u304d\u307e\u3059\u304c\u3001\u3082\u3061\u308d\u3093\u30011\u679a\u3060\u3051\u3068\u306f\u9650\u308a\u307e\u305b\u3093\u3002<br \/>\n\u3000\u3000\u300c\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u300d\u3068\u3044\u3046\u4ed5\u7d44\u307f\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u8907\u6570\u306e\u8868\u3092\u540c\u6642\u306b\u6271\u3048\u307e\u3059\u3002<br \/>\n\u3000\u3000Excel\u3067\u8a00\u3046\u3068\u3053\u308d\u306e\u300cVLOOKUP\u95a2\u6570\u300d\u3084<br \/>\n\u3000\u3000\u300c2016\u306e\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u30b7\u30c3\u30d7\u300d\u306e\u3088\u3046\u306a\u7d50\u5408\u3001<br \/>\n\u3000\u3000\u3064\u307e\u308a\u3001\u30d9\u30f3\u56f3\u306b\u304a\u3051\u308b\u5186\u306e\u91cd\u306a\u3063\u305f\u90e8\u5206\uff08\u30e9\u30b0\u30d3\u30fc\u30dc\u30fc\u30eb\u3092\u7e26\u306b\u3057\u305f\uff09\u306e<br \/>\n\u3000\u3000\u30a4\u30e1\u30fc\u30b8\u306e\u6a2a\u7d50\u5408\u3001<br \/>\n\u3000\u3000\u3042\u308b\u3044\u306f\u3001\u305d\u3053\u306e\u90e8\u5206\uff0b\u91cd\u306a\u3063\u3066\u306a\u3044\u90e8\u5206\u306e\u6a2a\u7d50\u5408\u3001\u306a\u3069\u3001<br \/>\n\u3000\u3000\u3044\u308d\u3093\u306a\u30bf\u30a4\u30d7\u306e\u300c\u8868\u306e\u72b6\u614b\uff08\u6a2a\u7d50\u5408\u306e\u72b6\u614b\uff09\u300d\u3092\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002<br \/>\n\u3000\u3000\u8868\u306f\u30012\u679a\u3060\u3051\u3067\u306a\u304f\u30013\u679a\u30014\u679a\u3001\u305d\u308c\u4ee5\u4e0a\u3001\u3068\u540c\u6642\u306b\u6271\u3048\u307e\u3059\u3002<br \/>\n\u3000\u3000\u307e\u305f\u3001\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u306f\u3001\u4f8b\u3048\u30702\u679a\u306e\u8868\u306e\u3042\u3044\u3060\u3067\u3001<br \/>\n\u3000\u30001\u672c\u3060\u3051\u3067\u306a\u304f\u30012\u672c\u30013\u672c\u3068\u4f7f\u3048\u307e\u3059\u3002\uff08\u63a8\u5968\u3067\u306f\u306a\u3044\u3067\u3059\u304c\uff09\u3000<br \/>\n\u3000\u3000\u5404\u30ad\u30fc\u30ef\u30fc\u30c9\u306e\u9593\u3068\u6700\u5f8c\u306b\u306f\u534a\u89d2\u30b9\u30da\u30fc\u30b9\u304c\u5fc5\u8981\u3067\u3059\u3002<br \/>\n<b>WHERE<\/b><br \/>\n\u3000\u3000\u53d6\u308a\u51fa\u3057\u305f\u3044\u884c\u306e\u62bd\u51fa\u6761\u4ef6;<br \/>\n\u3000\u3000AND\u3084OR\u3092\u4f7f\u3063\u3066\u3001\u8907\u6570\u306e\u6761\u4ef6\u3092\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002<br \/>\n\u3000\u3000\u671f\u9593\u3084\u91d1\u984d\u306a\u3069\u3001\u30c6\u30fc\u30d6\u30eb\u5185\uff08\u8868\u5185\uff09\u306b\u3042\u308b\u5217\u306e\u3042\u3089\u3086\u308b\u6761\u4ef6\u30fb\u7bc4\u56f2\u3092\u3001<br \/>\n\u3000\u3000\u4e00\u5ea6\u306b\u3001\u8907\u6570\u3001\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002<br \/>\n\u3000\u3000\u5404\u30ad\u30fc\u30ef\u30fc\u30c9\u306e\u9593\u306b\u306f\u534a\u89d2\u30b9\u30da\u30fc\u30b9\u304c\u5fc5\u8981\u3067\u3059\u3002<br \/>\n<\/span><\/p>\n<p>\u203b\u3053\u3053\u3067\u3082\u6587\u306e\u6700\u5f8c\u306b\u306f\u300c;\u300d\uff08\u30bb\u30df\u30b3\u30ed\u30f3\uff09\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p>\u203b\u300cWHERE\u300d\u306e\u3042\u3068\u306b\u306f\u3001\u300cORDER BY\u300d\uff08\u4e26\u3079\u66ff\u3048\uff09\u3084\u300cGROUP BY\u300d\uff08\u30b0\u30eb\u30fc\u30d7\u5316\uff09\u306a\u3069\u306e\u6761\u4ef6\u3082\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u3001\u300cUNION\u300d\u3092\u4f7f\u3046\u3053\u3068\u3067\u7e26\u306e\u7d50\u5408\u306e\u8868\u3092\u4f5c\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30fb\u30fb\u30fb\u3068\u3044\u3046\u308f\u3051\u3067\u3001\u3053\u306e\u300c\u66f8\u5f0f\u30fb\u69cb\u6587\u30fb\u69cb\u9020\u300d\u306e\u30dd\u30a4\u30f3\u30c8\u3068\u3057\u3066\u306f\u30fb\u30fb\u30fb<\/p>\n<p>\u9806\u5e8f\u7684\u306b\u524d\u5f8c\u306f\u3057\u307e\u3059\u304c\u3001<br \/>\n<span style=\"font-size: 11pt; color: #7401DF;\">(01)\u300c<b>FROM<\/b>\uff08\u76f4\u8a33\uff1a\uff5e\u304b\u3089\uff09\u300d\u306e\u3068\u3053\u308d\u306b\u66f8\u3044\u305f\u300c\u30c6\u30fc\u30d6\u30eb\u30fb\u307e\u305f\u306f\u30fb\u30c6\u30fc\u30d6\u30eb\u306e\u72b6\u614b\u300d\u304b\u3089\u3001<br \/>\n(02)\u300c<b>WHERE<\/b>\uff08\u76f4\u8a33\uff1a\uff5e\u3069\u3053\uff1f\uff5e\uff09\u300d\u306e\u3068\u3053\u308d\u306b\u66f8\u3044\u305f\u6761\u4ef6\u3067\u300c\u53d6\u308a\u51fa\u3059\u884c\u300d\u3092\u7279\u5b9a\u3057\u3001<br \/>\n(03)\u300c<b>SELECT<\/b>\uff08\u76f4\u8a33\uff1a\u9078\u629e\uff09\u300d\u306e\u3068\u3053\u308d\u306b\u66f8\u3044\u305f\u5217\u540d\u3067\u300c\u53d6\u308a\u51fa\u3059\u5217\u300d\u3092\u7279\u5b9a\u3057\u305f\u3046\u3048\u3067\u3001<br \/>\n(04)\u300c\u4eee\u60f3\u8868\u300d\u3092\u4f5c\u6210\u30fb\u3042\u308b\u3044\u306f\u51fa\u529b\u3059\u308b\u3001<\/SPAN><br \/>\n\u305d\u3046\u3044\u3046\u5f62\u3067\u3001\u30c7\u30fc\u30bf\u3092\u3001VBA\u306a\u3069\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u8a00\u8a9e\u3092\u4f7f\u308f\u305a\u306b\u7c21\u5358\u306b\u53d6\u308a\u51fa\u3059\u306e\u304c\u300cSQL\u300d\u300cSQL\u6587\u300d\u30fb\u30fb\u30fb<\/p>\n<p>\u30fb\u30fb\u30fb\u3068\u3044\u3046\u3068\u3053\u308d\u304c\u30dd\u30a4\u30f3\u30c8\u3067\u3059\u3002<br \/>\n\uff08\u300cWHERE\u300d\u304c\u7121\u3044\u5834\u5408\u306f\u300c\u5168\u3066\u306e\u884c\u300d\u304c\u53d6\u308a\u51fa\u3055\u308c\u307e\u3059\u3002\uff09<br \/>\n<span style=\"color: #ff0000;\"><b>Excel\u306e\u30bb\u30eb\u30a2\u30c9\u30ec\u30b9\u30d9\u30fc\u30b9\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u3001\u30b7\u30fc\u30c8\u3092\u898b\u306a\u3044\u3068\u610f\u5473\u4e0d\u660e\u3067\u3059\u304c\u3001SQL\u306f\u300c\u5217\u540d\u3068\u884c\u306e\u62bd\u51fa\u6761\u4ef6\u30d9\u30fc\u30b9\u300d\u306a\u306e\u3067\u3001\u30b7\u30fc\u30c8\u3092\u898b\u306a\u304f\u3066\u3082\u610f\u5473\u304c\u308f\u304b\u308a\u3084\u3059\u3044\u3067\u3059\u3002<BR><br \/>\n\u307e\u305f\u3001\u3053\u3053\u3067\u306f\u3084\u3063\u3066\u3044\u307e\u305b\u3093\u304c\u3001<font style=\"border-bottom:3px double #ff0000;\">\u300c\u3055\u3089\u306b\u5225\u306e\u547d\u4ee4\u3092\u8ffd\u52a0\u3067\u4f7f\u3046\u3068\u300d\u3001\u4e0a\u8a18\u306e\u3088\u3046\u306b\u30ea\u30b9\u30c8\u30a2\u30c3\u30d7\u3057\u305f\u3082\u306e\u3092\u66f4\u306b\u300c\u540c\u6642\u306b\uff08\u4e00\u767a\u3067\uff09\u300d\u3001\u96c6\u8a08\u3057\u305f\u308a\u4e26\u3079\u66ff\u3048\u3057\u305f\u308a\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/font><\/b><\/span><\/p>\n<p>\u306a\u304a\u3001\u3053\u306eSQL\u6587\u306f\u3001Excel\u306e\u300cMicrosoft Query\u300d\u3084Access\u306e\u300c\u30af\u30a8\u30ea\u300d\u306e\u6a5f\u80fd\uff08\u753b\u9762\uff09\u306b\u3066\u3001\u30c9\u30e9\u30c3\u30b0\u3084\u30af\u30ea\u30c3\u30af\u64cd\u4f5c\u4e2d\u5fc3\uff08\u3042\u3068\u306f\u7c21\u5358\u306a\u6761\u4ef6\u5165\u529b\u7b49\uff09\u3067\u3001\u81ea\u52d5\u751f\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\uff08\u305d\u308c\u305e\u308c\u300c\u65b9\u8a00\u300d\u306e\u3088\u3046\u306a\u5fae\u5999\u306a\u9055\u3044\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u3067\u3082\u3001\u57fa\u672c\u7684\u306b\u306f\u3061\u3083\u3093\u3068\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002\uff09<\/p>\n<p>\u3061\u306a\u307f\u306b\u3067\u3059\u304c\u3001\u8a71\u3092\u9038\u3089\u3057\u3066\u3059\u307f\u307e\u305b\u3093\u304c\uff08\u6025\u306b\u3001\u5c11\u3057\u306e\u9593\u3001\u8a00\u8449\u3065\u304b\u3044\u304c\u60aa\u304f\u306a\u308b\u3053\u3068\u3092\u3069\u3046\u304b\u304a\u8a31\u3057\u304f\u3060\u3055\u3044\uff01\uff09\u3001\u4eba\u306b\u3088\u3063\u3066\u306f\u3001\u3053\u306eExcel\u306e\u300cMicrosoft Query\u300d\u3084Access\u306e\u300c\u30af\u30a8\u30ea\u300d\u306e\u6a5f\u80fd\u304c\u81ea\u52d5\u751f\u6210\u3059\u308bSQL\u6587\u3092\u300c\u308f\u304b\u308a\u306b\u304f\u3044\u3068\u304b\u3001\u898b\u306b\u304f\u3044\uff01\u30af\u30bd\u3060\uff01\u300d\u3068\u304b\u99ac\u9e7f\u306b\u3059\u308b\u4eba\u304c\u3044\u307e\u3059\u3051\u3069\u3001\u305d\u3093\u306a\u306e\u306f\u81ea\u52d5\u6574\u5f62\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u81ea\u5206\u3067\u4f5c\u308c\u3070\u4e00\u767a\u3067\u898b\u3084\u3059\u304f\u306a\u308b\u306e\u3067\u3001\u7121\u80fd\u306a\u4eba\u3057\u304b\u305d\u3046\u3044\u3046\u3053\u3068\u3092\u8a00\u3044\u307e\u305b\u3093\u3002<br \/>\nSQL\u6587\u3092\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306b\u6b8b\u3057\u3066\u304a\u3051\u3070\u3001\u3044\u3064\u3067\u3082\u300cGUI\u3067\u306e\u8a2d\u5b9a\u72b6\u614b\u300d\u300c\u30c7\u30fc\u30bf\u62bd\u51fa\u6761\u4ef6\u300d\u3082\u5fa9\u5143\u3067\u304d\u307e\u3059\u3057\u3001\u4f7f\u3044\u9053\u306f\u8272\u3005\u3068\u3042\u308a\u307e\u3059\u3002<br \/>\n\u300c\u308f\u304b\u308a\u306b\u304f\u3044\u3068\u304b\u3001\u898b\u306b\u304f\u3044\uff01\u30af\u30bd\u3060\uff01\u300d\u3068\u304b\u30d2\u30b9\u30c6\u30ea\u30c3\u30af\u306b\u8a00\u3044\u51fa\u3057\u3066\u300cMicrosoft Query\u300d\u3084Access\u306e\u300c\u30af\u30a8\u30ea\u300d\u3092\u30d0\u30ab\u306b\u3059\u308b\u4eba\u306f\u3001\u300c\u4f7f\u3048\u308b\u6a5f\u80fd\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u3057\u3088\u3046\u3068\u3057\u306a\u3044\u300d\u3001\u300c\u8d85\u7121\u80fd\u300d\u306a\u4eba\u3067\u3059\u3002\uff08\u30fb\u30fb\u30fb\u3063\u3066\u3001\u50d5\u3082\u30d2\u30b9\u30c6\u30ea\u30c3\u30af\u306a\u30d0\u30ab\u30fb\u30af\u30ba\u3067\u3057\u305f\u3002\u3059\u307f\u307e\u305b\u3093\u3002\uff09<\/p>\n<p>\u300c\u4f7f\u3048\u305d\u3046\u3082\u306a\u3044\u3082\u306e\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u5de5\u592b\u3057\u3066\u4f7f\u3046\u300d\u3068\u3044\u3046\u3053\u3068\u304c\u3067\u304d\u3066\u306f\u3058\u3081\u3066\u300c\u4eba\u9593\u300d\u30fb\u30fb\u30fb\u3001\u3067\u3059\u304b\u3089\u3001\u300c\u201d\u305d\u3082\u305d\u3082\u4f7f\u3048\u308b\u3082\u306e\u201d\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u4f7f\u308f\u306a\u3044\u300d\u306e\u306f\u300c\u4eba\u9593\u3067\u306f\u306a\u3044\u30fb\u30b5\u30eb\u4ee5\u4e0b\u30fb\u3068\u3044\u3046\u304b\u50d5\u3068\u540c\u3058\u30be\u30a6\u30ea\u30e0\u30b7\u4ee5\u4e0b\u300d\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u662f\u975e\u3001\u305d\u3046\u3044\u3063\u305f\u300c\u7121\u80fd\u300d\u306a\u4eba\u306b\u306a\u3089\u306a\u3044\u3088\u3046\u306b\u3001\u307e\u305f\u3001\u305d\u3046\u3044\u3063\u305f\u300c\u7121\u80fd\u300d\u306a\u4eba\u306e\u8a00\u8449\u306b\u9a19\u3055\u308c\u306a\u3044\u3088\u3046\u306b\u3001\u3069\u3046\u304b\u3054\u6ce8\u610f\u304f\u3060\u3055\u3044\u3002\uff08\u30fb\u30fb\u30fb\u3063\u3066\u3001\u307b\u3093\u3068\u3001\u50d5\u3082\u30d2\u30b9\u30c6\u30ea\u30c3\u30af\u306a\u30d0\u30ab\u30fb\u30af\u30ba\u3067\u3057\u305f\u3002\u3059\u307f\u307e\u305b\u3093\u3002\u6065\uff09<\/p>\n<p>\u3067\u3082\u3001\u307b\u3093\u3068\u3001\u305d\u3046\u3044\u3046\u30d0\u30ab\u306b\u306a\u3089\u306a\u3044\u3088\u3046\u306b\u3001\u7279\u306b\u304a\u82e5\u3044\u65b9\u3005\u306f\u304a\u6c17\u3092\u4ed8\u3051\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u597d\u904b\u3084\u826f\u3044\u51fa\u4f1a\u3044\u304c\u9003\u3052\u3061\u3083\u3044\u307e\u3059\u304b\u3089\u30fb\u30fb\u30fb\u3002<\/p>\n<p><SPAN>\u3000\u3000<\/SPAN><br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n<a name=\"lbl_130\">\u2605 EXCEL\u3067SQL\u3092\u4f7f\u3046\u65b9\u6cd5\uff14\u3064<\/a><\/p>\n<p>EXCEL\u3067SQL\u3092\u4f7f\u3046\u306b\u306f\u3001\u4ee5\u964d\u306e(01)\uff5e(04)\u306a\u3069\u306e\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n(\u4ee5\u964d\u306e(02)\u3088\u308a\u4e0b\u306e\u65b9\u6cd5\u306f\u3001\u81ea\u52d5\u3067SQL\u6587\u3092\u751f\u6210\u3067\u304d\u306a\u3044\u306e\u3067\u3001\u52c9\u5f37\u3057\u3066\u624b\u4f5c\u696d\u3067\u66f8\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002)<\/p>\n<p>(01)\u306fSQL\u306e\u5b66\u7fd2\u306b\u5229\u7528\u3067\u304d\u307e\u3059\u3057\u3001\u3061\u3087\u3068\u3057\u305f\u3053\u3068\u306b\u3059\u3054\u304f\u4f7f\u3048\u307e\u3059\u3002\u307e\u305f\u3001Access\u306e\u300c\u30af\u30a8\u30ea\u300d\u3068\u3044\u3046\u6a5f\u80fd\u306b\u9177\u4f3c\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u3001Access\u306e\u30af\u30a8\u30ea\u306e\u52c9\u5f37\u304cExcel\u3067\u3082\u3067\u304d\u3066\u3057\u307e\u3046\u3001\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>(02)\u3001(03)\u306f\u3001VBA\u3068\u306e\u76f8\u6027\u304c\u3044\u3044\u3067\u3059\u3002<br \/>\n(01)\uff5e(03)\u304c\u3067\u304d\u308b\u3068\u3001\u76f8\u5f53\u306a\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30b7\u30b9\u30c6\u30e0\u696d\u8005\u3055\u3093\u3068\u307b\u307c\u540c\u3058\u3088\u3046\u306a\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n<SPAN>\u3000\u3000<\/SPAN><\/p>\n<p>\u3067\u306f\u4ee5\u4e0b\u3001SQL\u3092Excel\u3067\u6271\u3046\u65b9\u6cd5\u306e\u6982\u8981\u3067\u3059\u3002\uff0801\uff5e04\uff09<br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n<a name=\"lbl_132\">(01)\u300cMicrosoft Query\u300d\u3068\u3044\u3046\u6a5f\u80fd\u3092\u4f7f\u3046\u3002<\/a><\/p>\n<p>Access\u3068\u3044\u3046\u30bd\u30d5\u30c8\u306e\u300c\u30af\u30a8\u30ea\u300d\u3068\u3044\u3046\u6a5f\u80fd\u3068\u9177\u4f3c\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u306a\u306e\u3067\u3001Access\u30af\u30a8\u30ea\u306e\u52c9\u5f37\u304cExcel\u3067\u3082\u3067\u304d\u308b\u30fb\u30fb\u30fb\u3001\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\nAccess\u306b\u3082\u5165\u308a\u3084\u3059\u304f\u306a\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u300cMicrosoft Query\u300d\u3084\u300cAccess\u30af\u30a8\u30ea\u300d\u3092\u4f7f\u3046\u3068\u3001\u300cSQL\u3092\u77e5\u3089\u306a\u304f\u3066\u3082\u300d\u3001\u30c9\u30e9\u30c3\u30b0\u3084\u30af\u30ea\u30c3\u30af\u90e8\u5206\u7684\u306a\u6761\u4ef6\u5165\u529b\u3060\u3051\u3067\u3001\u81ea\u52d5\u7684\u306bSQL\u304c\u751f\u6210\u3055\u308c\u3001\u304b\u3064\u3001\u30ea\u30b9\u30c8\u30a2\u30c3\u30d7\u3084\u96c6\u8a08\u3001\u4e26\u3079\u66ff\u3048\u7b49\u3005\u304c\u5168\u90e8\u4e00\u62ec\u3067\u540c\u6642\u306b\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><font style=\"border-bottom:3px double #ff0000;\">\u306a\u306e\u3067\u3001\u300cSQL\u306e\u5b66\u7fd2\u300d\u306b\u3068\u3066\u3082\u5f79\u306b\u7acb\u3061\u307e\u3059\u3002<\/font><\/p>\n<p>\u624b\u52d5\u3067SQL\u3092\u66f8\u304f\u3053\u3068\u3082\u3067\u304d\u3001SQL\u547d\u4ee4\u6587\u306e\u300c\u30cd\u30b9\u30c8\u7684\u306a\u3053\u3068\u300d\u3082\u3084\u308c\u307e\u3059\u3002(\u300c\u526f\u554f\u3044\u5408\u308f\u305b\u300d\u3068\u3044\u3044\u307e\u3059\u3002\u305f\u3060\u3001SQL\u547d\u4ee4\u6587\u306e\u66f8\u304d\u65b9\u306b\u3064\u3044\u3066\u306f\u3001\u5c11\u3057\u3001\u300cEXCEL\u306e\u65b9\u8a00\u300d\u7684\u306a\u72ec\u81ea\u30eb\u30fc\u30eb\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3082\u3061\u308d\u3093\u3001\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\uff08VLOOKUP\u95a2\u6570\u3067\u306e\u7d10\u3064\u3051\u306e\u3088\u3046\u306a\u3053\u3068\uff09\u3092\u8907\u6570\u672c\u30012\u3064\u306e\u8868\u30843\u3064\u306e\u8868\u306a\u3069\u306e\u3042\u3044\u3060\u3067\u4f5c\u6210\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<br \/>\n\u624b\u52d5\u3067\u306eSQL\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u4ed6\u306e\u300c\u9589\u3058\u305fExcel\u30d5\u30a1\u30a4\u30eb\u300d\u306e\u300c\u8aad\u307f\u8fbc\u307f\u300d\u306f\u3082\u3061\u308d\u3093\u3001\u300c\u9589\u3058\u305f\u307e\u307e\u306e\u66f8\u304d\u8fbc\u307f\u300d\u3082\u4e00\u5fdc\u306f\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u57fa\u672c\u3001\u7d50\u679c\u306e\u8868\u306b\u306f\u6570\u5f0f\u306f\u57cb\u3081\u8fbc\u307e\u308c\u305a\u3001\uff08SQL\u306e\u5074\u3067\u5404\u7a2e\u306e\u8a08\u7b97\u304c\u306a\u3055\u308c\u308b\u306e\u3067\uff09\u7d50\u679c\u306e\u8868\u306f\u300c\u5024\u300d\u3060\u3051\u3067\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u901f\u5ea6\u3082VBA\u306e\u30eb\u30fc\u30d7\u3092\u4f7f\u3046\u3088\u308a\u3082\u51e6\u7406\u304c\u9ad8\u901f\u306b\u306a\u308b\u5834\u5408\u304c\u5c11\u306a\u304f\u306a\u3044\u3067\u3059\u3002<br \/>\n\u30d5\u30a1\u30a4\u30eb\u3092\u9589\u3058\u3066\u958b\u304f\u5834\u5408\u3082\uff08\u958b\u304f\u3068\u540c\u6642\u306b\u66f4\u65b0\u3059\u308b\u8a2d\u5b9a\u306b\u3057\u306a\u3051\u308c\u3070\uff09\u3001\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u95a2\u6570\u3092\u4f7f\u3044\u307e\u304f\u3063\u305f\u30b7\u30fc\u30c8\u3088\u308a\u306f\u901f\u304f\u958b\u304f\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u91cd\u8907\u8abf\u67fb\u306a\u3069\u306b\u3082\u4f7f\u3048\u307e\u3059\uff08\u4ee5\u964d\u306e(02)\uff5e(04)\u3082\u5168\u90e8\u305d\u3046\u3067\u3059\u3002\uff09<\/p>\n<p>\u4f8b\u3048\u3070A\u3068B\u306e2\u3064\u306e\u8868\u306b\u304a\u3044\u3066\u30011\u3064\u306e\u5217\u3067\u91cd\u8907\u3092\u8abf\u3079\u305f\u3044\u3068\u304d\u306f\u3001\u4e21\u65b9\u306e\u8868\u306e\u4e2d\u3067\u3001\u91cd\u8907\u3092\u8abf\u3079\u305f\u3044\u5217\u3068\u5217\u3092\u30c9\u30e9\u30c3\u30b0\u3067\u7d50\u3076\u3060\u3051\u3067\u3059\u3002\u3055\u3089\u306b\u30012\u3064\u30013\u3064\u30014\u3064\u3001\u3068\u3001\u8907\u6570\u306e\u5217\u3067\u540c\u6642\u306b\u91cd\u8907\u3092\u8abf\u3079\u305f\u3044\u3068\u304d\u306f\u30012\u3064\u30013\u3064\u30014\u3064\u3001\u3068\u30c9\u30e9\u30b0\u3059\u308c\u3070\u7d42\u308f\u308a\u3067\u3059\u3002<\/p>\n<p>\u203b\u8868\u3068\u8868\u306e\u7d10\u4ed8\u3051\u3092\u300c\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u300d\u3068\u3044\u3044\u307e\u3059\u304c\u3001\u8868\u306e\u6570\u306f2\u679a\u3060\u3051\u3067\u306a\u304f\u30013\u679a\u30014\u679a\u3068\u3001\u7d10\u4ed8\u3051\u53ef\u80fd\u3067\u3059\u3002UNION ALL \u3068\u3044\u3046\u547d\u4ee4\u3092\u4f7f\u3046\u3068\u3001\u3059\u3079\u3066\u306e\u8868\u3084\u4efb\u610f\u306e\u8907\u6570\u306e\u8868\u306e\u7279\u5b9a\u306e\u5217\u3092\u3001\u7e26\u306b\u7d50\u5408\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001Microsoft Query\u306e\u7d50\u679c\u306e\u8868\u3092\u30bd\u30fc\u30b9\u306b\u3057\u305f\u30d4\u30dc\u30c3\u30c8\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3059\u308b\u3068\u30012010\u4ee5\u964d\u306ePowerQuery\u3084\u30d4\u30dc\u30c3\u30c8\u306e\u30d5\u30a3\u30eb\u30bf\u6a5f\u80fd\u3001\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u30b7\u30c3\u30d7\u6a5f\u80fd\u306a\u3069\u3092\u4f7f\u3046\u3088\u308a\u3082\u3001\u3088\u308a\u67d4\u8edf\u3067\u5f37\u529b\u306a\u300c\u6761\u4ef6\u3064\u304d\u30ea\u30b9\u30c8\u30a2\u30c3\u30d7 or \u96c6\u8a08\u300d\u304c\u3067\u304d\u308b\u3068\u601d\u3044\u307e\u3059\u3002\u305d\u308c\u306f\u5168\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u4f7f\u3048\u308b\u3084\u308a\u65b9\u3067\u3059\u3002<br \/>\n\u3055\u3089\u306b\u3001\u300c\u540d\u524d\u306e\u5b9a\u7fa9\u306e\u6a5f\u80fd\u300d\u3067\u884c\u3068\u5217\u304c\u5897\u6e1b\u3057\u3066\u3082\u5927\u4e08\u592b\u306a\u3088\u3046\u306b\u30bd\u30fc\u30b9\u306e\u8868\u3092\u300c\u53ef\u5909\u300d\u306b\u3059\u308b\u3068\u3001\u3055\u3089\u306b\u4fbf\u5229\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u308c\u3082\u5168\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u4f7f\u3048\u308b\u3084\u308a\u65b9\u3067\u3059\u3002<\/p>\n<p>\u305d\u306e\u300c\u53ef\u5909\u300d\u306b\u3059\u308b\u305f\u3081\u306e\u516c\u5f0f\u2193<br \/>\n =OFFSET($A$1,0,0,COUNTA($A:$A),COUNTA($1:$1))<\/p>\n<p> \u203b\u3053\u308c\u306f\u3001A1\u306e\u884c\u304c\u5217\u540d\u3067\u3042\u308b\u3053\u3068\u304c\u524d\u63d0\u3067\u3059\u3002\u8cbc\u308a\u4ed8\u3051\u5f8c\u3001Excel\u304c\u81ea\u52d5\u7684\u306b\u30b7\u30fc\u30c8\u540d\u3060\u3051\u3092\u633f\u5165\u3057\u3066\u304f\u308c\u307e\u3059\u3002\u5f0f\u306e\u4f7f\u3044\u65b9\u306a\u3069\u3001\u8a73\u3057\u304f\u306f\u3001\u540d\u524d\u306e\u5b9a\u7fa9\u306e\u65b9\u6cd5\u3092Web\u306a\u3069\u3067\u8abf\u3079\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u203b\u3042\u3068\u30012007\u4ee5\u964d\u306f\u3001Microsoft Query\u3092\u4f7f\u3046\u3068\u3001ListObject\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff08\u30c6\u30fc\u30d6\u30eb\u6a5f\u80fd\uff09\u306e\u4e2d\u306b\u3001QueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u57cb\u3081\u8fbc\u307e\u308c\u308b\u5f62\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u305d\u306e\u305f\u3081\u304b\u3088\u304f\u308f\u304b\u308a\u307e\u305b\u3093\u304c\u3001\u81ea\u30d5\u30a1\u30a4\u30eb\u306b\u96c6\u8a08\u3084\u30ea\u30b9\u30c8\u30a2\u30c3\u30d7\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308b\u3068\u3001\u30a8\u30e9\u30fc\u306b\u306a\u3063\u305f\u308a\u3001\u6b63\u5e38\u52d5\u4f5c\u3057\u307e\u305b\u3093\u3002\uff08\u50d5\u306eExcel\u3060\u3051\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u30fb\u30fb\u30fb\uff09<br \/>\n\u306a\u306e\u3067\u3001\u5225\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u3001\u76ee\u7684\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u8997\u304d\u306b\u3044\u3063\u3066\u3001Microsoft Query\u3092\u4f7f\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u901f\u5ea6\u3082\u81ea\u30d5\u30a1\u30a4\u30eb\u3092\u6271\u3046\u3088\u308a\u306f\u65ad\u7136\u901f\u3044\u3067\u3059\u3002<\/p>\n<p>2003\u4ee5\u524d\u306f\u3001Microsoft Query\u3092\u4f7f\u3046\u3068(02)\u306e\u300cQueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d\u3060\u3051\u304c\u30b7\u30fc\u30c8\u4e0a\u306b\u751f\u6210\u3055\u308c\u308b\u306e\u3067\u3001\u305d\u3046\u3044\u3046\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u3002\uff08\u305f\u3060\u3001\u81ea\u30d5\u30a1\u30a4\u30eb\u306e\u30c7\u30fc\u30bf\u3092Microsoft Query\u3067\u8997\u304d\u306b\u884c\u304f\u3068\u3001Excel\u306b\u7d50\u679c\u3092\u8fd4\u3059\u3068\u304d\u306e\u901f\u5ea6\u304c\u3059\u3054\u304f\u9045\u3044\u3067\u3059\u3002\u306a\u306e\u3067\u3084\u3080\u3092\u3048\u306a\u3044\u6642\u4ee5\u5916\u306f\u3042\u307e\u308a\u4f7f\u3044\u307e\u305b\u3093\u3002\u306a\u304a\u3001Microsoft Query\u3067\u306f\u306a\u304f\u3066\u3001(02)\u306e\u3088\u3046\u306b\u300cQueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d\u3060\u3051\u3092\u4f7f\u3046\u3068\u3001\u901f\u5ea6\u306f\u81ea\u30d5\u30a1\u30a4\u30eb\u3067\u3082\u9ad8\u901f\u3067\u3059\u3002\uff09<\/p>\n<p>\u203b\u53c2\u8003\u8a18\u4e8b<\/p>\n<p>\u300e<a href=\"https:\/\/euc-access-excel-db.com\/tips\/ct08_exceltruebasic\/ct080101_excel_true_can\/microsoft-query\" target=\"_blank\" rel=\"noopener noreferrer\">Excel\u3067\u306eGUI\u3067\u306e\u7c21\u6613SQL\u6a5f\u80fd\u300cMicrosoft Query\u300d\u306e\u4f7f\u3044\u65b9\uff08Excel2010\u3067\u3082\u307b\u307c\u540c\u3058\u64cd\u4f5c\u3067\u3059\uff09 \uff5e \u30d3\u30b8\u30cd\u30b9\u30c7\u30fc\u30bf\u7ba1\u7406\uff08\u30b3\u30b9\u30c8\u6e1b\u7b49\u542b\u3080\uff09\u30922\uff5e100\u500d\u52b9\u7387\u5316\u3059\u308b\u30c4\u30fc\u30eb\u305d\u306e1<\/a>\u300f<\/p>\n<p>\u300e<a href=\"https:\/\/euc-access-excel-db.com\/tips\/ct08_exceltruebasic\/ct080101_excel_true_can\/excel_pos_n_fmcalc-2\" target=\"_blank\" rel=\"noopener noreferrer\">Excel2000\u306730\u5206\u3067\u4f5c\u308b\u30d0\u30fc\u30b3\u30fc\u30c9POS\u30ec\u30b8\u306e\u30b3\u30a2\u90e8\u5206\uff08\u5b9a\u578b\u96c6\u8a08\u52b9\u7387\u5316\u30b5\u30f3\u30d7\u30eb\uff09\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/a>\u300f<\/p>\n<p>\u300e<a href=\"https:\/\/euc-access-excel-db.com\/tips\/ct08_exceltruebasic\/ct081010_agg_n_listup_sql\/microsoft-query-can\" target=\"_blank\" rel=\"noopener noreferrer\">\u300cMicrosoft Query\u300d \u3067\u79c1\u305f\u3061\u7d20\u4eba\u306e\u30a8\u30f3\u30c9\u30e6\u30fc\u30b6\u30fc\u3067\u3082\u3067\u304d\u308b\u3053\u3068 \u3044\u308d\u3044\u308d<\/a>\u300f<\/p>\n<p>\u300e<a href=\"https:\/\/euc-access-excel-db.com\/tips\/ct08_exceltruebasic\/ct080101_excel_true_can\/meisai_every_customer\" target=\"_blank\" rel=\"noopener noreferrer\">Excel\uff0bWord\u3067\u3001\u660e\u7d30\u4ed8\u304d\u306e\u9867\u5ba2\u5225\u5dee\u8fbc\u307f\u5370\u5237\u3092\u3059\u308b\u65b9\u6cd5\u3002\uff08\u9867\u5ba2\u5225\u9023\u7d9a\u5207\u63db\u660e\u7d30\u5370\u5237\u30fb\u57fa\u672cVBA\u30bc\u30ed\u30fb\u300cMicrosoft Query\u300d\u3092\u4f7f\u7528\u3057\u3066\u5404\u7a2e\u6761\u4ef6\u3082\u5909\u66f4\u3067\u304d\u308b\u306e\u3067\u4e00\u5ea6\u4f5c\u308b\u3068\u6761\u4ef6\u5225\u306b\u5370\u5237\u304c\u53ef\u80fd\u3067\u3059\u3002\uff5e\u671f\u9593\u5225\u3001\u30e9\u30f3\u30af\u5225\u3001\u5730\u57df\u5225\u3001\u660e\u7d30\u5185\u5bb9\u7b49\u3005\uff5e\uff09<\/a>\u300f<\/p>\n<p>\u300e<a href=\"https:\/\/euc-access-excel-db.com\/tips\/ct08_exceltruebasic\/ct080820_make_table_rule\/table-make-tutorial-01\" target=\"_blank\" rel=\"noopener noreferrer\">\u2605\u2605\u2605 Excel\u306e\u771f\u306e\u57fa\u790e\uff5e\u52b9\u7387\u3092\u826f\u304f\u3059\u308b\u4f5c\u8868\u306e\u30eb\u30fc\u30eb\u30fb\u57fa\u672c\u624b\u9806\uff08\u3061\u3087\u3063\u3068\u8a73\u7d30\u7248\uff09\uff5eExcel\u3084\u30d1\u30bd\u30b3\u30f3\u3092\u5358\u306a\u308b\u7d19\u3068\u96fb\u5353\u306e\u5ef6\u9577\u3068\u3057\u3066\u3067\u306f\u306a\u304f\u3001\u771f\u306e\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u3068\u3057\u3066\u4f7f\u3046\u305f\u3081\u306b\uff5eMicrosoft Query\u3084\u30d4\u30dc\u30c3\u30c8\u30c6\u30fc\u30d6\u30eb\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u306b\u3002\uff5e<\/a>\u300f<\/p>\n<p> \uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a<\/p>\n<p><a name=\"lbl_134\">(02)VBA\u306e\u300cQueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d+SQL\u30fb\u30fb\u30fb\u30fb\uff08(01)\u3092\u300c\u30de\u30af\u30ed\u306e\u8a18\u9332\u300d\u3067\u4f5c\u308b\u3068\u3067\u304d\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\uff09<\/a><br \/>\n (ODBC\u63a5\u7d9a\uff1aMicrosoft Query\u65e2\u5b9a\u306e\u63a5\u7d9a\u6a5f\u80fd\u3067\u3059\u3002)<\/p>\n<p>SQL\u3092\u4f7f\u3063\u3066\u91cd\u8907\u8abf\u67fb\u3084\u30ea\u30b9\u30c8\u30a2\u30c3\u30d7\u3001\u96c6\u8a08\u3057\u305f\u7d50\u679c\u3092\u3001\u300cQueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d\u3068\u3057\u3066\u30b7\u30fc\u30c8\u4e0a\u306b\u8868\u793a\u3067\u304d\u307e\u3059\u3002VBA\u306b\u3066\u30b7\u30fc\u30c8\u4e0a\u306b\u7d50\u679c\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n<p>\u300cQueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d\u81ea\u4f53\u304c\u3001\u300c\u30c7\u30fc\u30bf\u64cd\u4f5c\u3092\u3057\u305f\u7d50\u679c\u3092\u8868\u793a\u3067\u304d\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff08\uff1d\u30df\u30cb\u30df\u30cb\u30ed\u30dc\u30c3\u30c8\uff09\u300d\u306e\u305f\u3081\u3001(03)\u3084(04)\u306e\u3088\u3046\u306b\u3001CopyFromRecordSet\u30e1\u30bd\u30c3\u30c9\u306a\u3069\u3092\u4f7f\u3046\u5fc5\u8981\u304c\u306a\u304f\u3001\u5927\u5909\u3089\u304f\u3061\u3093\u3067\u3059\u3002<br \/>\n\u30bd\u30fc\u30b9\u306e\u8868\u304c\u3001\u30ec\u30b3\u30fc\u30c9\u304c\u5897\u3048\u308c\u3070\u3001\u30b7\u30fc\u30c8\u4e0a\u306b\u5728\u308b\u300cQueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d\u3092\u53f3\u30af\u30ea\u30c3\u30af\u3057\u3066\u300c\u66f4\u65b0\u300d\u3059\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n<p>\u5b9f\u306f\u300c\u30de\u30af\u30ed\u306e\u8a18\u9332\u300d\u306b\u3066\u3001\u300cMicrosoft Query\u300d\u3067SQL\u3092\u4f7f\u3046\u64cd\u4f5c\u3092\u8a18\u9332\u3059\u308b\u3068\u3001\u3053\u306e\u300e VBA\u306e\u300cQueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d+SQL \u300f\u3068\u3044\u3046\u72b6\u614b\u306e\u3082\u306e\u304c\u81ea\u52d5\u8a18\u9332\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u306a\u306e\u3067\u3001\u3042\u3068\u306f\u305d\u308c\u3092\u5c11\u3057\u52a0\u5de5\u3059\u308b\u3060\u3051\u3067\u3059\u3002\uff08SQL\u5185\u306e\u6539\u884c\u30b3\u30fc\u30c9\u90e8\u5206\u3092\u6d88\u3059\u3001\u3068\u304b\u3001SQL\u5185\u5bb9\u3092\u66f8\u304d\u63db\u3048\u308b\u3001\u3068\u304b\u3002\uff09<\/p>\n<p>\u3053\u308c\u3092\u4f7f\u3046\u3068\u3001\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u3080\u3068\u304d\u306b\u3082\u3001SQL\u3092\u4f7f\u3063\u3066\u69d8\u3005\u306a\u304b\u305f\u3061\u3067\u8868\u3092\u53d6\u308a\u8fbc\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u4f8b\u3048\u3070<font style=\"border-bottom:3px double #0000ff;\">\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u30a4\u30f3\u30dd\u30fc\u30c8\u306e\u30e1\u30cb\u30e5\u30fc\u3060\u3068\uff082010\u3060\u3068\u300c\u30c7\u30fc\u30bf\u300d\u30bf\u30d6\u306e\u300c\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u300d\u306e\u30e1\u30cb\u30e5\u30fc\u3067\u3059\uff09\u3001\u8868\u5168\u4f53\u3092\u53d6\u308a\u8fbc\u3080\u3053\u3068\u3057\u304b\u3067\u304d\u307e\u305b\u3093<\/font>\u304c\u3001<font style=\"border-bottom:3px double #ff0000;\">\u3053\u306e\u300c\u30de\u30af\u30ed\u306e\u8a18\u9332\u3067\u751f\u6210\u3055\u308c\u305fVBA\u300d\u3092\u6d41\u7528\u3059\u308b\u3068\u3001\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3067\u3082\u3001\u300c\u7d5e\u308a\u8fbc\u307f\u3084\u96c6\u8a08\u3092\u3057\u306a\u304c\u3089\u300d\u5438\u3044\u8fbc\u3081\u307e\u3059\u3002\uff08\u305f\u3060\u3057\u3001\u4eca\u306e\u3068\u3053\u308d\u306e\u30c6\u30b9\u30c8\u3067\u306f\u3001\u30ab\u30f3\u30de\u533a\u5207\u308a\u306e\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3060\u3051\u3057\u304b\u5438\u3044\u8fbc\u3081\u307e\u305b\u3093\u3067\u3057\u305f\u304c\u3002\u3067\u3082\u305d\u308c\u3067\u3082\u6709\u7528\u3060\u3068\u601d\u3044\u307e\u3059\u3002\uff09<\/font><br \/>\n\uff08\u53c2\u8003\u8a18\u4e8b\uff1a\u300e<a href=\"https:\/\/euc-access-excel-db.com\/tips\/ct07_se\/ct075012_xls2k_vba_tips\/text-file_import_by_sql-of-query-table-object01\" target=\"_blank\" rel=\"noopener noreferrer\">\u2605\u2605\u2605 Access2000VBA\u30fbExcel2000VBA\u72ec\u5b66\uff5eExcel\u306b\u3001\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u3092\u3001\u300cSQL\u3092\u4f7f\u3044\u306a\u304c\u3089\u300d\u30fb\u304b\u3064\u30fb\u300c\u7d5e\u308a\u8fbc\u307f\u306a\u304c\u3089\u8aad\u307f\u8fbc\u3080\u300d\u65b9\u6cd5\uff08QueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u3066ODBC\u63a5\u7d9a\u5229\u7528\uff09\uff5e<\/a>\u300f\uff09<\/p>\n<p>\u3053\u306e(02)\u3082\u3001\u57fa\u672c\u3001\u7d50\u679c\u306e\u8868\u306b\u306f\u6570\u5f0f\u306f\u57cb\u3081\u8fbc\u307e\u308c\u305a\u3001\uff08SQL\u306e\u5074\u3067\u5404\u7a2e\u306e\u8a08\u7b97\u304c\u306a\u3055\u308c\u308b\u306e\u3067\uff09\u7d50\u679c\u306e\u8868\u306f\u300c\u5024\u300d\u3060\u3051\u3067\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u901f\u5ea6\u3082VBA\u306e\u30eb\u30fc\u30d7\u3092\u4f7f\u3046\u3088\u308a\u3082\u51e6\u7406\u304c\u9ad8\u901f\u306b\u306a\u308b\u5834\u5408\u304c\u5c11\u306a\u304f\u306a\u3044\u3067\u3059\u3002<br \/>\n\u30d5\u30a1\u30a4\u30eb\u3092\u9589\u3058\u3066\u958b\u304f\u5834\u5408\u3082\uff08\u958b\u304f\u3068\u540c\u6642\u306b\u66f4\u65b0\u3059\u308b\u8a2d\u5b9a\u306b\u3057\u306a\u3051\u308c\u3070\uff09\u3001\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u95a2\u6570\u3092\u4f7f\u3044\u307e\u304f\u3063\u305f\u30b7\u30fc\u30c8\u3088\u308a\u306f\u901f\u304f\u958b\u304f\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001\u300c\u30b7\u30fc\u30c8\u4e0a\u306b\u8868\u306b\u3059\u308b\u524d\u306b\u300d\u3001\u306a\u3093\u3089\u304b\u306e\u30eb\u30fc\u30d7\u51e6\u7406\u3092\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u4e8b\u9805\u306e(03)\u306e\u307b\u3046\u304c\u4fbf\u5229\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\uff08\u3084\u308c\u306a\u3044\u3053\u3068\u306f\u306a\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\uff09<\/p>\n<p>\u203b\u300cQueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d\u3092\u4f7f\u3046\u5834\u5408\u306f\u30012007\u4ee5\u964d\u3067\u3042\u3063\u3066\u3082\u3001Microsoft Query\u306e\u3068\u304d\u306e\u3088\u3046\u306b\u3001ListObject\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff08\u30c6\u30fc\u30d6\u30eb\u6a5f\u80fd\uff09\u306f\u95a2\u4fc2\u306a\u304f\u3001\u300cQueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d\u3060\u3051\u304c\u30b7\u30fc\u30c8\u4e0a\u306b\u751f\u6210\u3055\u308c\u308b\u306e\u3067\u3001\u81ea\u30d5\u30a1\u30a4\u30eb\u306e\u8868\u304c\u64cd\u4f5c\u5bfe\u8c61\u3067\u3082OK\u3067\u3059\u3002\u901f\u3044\u3057\u3001\u51e6\u7406\u304c\u30e9\u30af\u3067\u3059\u3002<\/p>\n<p>\u203b\u57fa\u672c\u3001\u300cQueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d\u3084(01)\u306eMicrosoft Query\u3067\u306f\u3001\u30ea\u30b9\u30c8\u30a2\u30c3\u30d7\u3084\u96c6\u8a08\u306e\u52d5\u4f5c\u901f\u5ea6\u304c\u3001VBA\u306e\u30eb\u30fc\u30d7\u51e6\u7406\u306a\u3069\u3092\u4f7f\u3046\u5834\u5408\u3068\u6bd4\u3079\u3066\u3001\uff15\uff5e\uff11\uff10\u500d\u4ee5\u4e0a\u3001\u3068\u8a00\u308f\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n\u307e\u305f\u3001\u306a\u3093\u3068\u306a\u304f\u3067\u3059\u304c\u30012010\u4ee5\u964d\u306ePowerQuery\uff1f\u3084\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u30b7\u30c3\u30d7\u6a5f\u80fd\u306a\u3069\u3088\u308a\u3082\u901f\u3044\u6c17\u304c\u3057\u307e\u3059\u3002<\/p>\n<p>\u203b\u30d4\u30dc\u30c3\u30c8\u3068\u306e\u9023\u643a\u306f(01)\u3068\u540c\u3058\u3067\u8d85\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<p>\u203b (01) \u3067\u81ea\u52d5\u751f\u6210\u3055\u308c\u305fSQL\u304c\u307e\u3093\u307e\u3067\u4f7f\u3048\u307e\u3059\u3002<\/p>\n<p> \uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a<\/p>\n<p><a name=\"lbl_136\">(03)ADO\u63a5\u7d9a+VBA+SQL<\/a><\/p>\n<p>2007\u4ee5\u964d\u306f\u7279\u306b\u30022000\uff5e2003\u3067\u3082\u4f7f\u3048\u307e\u3059\u3002<br \/>\n32bit\u7248EXCEL\u30fb64bit\u7248EXCEL\u4e21\u65b9\u3068\u3082\u3067\u4f7f\u3048\u305f\u3068\u601d\u3044\u307e\u3059\u3002\u5fd8\u308c\u307e\u3057\u305f\u304c\u3001\u3001\u3001<\/p>\n<p>\u30ea\u30b9\u30c8\u30a2\u30c3\u30d7\u3084\u96c6\u8a08\u306e\u7d50\u679c\u3092\u3001\u300cCopyFromRecordSet\u300d\u3068\u3044\u3046\u540d\u524d\u306eVBA\u547d\u4ee4\u3067\u3001\u30b7\u30fc\u30c8\u306b\u3070\u3093\u3063\u3068\u4e00\u767a\u8868\u793a\u3068\u304b\u3082\u3067\u304d\u308b\u3057\u3001\u9006\u306b\u300c\u30ec\u30b3\u30fc\u30c9\u30bb\u30c3\u30c8\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d\u3092\u4f7f\u3063\u3066\u306e\u30eb\u30fc\u30d7\u51e6\u7406\u3001\u5217\u540d\u51e6\u7406\u3001\u3082\u53ef\u80fd\u3067\u3059\u3002<br \/>\n\u3082\u3061\u308d\u3093SQL\u306b\u3088\u3063\u3066\u306e\u30eb\u30fc\u30d7\u3092\u4f7f\u308f\u306a\u3044\u5217\u540d\u306e\u5225\u540d\u4ed8\u52a0\u3084\u8272\u3093\u306a\u30c7\u30fc\u30bf\u64cd\u4f5c\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u5185\u3067\u30ec\u30b3\u30fc\u30c9\u30bb\u30c3\u30c8\u306e\u4e2d\u306b\u30ea\u30b9\u30c8\u30a2\u30c3\u30d7\u7b49\u3005\u3092\u3057\u305f\u7d50\u679c\u3092\u3001\u300cCopyFromRecordSet\u300d\u306b\u3066\u30b7\u30fc\u30c8\u306b\u4e00\u62ec\u8868\u793a\u3059\u308b\u524d\u306b\u3001\u66f4\u306b\u8272\u3005\u306b\u3044\u3058\u308a\u305f\u3044\u30fb\u30fb\u30fb\u3068\u3044\u3046\u3088\u3046\u306a\u3054\u8981\u671b\u304c\u3042\u308b\u3068\u304d\u306f\u3001(02)\u3088\u308a\u3082\u3053\u306e\u65b9\u6cd5\u306e\u307b\u3046\u304c\u3084\u308a\u3084\u3059\u3044\u3067\u3059\u3002<br \/>\n\u30aa\u30b9\u30b9\u30e1\u3067\u3059\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3067\u3059\u304c\u3001\u300cCopyFromRecordSet\u300d\u547d\u4ee4\u306f\u3001\u6b21\u9805\u306e(04)\u3067\u3082\u4f7f\u3048\u307e\u3059\u3002<\/p>\n<p>\u203b\u30d4\u30dc\u30c3\u30c8\u3068\u306e\u9023\u643a\u306f(01)\u3068\u540c\u3058\u3067\u8d85\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<p>\u203b (01) \u3067\u81ea\u52d5\u751f\u6210\u3055\u308c\u305fSQL\u304c\u307e\u3093\u307e\u3067\u4f7f\u3048\u307e\u3059\u3002<\/p>\n<p>\u203b\u3053\u306e(03)\u3082\u3001\u57fa\u672c\u3001\u6570\u5f0f\u306f\u57cb\u3081\u8fbc\u307e\u308c\u305a\u3001SQL\u5074\u3067\u5404\u7a2e\u306e\u8a08\u7b97\u304c\u306a\u3055\u308c\u308b\u306e\u3067\u3001\u7d50\u679c\u306e\u8868\u306f\u300c\u5024\u300d\u3060\u3051\u3067\u3059\u3002\u300cCopyFromRecordSet\u300d\u3092\u4f7f\u3063\u305f\u3068\u3057\u3066\u3082\u3002<br \/>\n\u305d\u306e\u305f\u3081\u3001\u591a\u5206\u3067\u3059\u304c\u3001\u901f\u5ea6\u3082VBA\u306e\u30eb\u30fc\u30d7\u3092\u4f7f\u3046\u3088\u308a\u3082\u51e6\u7406\u304c\u9ad8\u901f\u306b\u306a\u308b\u5834\u5408\u304c\u5c11\u306a\u304f\u306a\u3044\u6c17\u304c\u3057\u307e\u3059\u3002<br \/>\n\u30d5\u30a1\u30a4\u30eb\u3092\u9589\u3058\u3066\u958b\u304f\u5834\u5408\u3082\u3001\u6570\u5f0f\u3092\u4f7f\u3044\u307e\u304f\u3063\u305f\u30b7\u30fc\u30c8\u3088\u308a\u306f\u901f\u304f\u958b\u304f\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a<\/p>\n<p><a name=\"lbl_138\">(04)DAO\u63a5\u7d9a+VBA+SQL<\/a><\/p>\n<p>2003\u4ee5\u524d\u7528\u3068\u601d\u3063\u305f\u307b\u3046\u304c\u3088\u3044\u3067\u3059\u3002<br \/>\n\u203b2007\u4ee5\u964d\u3060\u3068\u8272\u3005\u3068\u9762\u5012\u304f\u3055\u3044\u306e\u3067(03)\u306eADO\u3092\u4f7f\u3046\u307b\u3046\u304c\u7d76\u5bfe\u306b\u3044\u3044\u3067\u3059\u3002<\/p>\n<p>\u672c\u5f53\u306f2003\u4ee5\u524d\u3082ADO\u63a5\u7d9a\u306e\u307b\u3046\u3067\u3084\u3063\u305f\u65b9\u304c\u3044\u3044\u305d\u3046\u3067\u3059\u3002<br \/>\n32bit\u7248EXCEL\u3057\u304b\u30c0\u30e1\u3063\u307d\u3044\u3067\u3059\u304c\u3001\u88cf\u6280\u304c\u3042\u308b\u304b\u3082\uff1f\u3067\u3059\u3002<\/p>\n<p>DAO\u63a5\u7d9a\u3067\u306f\u3001xlsx\u3084xlsm\u306e\u51e6\u7406\u304c\u3084\u308a\u3065\u3089\u3044\u306e\u3067\u3001xls\u5c02\u7528\u3001\u304f\u3089\u3044\u306b\u601d\u3063\u3066\u304a\u3044\u305f\u307b\u3046\u304c\u3044\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>Access\u306emdb\u3067\u306f\u3053\u306e\u65b9\u6cd5\u306e\u307b\u3046\u304c\u3081\u3093\u3069\u304f\u3055\u304f\u306a\u3044\u5834\u5408\u3082\u3042\u308a\u307e\u3059\u304c\uff08\u7279\u306bDAO\u3067\u306e\u30c6\u30fc\u30d6\u30eb\u4f5c\u6210\u3084\u30af\u30a8\u30ea\u4f5c\u6210\u306e\u5834\u5408\uff09\u3001Excel\u306e\u5834\u5408\u306f\uff08\u7279\u306b\u3001xlslx\u3084xlsm\u306f\uff09\u3001\u3053\u306e\u65b9\u6cd5\u3088\u308a\u3082(03)\u306e\u300cADO\u63a5\u7d9a+VBA+SQL\u300d\u306e\u307b\u3046\u304c\u3044\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u203b\u30d4\u30dc\u30c3\u30c8\u3068\u306e\u9023\u643a\u306f(01)\u3068\u540c\u3058\u3067\u8d85\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<p>\u203b (01) \u3067\u81ea\u52d5\u751f\u6210\u3055\u308c\u305fSQL\u304c\u307e\u3093\u307e\u3067\u4f7f\u3048\u307e\u3059\u3002<\/p>\n<p>\u3068\u308a\u3042\u3048\u305a\u3001\u6a5f\u80fd\u306e\u6982\u8981\u3068\u3057\u3066\u306f\u4ee5\u4e0a\u306a\u306e\u3067\u3059\u304c\u3001\u3059\u304d\u306a\u65b9\u6cd5\u306e\u3053\u3068\u3092\u8abf\u3079\u3066\u3001\u305d\u308c\u305e\u308c\u7d30\u304b\u304f\u5225\u8cea\u554f\u3092\u305f\u3066\u3066\u307f\u308b\u3068\u3088\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p> \u300c\u81ea\u30d5\u30a1\u30a4\u30eb\u306e\u8868\u306e\u3053\u3068\u624b\u8efd\u306b\u51e6\u7406\u3057\u305f\u3044\u300d\u5834\u5408\u306f(02)\u304b(03)\u3092\u4f7f\u3046\u3068\u3044\u3044\u304b\u3082\u3067\u3059\u3002<br \/>\n\u3067\u3082\u3001SQL\u306e\u66f8\u304d\u65b9\u3092\u5b66\u3076\u306b\u306f\u3001(01)\u306e\u81ea\u52d5\u751f\u6210\u3055\u308c\u305fSQL\u6587\u3092\u898b\u308b\u3068\u3059\u3054\u304f\u52c9\u5f37\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n(01)\u306fVBA\u3068\u9023\u643a\u3055\u305b\u308b\u3068\u304d\u306b\u300c\u30c6\u30b9\u30c8SQL\u4f5c\u6210\u7528\u300d\u3068\u3057\u3066\u3082\u5229\u7528\u3067\u304d\u307e\u3059\u3057\u3001\u5b9f\u52d9\u306b\u3082\u3059\u3054\u304f\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<p> \u7d50\u5c40\u3001(01)\uff5e(03)\u306e\u3059\u3079\u3066\u3001\u304c\u3001\u300c\u305d\u308c\u305e\u308c\u306e\u826f\u3055\u300d\u304c\u3042\u308b\u306e\u3067\u3001\u7b49\u3057\u304f\u91cd\u8981\u3067\u3059\u3002<\/p>\n<p> \u5f37\u3044\u3066\u3001\u8a00\u3046\u3068\u3001SQL\u306e\u5165\u9580\u3068\u3057\u3066(01)\u3001VBA\u9023\u643a\u306e\u5b9f\u52d9\u3068\u3057\u3066(03)\u304b\u3089\u5165\u308b\u3068\u30e9\u30af\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<br \/>\n\u305f\u3060\u3001(02)\u304c\u4fbf\u5229\u306a\u5834\u9762\u3082\u3042\u308b\u306e\u3067\u3001(02)\u3082\u4e00\u5fdc\u3001\u5fc5\u9808\u3067\u3059\u3002<\/p>\n<p>\u203b\u3053\u306e(04)\u3082\u3001\u57fa\u672c\u3001\u6570\u5f0f\u306f\u57cb\u3081\u8fbc\u307e\u308c\u305a\u3001SQL\u5074\u3067\u5404\u7a2e\u306e\u8a08\u7b97\u304c\u306a\u3055\u308c\u308b\u306e\u3067\u3001\u7d50\u679c\u306e\u8868\u306f\u300c\u5024\u300d\u3060\u3051\u3067\u3059\u3002\u300cCopyFromRecordSet\u300d\u3092\u4f7f\u3063\u305f\u3068\u3057\u3066\u3082\u3002<br \/>\n\u305d\u306e\u305f\u3081\u3001\u591a\u5206\u3067\u3059\u304c\u3001\u901f\u5ea6\u3082VBA\u306e\u30eb\u30fc\u30d7\u3092\u4f7f\u3046\u3088\u308a\u3082\u51e6\u7406\u304c\u9ad8\u901f\u306b\u306a\u308b\u5834\u5408\u304c\u5c11\u306a\u304f\u306a\u3044\u6c17\u304c\u3057\u307e\u3059\u3002<br \/>\n\u30d5\u30a1\u30a4\u30eb\u3092\u9589\u3058\u3066\u958b\u304f\u5834\u5408\u3082\u3001\u6570\u5f0f\u3092\u4f7f\u3044\u307e\u304f\u3063\u305f\u30b7\u30fc\u30c8\u3088\u308a\u306f\u901f\u304f\u958b\u304f\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a<\/p>\n<p><a name=\"lbl_140\">(05)\u88dc\u8db3\uff08Excel\u3067\u306eSQL\u304c\u3089\u307f\u306e\u5b66\u7fd2\u306b\u3064\u3044\u3066\uff09<\/a><\/p>\n<p>\u5b66\u7fd2\u6642\u9593\u304c\u5fc5\u8981\u306a\u306e\u3067\u5373\u52b9\u6027\u306f\u51fa\u306a\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u3067\u3082\u3001\u300c\u73fe\u72b6\u3001VBA\u3067\u306e\u8907\u96d1\u306a\u6761\u4ef6\u3067\u306e\u30ea\u30b9\u30c8\u30a2\u30c3\u30d7\u3084\u96c6\u8a08\u300d\u306a\u3069\u304c\u591a\u3044\u306a\u3089\u3001\u305d\u306e\u4ee3\u66ff\u65b9\u6cd5\u3068\u3057\u3066\u3001\u304b\u306a\u308a\u30e9\u30af\u306b\u306a\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u3061\u3083\u3093\u3068\u5b66\u7fd2\u3059\u308b\u304b\u3001\u8b1b\u5e2b\u306a\u3069\u306b\u6559\u3048\u3066\u3082\u3089\u3048\u3070\u3001\uff11\u3001\uff12\u5e74\u5f8c\u306b\u306f\u3001VBA\u306e\u30eb\u30fc\u30d7\u3060\u3051\u3067\u3084\u308b\u3088\u308a\u306f\u3001\u591a\u304f\u306e\u30b7\u30fc\u30f3\u3067\u300110\u500d\u4ee5\u4e0a\u306e\u30b3\u30b9\u30d1\u30a2\u30c3\u30d7\u3092\u5b9f\u73fe\u3067\u304d\u308b\u306e\u3067\u306f\u306a\u304b\u308d\u3046\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p> \u300e\u3000\u4ed6\u306e\u30d5\u30a1\u30a4\u30eb\u3084\u81ea\u30d5\u30a1\u30a4\u30eb\u306e\u8868\u3092\u8997\u304d\u306b\u884c\u3063\u3066\u3001\u30b7\u30fc\u30c8\u306b\u5438\u3044\u8fbc\u3080\u51e6\u7406\u81ea\u4f53\u300f\u306f\u3001\u300c\u307b\u307c\u30ef\u30f3\u30d1\u30bf\u30fc\u30f3\u300d\u306a\u306e\u3067\u30011\u56de\u4f5c\u3063\u305f\u3082\u306e\u3092\u4f7f\u3044\u56de\u3057\u3059\u308b\u3060\u3051\u3067\u3059\u3002<br \/>\n \u4f8b\u3048\u3070\u3001\u95a2\u6570\u5316\u306a\u3069\u3092\u3057\u3066\u3057\u307e\u3048\u3070\u3001\u305d\u306e\u5f8c\u306e\u8abf\u6574\u306f\u307b\u3068\u3093\u3069\u8981\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u306a\u306e\u3067\u3001<br \/>\n\u30fbSQL\u547d\u4ee4\u6587\u3092\u4f5c\u308b\u3053\u3068\u3068\u3001<br \/>\n\u30fbExcel\u306eSQL\u547d\u4ee4\u6587\u306e\u300c\u65b9\u8a00\u300d\u3092\u899a\u3048\u308b\u3053\u3068\u3068\u3068\u3001<br \/>\n\u30fb\u4f5c\u3063\u305fSQL\u3092VBA\u306b\u306f\u3081\u8fbc\u3093\u3060\u6642\u306b\u30a8\u30e9\u30fc\u304c\u51fa\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u3001<br \/>\n\u3053\u306e3\u3064\u306e\u4f5c\u696d\u4e2d\u5fc3\u3068\u306a\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p> \u9006\u306b\u3001\u300c\u3042\u3093\u307e\u3057\u6761\u4ef6\u4ed8\u30ea\u30b9\u30c8\u30a2\u30c3\u30d7\u306f\u3057\u306a\u3044\u300d\u3068\u3044\u3046\u5834\u5408\u306f\u3001\u3061\u3087\u3063\u3068\u826f\u3044\u52b9\u679c\u304c\u51fa\u306a\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a<\/p>\n<p><a name=\"lbl_142\">(06)Excel\u306eSQL\u3067\u306f\u300c\u524a\u9664\u300d\u3060\u3051\u304c\u3067\u304d\u306a\u3044<\/a><\/p>\n<p>\u203bExcel\u306eSQL\u3067\u306f\u300c\u524a\u9664\u300d\u3060\u3051\u304c\u3067\u304d\u306a\u3044\u306e\u3067\u3001\u300c\u8ad6\u7406\u524a\u9664\uff08\u524a\u9664\u30d5\u30e9\u30b0\u3092\u7acb\u3066\u308b\uff09\u300d\u3068\u3044\u3046\u5f62\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u4ee5\u4e0b\u53c2\u8003\u8a18\u4e8b\u3067\u3059\u3002<br \/>\n\u300e<a href=\"https:\/\/euc-access-excel-db.com\/tips\/ct07_se\/ct075012_xls2k_vba_tips\/dao-ado-msqry-qtobj-sql-can01\" target=\"_blank\" rel=\"noopener noreferrer\">\u2605\u2605\u2605 Access2000VBA\u30fbExcel2000VBA\u72ec\u5b66\uff5e\uff08\u591a\u5206\u3001\u5168\u30d0\u30fc\u30b8\u30e7\u30f3\u5171\u901a\u30fb\u30fb\u30fb\u3060\u3068\u601d\u3044\u307e\u3059\u3002\uff09DAO\u3001ADO\u3001SQL\u3001Microsoft Query\u3001QueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3001\u3068\u3044\u3063\u305f\u3001\u300c\u771f\u306eExcel\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\uff08\uff1f\uff09\u300d\u3067\u3001\u3067\u304d\u300c\u306a\u3044\u300d\u3053\u3068\u30fb\u9006\u306b20\u5e74\u524d\u3082\u304b\u3089\u3067\u304d\u300c\u308b\u300d\u3053\u3068\u3002\uff5e<\/a>\u300f <\/p>\n<p><SPAN>\u3000\u3000<\/SPAN><br \/>\n<SPAN>\u3000\u3000<\/SPAN><\/p>\n<p><a name=\"lbl_145\">\u2605 Excel\u306e\u300cMicrosoftQuery\u300d\u3067SQL\u6587\u3092\u6271\u3046\u5834\u5408\u306e\u6ce8\u610f\u4e8b\u9805<\/a><\/p>\n<p>\u203b\u300cMicrosoftQuery\u300d\u3082\u305d\u3046\u3067\u3059\u304c\u3001Excel\u3067\u306f\u3001\u524d\u9805\u306e(01)\uff5e(04)\u306e\u3059\u3079\u3066\u306e\u65b9\u6cd5\u3067\u300c\u524a\u9664\uff08Delete\u547d\u4ee4\uff09\u300d\u304c\u3067\u304d\u307e\u305b\u3093\u3002\u306a\u306e\u3067\u3001\u300c\u8ad6\u7406\u524a\u9664(\u524a\u9664\u30d5\u30e9\u30b0\u3092\u7acb\u3066\u308b\uff09\u300d\u3068\u3044\u3046\u304b\u305f\u3061\u3092\u53d6\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u203b\u53c2\u8003\u8a18\u4e8b<br \/>\n\u300e<a href=\"https:\/\/euc-access-excel-db.com\/tips\/ct07_se\/ct075012_xls2k_vba_tips\/msq-vba-ok-sql01\" target=\"_blank\" rel=\"noopener noreferrer\">\u2605\u2605\u2605Access2000VBA\u30fbExcel2000VBA\u72ec\u5b66\uff5e\u300cQueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d\uff5e\uff5e\u300cVBA\u30d7\u30ed\u30b0\u30e9\u30e0\u300d\u304b\u3089\u3082\u3001\u300cMicrosoftQuery\u306e\u753b\u9762\u300d\u304b\u3089\u3082\u64cd\u4f5c\u304c\u53ef\u80fd\u3068\u306a\u308b\u3001\u305d\u306e\u305f\u3081\u306e\u300cVBA\u304b\u3089\u306eSQL\u306e\u66f8\u304d\u65b9\u300d\u3084\u300c\u524d\u63d0\u6761\u4ef6\u300d\u306a\u3069\uff08\u6982\u8981\u8aac\u660e\u306e\u307f\uff09\uff5e<\/a>\u300f<br \/>\n\u300e<a href=\"https:\/\/euc-access-excel-db.com\/tips\/ct07_se\/ct075012_xls2k_vba_tips\/dao-ado-msqry-qtobj-sql-can01\" target=\"_blank\" rel=\"noopener noreferrer\">\u2605\u2605\u2605 Access2000VBA\u30fbExcel2000VBA\u72ec\u5b66\uff5e\uff08\u591a\u5206\u3001\u5168\u30d0\u30fc\u30b8\u30e7\u30f3\u5171\u901a\u30fb\u30fb\u30fb\u3060\u3068\u601d\u3044\u307e\u3059\u3002\uff09DAO\u3001ADO\u3001SQL\u3001Microsoft Query\u3001QueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3001\u3068\u3044\u3063\u305f\u3001\u300c\u771f\u306eExcel\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\uff08\uff1f\uff09\u300d\u3067\u3001\u3067\u304d\u300c\u306a\u3044\u300d\u3053\u3068\u30fb\u9006\u306b20\u5e74\u524d\u3082\u304b\u3089\u3067\u304d\u300c\u308b\u300d\u3053\u3068\u3002\uff5e<\/a>\u300f<\/p>\n<p><span style=\"color: #0000ff;\"><b>Excel\u306eMicrosoftQuery\u3067\u306f\u3001\u3044\u3063\u305f\u3093\u5b9f\u884c\u3059\u308b\u3068\u3001MicrosoftQuery\u304c\uff08\uff1f\uff09\u52dd\u624b\u306b\u3059\u3079\u3066\u306e\u5217\u540d\u306b\u300c&#096;\u30c6\u30fc\u30d6\u30eb\u540d&#096;. \u300d\u3068\u3044\u3046\u611f\u3058\u3067\u3001\u8868\u3092\u7279\u5b9a\u3059\u308b\u305f\u3081\u306e\u8a9e\u53e5\u304c\u304f\u3063\u3064\u3044\u3066\u3001\u304b\u3064\u3001\u5217\u540d\u3084\u5404\u6761\u4ef6\u7b49\u304c\u6a2a\u9577\u306b\u9023\u7d50\u30fb\u5909\u5f62\u3055\u308c\u3066\u3057\u307e\u3044\u307e\u3059\u3002\uff08\u4e0b\u56f3\u53c2\u7167\uff09<br \/>\n<a href=\"https:\/\/euc-access-excel-db.com\/00000WPIMG\/2018-12-03---13-06-30.jpg\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/euc-access-excel-db.com\/00000WPIMG\/2018-12-03---13-06-30.jpg\" alt=\"\" width=\"80%\" height=\"80%\" ><\/a><br \/>\n\u304c\u3001\u305d\u308c\u3092\u53d6\u3063\u3066\u6539\u884c\u3057\u3001<span style=\"color: #008000;\"><b>\u6b21\u9805\u306e\u30b0\u30ea\u30fc\u30f3\u306e\u69cb\u6587\u4f8b<\/b><\/span>\u306e\u3088\u3046\u306b\u7e26\u65b9\u5411\u306b\u69cb\u9020\u7684\u306b\u66f8\u304d\u76f4\u3057\u3066\u3082\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002\uff08\u8907\u6570\u306e\u8868\u306b\u540c\u3058\u5217\u540d\u304c\u3042\u308b\u3068\u304d\u306f\u8868\u306e\u540d\u524d\u3082\u5fc5\u8981\u3067\u3059\u304c\u3002\uff09<BR><br \/>\n\u307e\u305f\u3001SQL\u6587\u304c\u3042\u308b\u3068MicrosoftQuery\u3067\u306eGUI\u306e\u30c7\u30b6\u30a4\u30f3\u753b\u9762\u306e\u72b6\u614b\u304c\u5373\u5ea7\u306b\u5fa9\u5143\u3067\u304d\u307e\u3059\u3002\u300cSQL\u30dc\u30bf\u30f3\u300d\u3092\u62bc\u3059\u3053\u3068\u3067\u51fa\u3066\u304f\u308b\u753b\u9762\u306bSQL\u6587\u3092\u30b3\u30d4\u30da\u3059\u308b\u3060\u3051\u3067\u5b9f\u73fe\u53ef\u80fd\u3067\u3059\u3002<br \/>\n<span style=\"color: #ff0000;\"><b>\u9006\u306b\u8a00\u3046\u3068\u300cSQL\u6587\u3092\u4f7f\u3063\u3066\u300d\u3058\u3083\u306a\u3044\u3068\u5fa9\u5143\u3067\u304d\u306a\u3044\u5834\u5408\u3082\u3042\u308b\u306e\u3067\u3001\u5ff5\u306e\u305f\u3081\u306b\u3001Excel\u306b\u62bd\u51fa\u7d50\u679c\u3092\u8868\u793a\u3059\u308b\u524d\u306b\u5fc5\u305a\u3001MicrosoftQuery\u306e\u753b\u9762\u306e\u300cSQL\u300d\u30dc\u30bf\u30f3\u304b\u3089\u3001SQL\u5185\u5bb9\u3092\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3084Excel\u30d5\u30a1\u30a4\u30eb\u306e\u30c6\u30ad\u30b9\u30c8\u30dc\u30c3\u30af\u30b9\u306a\u3069\u306b\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3057\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\nAccess\u306e\u300c\u30af\u30a8\u30ea\u300d\u3068\u547c\u3070\u308c\u308b\u6a5f\u80fd\u3067\u3082\u307e\u3063\u305f\u304f\u540c\u3058\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u304c\u3001Access\u306e\u5834\u5408\u306fSQL\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u307e\u3067\u306f\u5fc5\u8981\u3042\u308a\u307e\u305b\u3093\u3002\uff08SQL\u6587\u306e\u64cd\u4f5c\u304c\u304a\u304b\u3057\u304f\u306a\u308b\u3088\u3046\u306a\u3053\u3068\u306f\u306a\u3044\u306e\u3067\u3002\uff09<\/b><\/span><\/p>\n<p><span style=\"color: #7401DF;\"><b>\u306a\u304a\u3001\u300cSQL\u300d\u3092\u3001Excel\u3084Access\u3001Word\u306a\u3069\u3067VBA\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4e2d\u30fb\u30fb\u30fb\u3001\u4f8b\u3048\u3070\u300cDAO\u3084ADO\u300d\u3068\u547c\u3070\u308c\u308b\u6a5f\u80fd\u3092\u52d5\u304b\u3059\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4e2d\u3067\u4f7f\u3046\u5834\u5408\u306f\u3001\u3053\u306e\u3053\u3068\u306f\u8003\u3048\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/b><\/span><\/p>\n<p>\u307e\u305f\uff08\u7e70\u308a\u8fd4\u3057\u306b\u306a\u308a\u307e\u3059\u304c\uff09\u3001SQL\u6587\u3092\u30ab\u30f3\u30de\u3068\u534a\u89d2\u30b9\u30da\u30fc\u30b9\u3054\u3068\u3001\u3042\u308b\u3044\u306f\u30ab\u30f3\u30de\u3054\u3068\u306b\u6539\u884c\u3057\u3066\u3001\u5217\u540d\u3092\u7e26\u65b9\u5411\u306b\u5217\u6319\u3059\u308b\u5834\u5408\u306f\u3001\u30ab\u30f3\u30de\u3067\u533a\u5207\u308b\u307b\u3046\u304c\u3001\u534a\u89d2\u30b9\u30da\u30fc\u30b9\u304c\u5148\u982d\u306b\u6765\u308b\u306e\u3067\u30a8\u30e9\u30fc\u304c\u51fa\u306b\u304f\u304f\u3001\u7121\u96e3\u3067\u3059\u3002<br \/>\n\u306a\u304a\u3001SELECT\u53e5\u306e\u4e2d\u3067\u8907\u6570\u306e\u5217\u3092\u5217\u6319\u3059\u308b\u5834\u5408\u306f\u3001\u5404\u5217\u540d\u3054\u3068\u306b\u30ab\u30f3\u30de\u3092\u5165\u308c\u307e\u3059\u304c\u3001\u4e00\u756a\u6700\u5f8c\u3060\u3051\u306f\u30ab\u30f3\u30de\u7121\u3057\u3067OK\u3067\u3059\u3002\uff08\u534a\u89d2\u30b9\u30da\u30fc\u30b9\u306f\u5fc5\u8981\u3067\u3059\u3002\uff09<br \/>\n\u30b9\u30da\u30fc\u30b9\u3084\u8a18\u53f7\u306f\u5168\u90e8\u534a\u89d2\u3067\u3059\u3002\u5168\u89d2\u3092\u6253\u3064\u3068\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u307e\u305f\u3001\u534a\u89d2\u30b9\u30da\u30fc\u30b9\u306f\u8907\u6570\u304c\u3064\u306a\u304c\u3063\u3066\u5165\u529b\u3055\u308c\u3066\u3044\u3066\u3082OK\u3067\u3059\u3002<br \/>\n1\u500b\u4ee5\u4e0a\u3001\u3057\u304b\u308b\u3079\u304d\u5834\u6240\u306b\u5165\u3063\u3066\u3044\u308c\u3070\u3002<\/p>\n<p><\/b><\/span><\/p>\n<p><SPAN>\u3000\u3000<\/SPAN><br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n<a name=\"lbl_151\">\u2605 SQL\u6587\u306e\u66f8\u304d\u65b9\u4e8b\u4f8b\uff08VBA\u3068\u6bd4\u8f03\u3057\u305f\u96e3\u6613\u5ea6\u306e\u53c2\u8003\u3002Excel\u306eMicrosoftQuery\u3092\u4f7f\u7528\u3057\u305f\u5834\u5408\u3002\uff09<\/a><\/p>\n<p>\u7c21\u5358\u306a\u4f8b\u3067\u3059\u3051\u3069\u3001\u6b21\u306e(\u30a2)(\u30a4)\u306e\uff12\u3064\u306e\u8868\u3092Excel\u306b\u4f5c\u6210\u3057\u305f\u5834\u5408\u3067\u3059\u3002<br \/>\n\u8868\u3092\u4ee5\u4e0b\u306e(\u30a2)(\u30a4)\u306e\u3088\u3046\u306b\u3001\u8868\u306e\u540d\u524d\u3092\u30bf\u30d6\u3067\u4ed8\u3051\u3001A1\u30bb\u30eb\u3068\u305d\u306e\u6a2a\u4e00\u5217\u3092\u5168\u90e8\u300c\u5217\u540d\u300d\u306b\u3059\u308b\u3068Excel\u3067\u306f\u300c\u30b7\u30b9\u30c6\u30e0\u30c6\u30fc\u30d6\u30eb\u300d\u3068\u3057\u3066\u6271\u3048\u3001\u300cExcelVBA\uff08\uff0bDAO\u3084ADO\uff09\u300d\u3084\u3001\u300cMicrosoft Query\u300d\u306b\u3066\uff08\u591a\u5c11\u306e\u65b9\u8a00\u306f\u3042\u308b\u3082\u306e\u306e\uff09\u4f8b\u3048\u3070\u3001\u4ee5\u964d\u306b\u793a\u3059\u3088\u3046\u306aSQL\u6587\u3067\u8868\u306e\u7d5e\u308a\u8fbc\u307f\u304c\u3067\u304d\u307e\u3059\u3002<span style=\"color: #ff0000;\"><b>\uff08\u203b\u6ce8\u610f\uff01\uff01\uff1aExcel\u306eSQL\u3067\u306f\u3001\u30c6\u30fc\u30d6\u30eb\u540d\u306b\u3064\u3044\u3066\u306f\u3001\u534a\u89d2\u306e\u300c$\u300d\u3092\u672b\u5c3e\u306b\u4ed8\u3051\u305f\u306e\u3061\u3001\u300c &#096;\uff08\u30d0\u30c3\u30af\u30af\u30a9\u30fc\u30c8\uff09\u300d\u3067\u56f2\u3080\u304b\u3001\u3042\u308b\u3044\u306f\u3001 [\u3000]\uff08\u89d2\u30ab\u30c3\u30b3\uff09\u3067\u56f2\u307f\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u3001\u898b\u3065\u3089\u304f\u306a\u308b\u306e\u3067\u3042\u3048\u3066\u3064\u3051\u3066\u3044\u307e\u305b\u3093\u3002\u3053\u308c\u306fMicrosoftQuery\uff08QueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff09\u3067\u306eSQL\u3001DAO\u3067\u306eSQL\u3001ADO\u3067\u306eSQL\u3001\u3059\u3079\u3066\u5171\u901a\u3067\u3059\u3002\uff09<\/b><\/span><\/p>\n<p>(\u30a2)\u300cSheet1\u300d\u306e\u30bf\u30d6\u306e\u540d\u524d\u3092\u300c\u6c0f\u540d\u8868\u300d\u306b\u30ea\u30cd\u30fc\u30e0\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30c7\u30fc\u30bf\u3092\u5165\u529b\u3057\u307e\u3059\u3002<br \/>\n\uff08\u30ea\u30cd\u30fc\u30e0\u2192\u540d\u524d\u306e\u5909\u66f4\u3092\u3059\u308b\u3068\u3044\u3046\u610f\u5473\u3067\u3059\u3002\uff09<br \/>\n<a href=\"https:\/\/euc-access-excel-db.com\/00000WPIMG\/2018-05-01---13-14-21.jpg\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/euc-access-excel-db.com\/00000WPIMG\/2018-05-01---13-14-21.jpg\" alt=\"\" width=\"40%\" height=\"40%\" ><\/a><\/p>\n<p>(\u30a4)\u300cSheet2\u300d\u306e\u30bf\u30d6\u306e\u540d\u524d\u3092\u3001\u300c\u96fb\u8a71\u756a\u53f7\u8868\u300d\u306b\u30ea\u30cd\u30fc\u30e0\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30c7\u30fc\u30bf\u3092\u5165\u529b\u3057\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/euc-access-excel-db.com\/00000WPIMG\/2018-05-01---13-16-00.jpg\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/euc-access-excel-db.com\/00000WPIMG\/2018-05-01---13-16-00.jpg\" alt=\"\" width=\"40%\" height=\"40%\" ><\/a><br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n(01)\u300c\u6c0f\u540d\u8868\u300d\u304b\u3089\u300c\u59d3\u300d\u306e\u5217\u3068\u300c\u540d\u300d\u306e\u5217\u3092\u53d6\u308a\u51fa\u3057\u305f\u3044\u5834\u5408<\/p>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306aSQL\u6587\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\uff08\u4e0b\u8a18\u306e\u547d\u4ee4\u6587\u306e\u4e8b\u4f8b\u306f\u305d\u306e\u307e\u307e\u30b3\u30d4\u30da\u3057\u3066\u4f7f\u308f\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002\u5168\u89d2\u30b9\u30da\u30fc\u30b9\u304c\u4f7f\u308f\u308c\u3066\u3057\u307e\u3063\u3066\u3044\u308b\u306e\u3067\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u3002\u305f\u3060\u3001Excel\u306eMicrosoftQuery\u306e\u5834\u5408\u306f\u3001\u300cFROM\u300d\u3084\u300cWHERE\u300d\u306e\u524d\u3001\u3042\u308b\u3044\u306f\u30ab\u30f3\u30de\u306e\u3046\u3057\u308d\u306a\u3069\u306b\u30b9\u30da\u30fc\u30b9\u304c\u7121\u304f\u3066\u3082\u52dd\u624b\u306b\u4ed8\u52a0\u3057\u3066\u304f\u308c\u308b\u3088\u3046\u3067\u3059\u3002\uff09<\/p>\n<p><span style=\"color: #008000;\"><b>SELECT<\/b><br \/>\n\u3000\u59d3,<br \/>\n\u3000\u540d<br \/>\n<b>FROM<\/b><br \/>\n\u3000\u6c0f\u540d\u8868;<br \/>\n<\/SPAN><\/p>\n<p>\u7d50\u679c<br \/>\n<a href=\"https:\/\/euc-access-excel-db.com\/00000WPIMG\/2018-05-06---11-03-57.jpg\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/euc-access-excel-db.com\/00000WPIMG\/2018-05-06---11-03-57.jpg\" alt=\"\" width=\"30%\" height=\"30%\" ><\/a><\/p>\n<p>\u300cWHERE\u300d\u3092\u66f8\u304b\u306a\u3051\u308c\u3070\u3001\u3059\u3079\u3066\u306e\u884c\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<br \/>\n\u8907\u6570\u306e\u5217\u3092\u53d6\u308a\u51fa\u3059\u5834\u5408\u306f\u3001\u6700\u5f8c\u306e\u5217\u540d\u306e\u3042\u3068\u306f\u30ab\u30f3\u30de\u7121\u3057\u3067OK\u3067\u3059\u3002<\/p>\n<p><SPAN>\u3000\u3000<\/SPAN><br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n(02)\u300c\u6c0f\u540d\u8868\u300d\u304b\u3089\u300c\u59d3\u300d\u306e\u5217\u3068\u300c\u540d\u300d\u306e\u5217\u3092\u53d6\u308a\u51fa\u3057\u3001\u300c\u7530\u4e2d\u300d\u3055\u3093\u306e\u884c\u3060\u3051\u3092\u9867\u5ba2ID\u306e\u5024\u3092\u6761\u4ef6\u306b\u3057\u3066\u53d6\u308a\u51fa\u3057\u305f\u3044\u5834\u5408<\/p>\n<p><span style=\"color: #008000;\"><b>SELECT<\/b><br \/>\n\u3000\u59d3,<br \/>\n\u3000\u540d<br \/>\n<b>FROM<\/b><br \/>\n\u3000\u6c0f\u540d\u8868<br \/>\n<b>WHERE<\/b><br \/>\n\u3000\u9867\u5ba2ID=3;<br \/>\n<\/SPAN><\/p>\n<p>\u7d50\u679c<br \/>\n<a href=\"https:\/\/euc-access-excel-db.com\/00000WPIMG\/2018-05-06---11-04-46.jpg\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/euc-access-excel-db.com\/00000WPIMG\/2018-05-06---11-04-46.jpg\" alt=\"\" width=\"30%\" height=\"30%\" ><\/a><\/p>\n<p>\u300c\u9867\u5ba2ID=3\u300d\u306e\u90e8\u5206\uff08WHERE\u306e\u90e8\u5206\uff09\u306b\u306f\u3001\u4f8b\u3048\u3070\u3001\u3082\u3063\u3068\u30c7\u30fc\u30bf\u304c\u305f\u304f\u3055\u3093\u3042\u3063\u3066\u3001\u65e5\u4ed8\u306e\u5217\u306a\u3069\u3082\u3042\u308c\u3070\u3001\u300c\u9867\u5ba2ID=\u4f55\u756a\u304b\u3089\u4f55\u756a\u307e\u3067 AND \u3044\u3064\u304b\u3089\u3044\u3064\u307e\u3067 OR \uff12\u3064\u3081\u306e\u3044\u3064\u304b\u3089\u3044\u3064\u307e\u3067\u300d\u307f\u305f\u3044\u306a\u30a4\u30e1\u30fc\u30b8\u3067\u8907\u6570\u306e\u6761\u4ef6\u3092\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002<br \/>\nVBA\u3088\u308a\u3082\u7c21\u5358\u306b\u3001\u30c7\u30fc\u30bf\u3092\u62bd\u51fa\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n<span style=\"color: #0000ff;\">\u57fa\u672c\u7684\u306b\u306f\u3001\u30c7\u30fc\u30bf\u306e\u62bd\u51fa\u306b\u95a2\u3057\u3066\u306f\u3001VBA\u306e10\u500d\u306f\u7c21\u5358\u3067\u300110\u500d\u306f\u8907\u96d1\u306a\u53d6\u308a\u51fa\u3057\u304c\u53ef\u80fd\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/span><br \/>\n<span style=\"color: #008000;\">\u3057\u304b\u3082\u3001VBA\u306fMicrosoft Office \u3060\u3051\u306b\u3057\u304b\u4f7f\u3048\u307e\u305b\u3093\u304c\u3001SQL\u306f\u3001Excel\u3001Access\u3001SQL Server\u3001\u30aa\u30e9\u30af\u30eb\u3001MySQL\u3001PostgreSQL\u3001\u3068\u3044\u3063\u305f\u3001\u3044\u308d\u3093\u306a\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b7\u30b9\u30c6\u30e0\u3067\u4f7f\u3048\u307e\u3059\u3002\uff08\u3053\u306e\u5834\u5408\u3082\u591a\u5c11\u306e\u65b9\u8a00\u306f\u3042\u308a\u307e\u3059\u304c\u3001\u3067\u3082\u3001\u304a\u304a\u3080\u306d\u540c\u3058\u3067\u3059\u3002\uff09<\/span><\/p>\n<p><span style=\"color: #7401DF;\">VBA\u3060\u3068Renge\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067A1\u30bb\u30eb\u304c\u3069\u3046\u306e\u3053\u3046\u306e\u30fbB1\u30bb\u30eb\u304c\u3069\u3046\u306e\u3053\u306e\u30fb\u30fb\u30fb\u3068\u9762\u5012\u304f\u3055\u304f\u3066\u8aad\u307f\u3065\u3089\u3044\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u305f\u304f\u3055\u3093\u66f8\u304b\u306a\u3044\u3068\u3044\u3051\u307e\u305b\u3093\u3002\uff08\u50d5\u307f\u305f\u3044\u306aExcel\u97f3\u75f4\u306f\u306e\u5834\u5408\u306f\u7279\u306b\u30fb\u30fb\u30fb\u3002\u304b\u3068\u3044\u3063\u3066\u3001SQL\u3082\u5927\u3057\u3066\u77e5\u3089\u306a\u3044\u3093\u3067\u3059\u3051\u3069\u30fb\u30fb\u30fb\uff09<br \/>\n<\/span><\/p>\n<p><SPAN>\u3000\u3000<\/SPAN><br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n(03)\u300c\u6c0f\u540d\u8868\u300d\u304b\u3089\u300c\u59d3\u300d\u306e\u5217\u3068\u300c\u540d\u300d\u306e\u5217\u3092\u53d6\u308a\u51fa\u3057\u3001\u300c\u7530\u4e2d\u300d\u3055\u3093\u306e\u884c\u3060\u3051\u3092\u300c\u59d3\u300d\u306e\u5217\u306e\u5024\u3092\u6761\u4ef6\u306b\u3057\u3066\u53d6\u308a\u51fa\u3057\u305f\u3044\u5834\u5408<\/p>\n<p><span style=\"color: #008000;\"><b>SELECT<\/b><br \/>\n\u3000\u59d3,<br \/>\n\u3000\u540d<br \/>\n<b>FROM<\/b><br \/>\n\u3000\u6c0f\u540d\u8868<br \/>\n<b>WHERE<\/b><br \/>\n\u3000\u59d3='\u7530\u4e2d';<br \/>\n<\/SPAN><\/p>\n<p>\u7d50\u679c<br \/>\n<a href=\"https:\/\/euc-access-excel-db.com\/00000WPIMG\/2018-05-06---13-12-23.jpg\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/euc-access-excel-db.com\/00000WPIMG\/2018-05-06---13-12-23.jpg\" alt=\"\" width=\"30%\" height=\"30%\" ><\/a><\/p>\n<p>\u6570\u5b57\u3067\u306f\u306a\u304f\u3001\u6587\u5b57\u5217\u3092\u6761\u4ef6\u306b\u3059\u308b\u5834\u5408\u306f\u300c'\u300d\uff08\u30b7\u30f3\u30b0\u30eb\u30af\u30a9\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\uff09\u3067\u56f2\u307f\u307e\u3059\u3002<br \/>\n\u300c=\u300d\u3092\u4f7f\u3046\u3068\u300c\u5b8c\u5168\u4e00\u81f4\u300d\u3067\u306e\u7d5e\u308a\u8fbc\u307f\u3068\u306a\u308a\u307e\u3059\u3002<br \/>\n<span style=\"color: #0000ff;\"><b>\u57fa\u672c\u3001\u300c=\u300d\u3092\u4f7f\u3063\u305f\u300c\u5b8c\u5168\u4e00\u81f4\u300d\u306f\u3001\u691c\u7d22\u30fb\u62bd\u51fa\u306b\u304a\u3044\u3066\u3069\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30bd\u30d5\u30c8\u3067\u3082\u4e00\u756a\u9ad8\u901f\u3067\u3059\u3002<span style=\"color: #008000;\"><b>\uff08\u6b21\u9805\u306e\u524d\u65b9\u4e00\u81f4\u306f2\u756a\u76ee\u306b\u9ad8\u901f\u3067\u3059\u3002\u4e00\u756a\u9045\u3044\u306e\u306f\u90e8\u5206\u4e00\u81f4\u3067\u3059\u3002\u90e8\u5206\u4e00\u81f4\u306f\u3001\u4ed6\u306e\u6761\u4ef6\u3082\u5408\u540c\u3067\u5b58\u5728\u3059\u308b\u5834\u5408\u306f\u3001\u6b7b\u306c\u307b\u3069\u9045\u304f\u306a\u308b\u5834\u5408\u3082\u3042\u308a\u307e\u3059\u3002SQL Server\u3067\u3082Access\u3068\u540c\u7b49\u306b\u9045\u3044\u3067\u3059\u3002\u591a\u5206\u3001\u30b9\u30c8\u30a2\u30c9\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u3067\u3082\u9045\u3044\u3067\u3059\u3002<\/b><\/span><span style=\"color: #ff0000;\"><b>\u57fa\u672c\u3001SQL Server\u306f\u30ed\u30fc\u30ab\u30ebPC\u5185\u9650\u5b9a\u306e\u4f7f\u7528\u306a\u3089Access\u306eJET\u30a8\u30f3\u30b8\u30f3\u3088\u308a\u3082\u7279\u306b\u901f\u304f\u306a\u3044\u3067\u3059\u3002\u3080\u3057\u308d\u9045\u3044\u304b\u3082\u30fb\u30fb\u30fb\u3002SQL Server\u306a\u3069\u306e\u30b9\u30c8\u30a2\u30c9\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u304c\u771f\u4fa1\u3092\u767a\u63ee\u3059\u308b\u306e\u306f\u3001\u8857\u3084\u56fd\u5358\u4f4d\u306e\u96e2\u308c\u305f\u62e0\u70b9\u540c\u58eb\u3067\u306eVPN\u63a5\u7d9a\u306a\u3069\u3067\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5229\u7528\u306e\u30b1\u30fc\u30b9\u3067\u306f\u306a\u3044\u304b\u3068\u601d\u308f\u308c\u307e\u3059\u3002\u30ed\u30fc\u30ab\u30ebPC\u5185\u3084\u30c7\u30fc\u30bf\u91cf\u306e\u5c11\u306a\u3044\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b5\u30fc\u30d0\u3082\u3069\u304d\uff08\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u5171\u6709\uff09\u306b\u9650\u3063\u3066\u306fSQL\u3067\u306e\u30c7\u30fc\u30bf\u62bd\u51fa\u901f\u5ea6\u306b\u95a2\u3057\u3066\u306fAccess\u306eJET\u30a8\u30f3\u30b8\u30f3\u306e\u307b\u3046\u304c\u901f\u3044\u30b1\u30fc\u30b9\u3082\u5c11\u306a\u304f\u3042\u308a\u307e\u305b\u3093\u3002\u30d0\u30fc\u30b8\u30e7\u30f32000\u308497\u306e\u9803\u304b\u3089\u306e<a href=\"https:\/\/euc-access-excel-db.com\/tips\/ct07_se\/ct071701_mini_system_make\/access2000-linktable-speed-up\" target=\"_blank\" rel=\"noopener noreferrer\">\u30bb\u30aa\u30ea\u30fc\uff11<\/a>\u3068<a href=\"https:\/\/euc-access-excel-db.com\/tips\/ct07_se\/ct071701_mini_system_make\/access2000-mdb-crush-avoid\" target=\"_blank\" rel=\"noopener noreferrer\">\u30bb\u30aa\u30ea\u30fc\uff12<\/a>\u3092\u5b88\u308c\u3070\u3002\u3082\u3061\u308d\u3093\u3001\u901f\u5ea6\u3060\u3051\u3067\u3001\u305d\u306e\u4ed6\u306e\u5805\u7262\u6027\u3084\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3084\u30e1\u30f3\u30c6\u3001\u7279\u306b\u30e6\u30fc\u30b6\u30fc\u5225\u306e\u9ad8\u5ea6\u306a\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306fSQL Server\u306e\u307b\u3046\u304c\u306f\u308b\u304b\u306b\u4e0a\u306a\u306e\u3067\u3001\u305d\u3046\u3044\u3046\u610f\u5473\u3067\u3067\u3057\u305f\u3089\u300c\u30ed\u30fc\u30ab\u30ebPC\u5185\u3084\u30c7\u30fc\u30bf\u91cf\u304c\u5c11\u306a\u3044\u30b1\u30fc\u30b9\u300d\u3067\u3082SQL Server\u3092\u4f7f\u3046\u307b\u3046\u304c\u306f\u308b\u304b\u306b\u3044\u3044\u3067\u3059\u3002<\/b><\/span>\uff09<\/b><\/span><\/p>\n<p><SPAN>\u3000\u3000<\/SPAN><br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n(04)\u300c\u6c0f\u540d\u8868\u300d\u304b\u3089\u300c\u59d3\u300d\u306e\u5217\u3068\u300c\u540d\u300d\u306e\u5217\u3092\u53d6\u308a\u51fa\u3057\u3001\u300c\u7530\u300d\u3067\u59cb\u307e\u308b\u4eba\u306e\u884c\u3060\u3051\u3092\u300c\u59d3\u300d\u306e\u5217\u306e\u5024\u3092\u6761\u4ef6\u306b\u3057\u3066\u53d6\u308a\u51fa\u3057\u305f\u3044\u5834\u5408<\/p>\n<p><span style=\"color: #008000;\"><b>SELECT<\/b><br \/>\n\u3000\u59d3,<br \/>\n\u3000\u540d<br \/>\n<b>FROM<\/b><br \/>\n\u3000\u6c0f\u540d\u8868<br \/>\n<b>WHERE<\/b><br \/>\n\u3000\u59d3 Like '\u7530%';<br \/>\n<\/SPAN><\/p>\n<p>\uff08\u203b\u30ef\u30a4\u30eb\u30c9\u30ab\u30fc\u30c9\u306b\u3064\u3044\u3066\u306f\u3001Access\u306e\u5834\u5408\u306f\u300c\u59d3 Like '\u7530*';\u300d\u3068\u3001\u300c%\u300d\u3067\u306f\u306a\u304f\u3066\u300c*\uff08\u30a2\u30b9\u30bf\u30ea\u30b9\u30af\uff09\u300d\u3092\u4f7f\u3044\u307e\u3059\u3002Excel\u306f\u300c%\u300d\u3092\u4f7f\u3044\u307e\u3059\u3002\uff09<\/p>\n<p>\u7d50\u679c<br \/>\n<a href=\"https:\/\/euc-access-excel-db.com\/00000WPIMG\/2018-05-06---13-12-23.jpg\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/euc-access-excel-db.com\/00000WPIMG\/2018-05-06---13-12-23.jpg\" alt=\"\" width=\"30%\" height=\"30%\" ><\/a><\/p>\n<p>\u6587\u5b57\u5217\u306e\u4e00\u90e8\u3092\u6761\u4ef6\u306b\u3059\u308b\u5834\u5408\u306f\u300c=\u300d\u3067\u306f\u306a\u304f\u3001\u300cLike\u300d\u3092\u4f7f\u3044\u307e\u3059\u3002<br \/>\n\u300c'\u300d\uff08\u30b7\u30f3\u30b0\u30eb\u30af\u30a9\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\uff09\u3067\u56f2\u3080\u306e\u306f\u540c\u3058\u3067\u3059\u3002<br \/>\n\u300c\u7530\u3067\u59cb\u307e\u308b\u300d\u3092\u8868\u73fe\u3059\u308b\u306b\u306f\u300c\u7530%\u300d\u3068\u300c%\uff08\u30d1\u30fc\u30bb\u30f3\u30c8\uff09\u300d\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<p>\uff08\u203b\u30ef\u30a4\u30eb\u30c9\u30ab\u30fc\u30c9\u306b\u3064\u3044\u3066\u306f\u3001Access\u306e\u5834\u5408\u306f\u300c\u59d3 Like '\u7530*';\u300d\u3068\u3001\u300c%\u300d\u3067\u306f\u306a\u304f\u3066\u300c*\uff08\u30a2\u30b9\u30bf\u30ea\u30b9\u30af\uff09\u300d\u3092\u4f7f\u3044\u307e\u3059\u3002\u3067\u3082\u591a\u304f\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b7\u30b9\u30c6\u30e0\u3067\u306f%\u304c\u4f7f\u308f\u308c\u308b\u3068\u601d\u3044\u307e\u3059\u3002Excel\u306f\u300c%\u300d\u3092\u4f7f\u3044\u307e\u3059\u3002\uff09<\/p>\n<p>\u300c%\u300d\u3092\u6587\u5b57\u5217\u306e\u6b21\u306b\u6253\u3061\u8fbc\u3080\u3068\u300c\u524d\u65b9\u4e00\u81f4\u300d\u3067\u306e\u7d5e\u308a\u8fbc\u307f\u3068\u306a\u308a\u307e\u3059\u3002<br \/>\n<span style=\"color: #0000ff;\"><b>\u57fa\u672c\u3001\u300c\u524d\u65b9\u4e00\u81f4\u300d\u306f\u3001\u300c%\u7530%\u300d\u3068\u3044\u3046\u300c\u90e8\u5206\u4e00\u81f4\u300d\u3088\u308a\u306f\u304b\u306a\u308a\u9ad8\u901f\u306b\uff08\u5b8c\u5168\u4e00\u81f4\u306b\u8fd1\u3044\u304f\u3089\u3044\u306e\u901f\u3055\u3067\uff09\u30c7\u30fc\u30bf\u62bd\u51fa\u304c\u3067\u304d\u307e\u3059\u3002\uff08\u3069\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30bd\u30d5\u30c8\u3067\u3082\uff09<\/b><\/span><br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n<SPAN>\u3000\u3000<\/SPAN><\/p>\n<p>(05)\u300c\u6c0f\u540d\u8868\u300d\u304b\u3089\u300c\u59d3\u300d\u306e\u5217\u3068\u300c\u540d\u300d\u306e\u5217\u3092\u53d6\u308a\u51fa\u3057\u3001\u300c\u7530\u300d\u3092\u542b\u3080\u4eba\u306e\u884c\u3060\u3051\u3092\u300c\u59d3\u300d\u306e\u5217\u306e\u5024\u3092\u6761\u4ef6\u306b\u3057\u3066\u53d6\u308a\u51fa\u3057\u305f\u3044\u5834\u5408<\/p>\n<p><span style=\"color: #008000;\"><b>SELECT<\/b><br \/>\n\u3000\u59d3,<br \/>\n\u3000\u540d<br \/>\n<b>FROM<\/b><br \/>\n\u3000\u6c0f\u540d\u8868<br \/>\n<b>WHERE<\/b><br \/>\n\u3000\u59d3 Like '%\u7530%';<br \/>\n<\/SPAN><\/p>\n<p>\uff08\u203b\u30ef\u30a4\u30eb\u30c9\u30ab\u30fc\u30c9\u306b\u3064\u3044\u3066\u306f\u3001Access\u306e\u5834\u5408\u306f\u300c\u59d3 Like '*\u7530*';\u300d\u3068\u3001\u300c%\u300d\u3067\u306f\u306a\u304f\u3066\u300c*\uff08\u30a2\u30b9\u30bf\u30ea\u30b9\u30af\uff09\u300d\u3092\u4f7f\u3044\u307e\u3059\u3002Excel\u306f\u300c%\u300d\u3092\u4f7f\u3044\u307e\u3059\u3002\uff09<\/p>\n<p>\u7d50\u679c<br \/>\n<a href=\"https:\/\/euc-access-excel-db.com\/00000WPIMG\/2018-05-06---13-13-45.jpg\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/euc-access-excel-db.com\/00000WPIMG\/2018-05-06---13-13-45.jpg\" alt=\"\" width=\"30%\" height=\"30%\" ><\/a><\/p>\n<p>\u6587\u5b57\u5217\u306e\u4e00\u90e8\u3092\u6761\u4ef6\u306b\u3059\u308b\u5834\u5408\u306f\u300c=\u300d\u3067\u306f\u306a\u304f\u3001\u300cLike\u300d\u3092\u4f7f\u3044\u307e\u3059\u3002\uff08\u524d\u9805\u3068\u540c\u3058\uff09<br \/>\n\u300c'\u300d\uff08\u30b7\u30f3\u30b0\u30eb\u30af\u30a9\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\uff09\u3067\u56f2\u3080\u306e\u3082\u540c\u3058\u3067\u3059\u3002<br \/>\n\u300c\u7530\u3092\u542b\u3080\u300d\u3092\u8868\u73fe\u3059\u308b\u306b\u306f\u300c%\u7530%\u300d\u3068\u300c%\uff08\u30d1\u30fc\u30bb\u30f3\u30c8\uff09\u300d\u3092\u691c\u7d22\u8a9e\u53e5\u306e\u524d\u5f8c\u306b\u4f7f\u3044\u307e\u3059\u3002<br \/>\n\uff08Access\u306e\u5834\u5408\u306f\u300c*\uff08\u30a2\u30b9\u30bf\u30ea\u30b9\u30af\uff09\u300d\u3092\u4f7f\u3044\u3001Excel\u306f\u300c%\u300d\u3092\u4f7f\u3044\u307e\u3059\u3002\uff09<\/p>\n<p>\u300c%\u300d\u3092\u6587\u5b57\u5217\u306e\u524d\u5f8c\u306b\u6253\u3061\u8fbc\u3080\u3068\u300c\u90e8\u5206\u4e00\u81f4\u300d\u3067\u306e\u7d5e\u308a\u8fbc\u307f\u3068\u306a\u308a\u307e\u3059\u3002<br \/>\n\u300c\u7530%\u300d\u3068\u3044\u3046\u300c\u524d\u65b9\u4e00\u81f4\u300d\u3088\u308a\u306f\u9045\u3044\u3067\u3059\u304c\u3001\u3042\u3044\u307e\u3044\u306a\u30c7\u30fc\u30bf\u62bd\u51fa\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u300c\uff5e\u7530\u300d\u3067\u7d42\u308f\u308b\u4eba\u3082\u300c\u7530\uff5e\u300d\u3067\u59cb\u307e\u308b\u4eba\u3082\u3001\u300c\uff5e\u7530\uff5e\u300d\u3092\u542b\u3080\u4eba\u3082\u5168\u90e8\u62bd\u51fa\u3067\u304d\u308b\u306e\u3067\u305d\u3046\u3044\u3046\u3053\u3068\u3092\u77e5\u308a\u305f\u3044\u3068\u304d\u306b\u5927\u5909\u4fbf\u5229\u3067\u3059\u3002<br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n(06)\u9867\u5ba2ID\u3092\u30ad\u30fc\u306b\u7d10\u4ed8\u3051\u3057\u305f\u300c\u6c0f\u540d\u8868\u300d\u3068\u300c\u96fb\u8a71\u756a\u53f7\u8868\u300d\u304b\u3089\u3001\u300c\u96fb\u8a71\u756a\u53f7\u300d\u306e\u5217\u3092\u53d6\u308a\u51fa\u3057\u3001\u300c\u7530\u300d\u3092\u542b\u3080\u4eba\u306e\u884c\u3060\u3051\u3092\u300c\u59d3\u300d\u306e\u5217\u306e\u5024\u3092\u6761\u4ef6\u306b\u3057\u3066\u53d6\u308a\u51fa\u3057\u305f\u3044\u5834\u5408<br \/>\n\uff08Excel\u306e\u5834\u5408\u306e\u300cVLOOKUP\u95a2\u6570\u3067\u7d10\u4ed8\u3051\u3057\u306a\u304c\u3089\u3001\u540c\u6642\u306b\u3001\u30d5\u30a3\u30eb\u30bf\u3067\u7d5e\u308a\u8fbc\u3080\u30fb\u30fb\u30fb\u300d\u307f\u305f\u3044\u306a\u51e6\u7406\u3067\u3059\u3002\uff09<\/p>\n<p><span style=\"color: #008000;\"><b>SELECT<\/b><br \/>\n\u3000\u96fb\u8a71\u756a\u53f7<br \/>\n<b>FROM<\/b><br \/>\n\u3000\u6c0f\u540d\u8868 INNER JOIN \u96fb\u8a71\u756a\u53f7\u8868<span style=\"color: #32cd32;\"> ON \u6c0f\u540d\u8868.\u9867\u5ba2ID = \u96fb\u8a71\u756a\u53f7\u8868.\u9867\u5ba2ID<\/SPAN><br \/>\n<b>WHERE<\/b><br \/>\n\u3000\u59d3 Like '%\u7530%';<br \/>\n<\/SPAN><\/p>\n<p>INNER JOIN \u306b\u3066\u3001\u300c\u9867\u5ba2ID\u300d\u5217\u306e\u5024\u540c\u58eb\u3067\u6a2a\u7d50\u5408\u3059\u308b\u3068\u4e0b\u56f3\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u3053\u3053\u3067\u306f\u305d\u3053\u304b\u3089\u3001\u59d3\u306b\u300c\u7530\u300d\u3092\u542b\u3080\u300c\u96fb\u8a71\u756a\u53f7\u300d\u5217\u3060\u3051\u304c\u53d6\u308a\u51fa\u3055\u308c\u307e\u3059\u3002<br \/>\n\uff08\u6b66\u7530\u3055\u3093\u3068\u7530\u4e2d\u3055\u3093\u306e\u3001\u300c\u96fb\u8a71\u756a\u53f7\u300d\u306e\u5217\u3060\u3051\u304c\u53d6\u308a\u51fa\u3055\u308c\u307e\u3059\u3002\u203b\u3053\u3053\u3067\u306f\u6761\u4ef6\u304c\uff11\u3064\u3060\u3051\u3067\u3059\u304c\u3001\u3082\u3061\u308d\u3093\u3001\uff13\u3064\u3067\u3082\uff14\u3064\u3067\u3082\u6761\u4ef6\u3092\u52a0\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30b0\u30eb\u30fc\u30d7\u5316\u3082\u3067\u304d\u307e\u3059\u3002\uff09<br \/>\n<a href=\"https:\/\/euc-access-excel-db.com\/00000WPIMG\/2018-05-06---13-21-27.jpg\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/euc-access-excel-db.com\/00000WPIMG\/2018-05-06---13-21-27.jpg\" alt=\"\" width=\"50%\" height=\"50%\" ><\/a><\/p>\n<p>\u7d50\u679c<br \/>\n<a href=\"https:\/\/euc-access-excel-db.com\/00000WPIMG\/2018-05-06---13-15-42.jpg\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/euc-access-excel-db.com\/00000WPIMG\/2018-05-06---13-15-42.jpg\" alt=\"\" width=\"30%\" height=\"30%\" ><\/a><\/p>\n<p>\u300cFROM\u300d\u306e\u3068\u3053\u308d\u306e\u300cINNER JOIN\u300d\u3067\u3069\u306e\u8868\u3068\u3069\u306e\u8868\u3092\u7d10\u4ed8\u3051\u3059\u308b\u304b\u3092\u6307\u5b9a\u3057\u3066\u3001\u300cON\u300d\u4ee5\u964d\u3067\u3001\u305d\u308c\u305e\u308c\u306e\u8868\u306e\u3069\u306e\u5217\u3067\u7d50\u3073\u3064\u3051\u308b\u304b\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u300cFROM\u300d\u306e\u3068\u3053\u308d\u3084SELECT\u306a\u3069\u3067\u3001[\u6c0f\u540d\u8868$] \u306e\u3088\u3046\u306b\u66f8\u304f\u306e\u306fExcel\u3067SQL\u3092\u6271\u3046\u5834\u5408\u306e\u65b9\u8a00\u3067\u3001\u4ed6\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30bd\u30d5\u30c8\u3067\u306f\u8a18\u53f7\u306f\u8981\u3089\u305a\u3001\u540d\u524d\u3060\u3051\u3067OK\u3067\u3059\u3002\u3061\u306a\u307f\u306b\u300c$\u300d\u306fExcel\u30b7\u30fc\u30c8\u3092\u5bfe\u8c61\u3068\u3057\u305fSQL\u306e\u5834\u5408\u3060\u3051\u306b\u7528\u3044\u308b\u8a18\u53f7\u3067\u3059\uff08Excel\u56fa\u6709\u306e\u65b9\u8a00\u306e\u3088\u3046\u306a\u3082\u306e\u3067\u3059\uff09\u3002<br \/>\n\u300c\u30b7\u30b9\u30c6\u30e0\u30c6\u30fc\u30d6\u30eb\u300d\u3092\u610f\u5473\u3057\u307e\u3059\u3002<br \/>\n\u3053\u308c\u306fExcel\u306e\u5834\u5408\u3001MicrosoftQuery\uff08QueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff09\u3001DAO\u3067\u306eSQL\u3001ADO\u3067\u306eSQL\u3001\u3059\u3079\u3066\u5171\u901a\u3067\u3059\u3002\u306a\u304a\u3001Access\u304b\u3089\u3067\u3082\u3001Excel\u306e\u30b7\u30fc\u30c8\u3092\u8aad\u307f\u306b\u884c\u304f\u3068\u304d\u306b\u306f\u300c$\u300d\u3092\u4f7f\u3046\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p><SPAN>\u3000\u3000<\/SPAN><br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n<SPAN>\u3000\u3000<\/SPAN><\/p>\n<p><SPAN>\u3000\u3000<\/SPAN><br \/>\n<SPAN>\u3000\u3000<\/SPAN><\/p>\n","protected":false},"excerpt":{"rendered":"\u25cf \u7528\u8a9e\uff1a\u300cSQL\u300d\u3068\u306f\uff1f \u203b\u307e\u3048\u304c\u304d \u300cSQL\u300d\u306f\u3001Excel\u306e\u300cMicrosoft Query\uff0fQueryTable\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff0f\u30d4\u30dc\u30c3\u30c8\u30c6\u30fc\u30d6\u30eb\uff08PivotCache\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff09ADO\uff0fDAO\uff0fPower Que ...","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[62],"_links":{"self":[{"href":"https:\/\/euc-access-excel-db.com\/tips\/wp-json\/wp\/v2\/posts\/1339"}],"collection":[{"href":"https:\/\/euc-access-excel-db.com\/tips\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/euc-access-excel-db.com\/tips\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/euc-access-excel-db.com\/tips\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/euc-access-excel-db.com\/tips\/wp-json\/wp\/v2\/comments?post=1339"}],"version-history":[{"count":0,"href":"https:\/\/euc-access-excel-db.com\/tips\/wp-json\/wp\/v2\/posts\/1339\/revisions"}],"wp:attachment":[{"href":"https:\/\/euc-access-excel-db.com\/tips\/wp-json\/wp\/v2\/media?parent=1339"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/euc-access-excel-db.com\/tips\/wp-json\/wp\/v2\/categories?post=1339"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}