{"id":96346,"date":"2022-04-03T09:00:17","date_gmt":"2022-04-03T00:00:17","guid":{"rendered":"https:\/\/softantenna.com\/blog\/?p=96346"},"modified":"2022-04-03T08:44:43","modified_gmt":"2022-04-02T23:44:43","slug":"visualize-sql-queries","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/visualize-sql-queries\/","title":{"rendered":"Visualize SQL Queries - SQL\u30af\u30a8\u30ea\u3092\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3067\u308f\u304b\u308a\u3084\u3059\u304f\u8996\u899a\u5316\u304b\u3057\u3066\u304f\u308c\u308bWeb\u30b5\u30fc\u30d3\u30b9"},"content":{"rendered":"<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2022\/03\/s_20220330_202051.jpg\" alt=\"S 20220330 202051\" title=\"s_20220330_202051.jpg\" border=\"0\" width=\"1192\" height=\"779\" \/><\/p>\n<p>\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9(RDBMS)\u3092\u64cd\u4f5c\u3059\u308b\u305f\u3081\u306e\u8a00\u8a9e\u300cSQL\u300d\u3002<\/p>\n<p>\u30c7\u30fc\u30bf\u3092\u53d6\u308a\u51fa\u3057\u305f\u308a\u3001\u8ffd\u52a0\u3057\u305f\u308a\u3059\u308b\u5834\u5408\u306b\u5fc5\u8981\u3067\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u6271\u3046\u5fc5\u8981\u304c\u3042\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3084\u30b5\u30fc\u30d3\u30b9\u3092\u958b\u767a\u3059\u308b\u5834\u5408\u3001SQL\u306e\u77e5\u8b58\u306f\u5fc5\u9808\u3068\u8a00\u3063\u3066\u3082\u826f\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u672c\u65e5\u7d39\u4ecb\u3059\u308b\u300c<a href=\"https:\/\/animatesql.com\/\">Visualize SQL Queries<\/a>\u300d\u306f\u3001\u3053\u306eSQL\u306e\u52d5\u4f5c\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3067\u8868\u793a\u3057\u3066\u304f\u308c\u308bWeb\u30b5\u30fc\u30d3\u30b9\u3067\u3059\u3002<\/p>\n<p>\u958b\u767a\u8005\u306eKshitiz Tanwar\u6c0f\u306f\u3001\u540c\u50da\u3068SQL\u306e\u554f\u984c\u3092\u30c7\u30d0\u30c3\u30b0\u3057\u305f\u969b\u30012\u5e74\u3076\u308a\u306bSQL\u3092\u89e6\u3063\u305f\u3053\u3068\u3082\u3042\u308a\u3001\u30e6\u30cb\u30aa\u30f3\u3068\u30b8\u30e7\u30a4\u30f3\u3092\u9593\u9055\u3048\u3066\u6065\u3092\u304b\u3044\u3066\u3057\u307e\u3063\u305f\u3068\u306e\u3053\u3068\u3002SQL\u306e\u8a18\u61b6\u3092\u30ea\u30d5\u30ec\u30c3\u30b7\u30e5\u3059\u308b\u305f\u3081\u3001\u81ea\u5206\u81ea\u8eab\u306e\u305f\u3081\u306bSQL\u3092\u8996\u899a\u5316\u3059\u308b\u305f\u3081\u306e\u30c4\u30fc\u30eb\u3092\u4f5c\u3063\u305f\u305d\u3046\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u4f7f\u7528\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<h2>SQL\u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u9078\u629e<\/h2>\n<p>Visualize SQL Queries\u3092\u4f7f\u7528\u3059\u308b\u306b\u306f\u3001\u6700\u521d\u306b\u300cSQL Keywords\u300d\u3092\u9078\u629e\u3057\u307e\u3059\u3002\u4e00\u756a\u7c21\u5358\u306a\u300cSELECT\u300d\u3092\u9078\u629e\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306aSQL\u6587\u3068\u300cCustomer\u300d\u30c6\u30fc\u30d6\u30eb\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre>\r\nSELECT custFirstName, custLastName\r\nFROM Customers;\r\n<\/pre>\n<p>Customer\u30c6\u30fc\u30d6\u30eb\u304b\u3089\u540d\u524d\u3092\u9078\u629e\u3059\u308b\u30b7\u30f3\u30d7\u30eb\u306aSQL\u3067\u3059\u3002<\/p>\n<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2022\/03\/select_visual.jpg\" alt=\"Select visual\" title=\"select_visual.jpg\" border=\"0\" width=\"1198\" height=\"788\" \/><\/p>\n<p>\u300cVisualize\uff01\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068SQL\u306e\u5b9f\u884c\u304c\u59cb\u307e\u308a\u307e\u3059\u3002\u5b9f\u884c\u4e2d\u306e\u30c6\u30fc\u30d6\u30eb\u306e\u30c7\u30fc\u30bf\u90e8\u5206\u304c\u30cf\u30a4\u30e9\u30a4\u30c8\u8868\u793a\u3055\u308c\u3001\u300cResult\u300d\u306b\u7d50\u679c\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u300cLEFT JOIN\u300d\u3092\u9078\u3076\u3068\u5de6\u5916\u90e8\u7d50\u5408\u306e\u30b5\u30f3\u30d7\u30ebSQL\u3001\u304a\u3088\u3073\u300cTeams\u300d\u300cGames\u300d\u30c6\u30fc\u30d6\u30eb\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre>\r\nSELECT Games.gameID, Teams.teamName AS winningTeam\r\nFROM Teams LEFT JOIN Games\r\nON Teams.teamID = Games.gameWinner;\r\n<\/pre>\n<p>Teams\u3068Games\u3092\u5de6\u7d50\u5408\u3057\u3066\u7d50\u679c\u3092\u8868\u793a\u3059\u308bSQL\u3067\u3059\u3002<\/p>\n<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2022\/03\/s_20220330_202458.jpg\" alt=\"S 20220330 202458\" title=\"s_20220330_202458.jpg\" border=\"0\" width=\"1280\" height=\"884\" \/><\/p>\n<p>\u540c\u69d8\u306b\u300cVisualize\uff01\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068SQL\u306e\u5b9f\u884c\u304c\u59cb\u307e\u308a\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2022\/03\/s_20220330_204151.jpg\" alt=\"S 20220330 204151\" title=\"s_20220330_204151.jpg\" border=\"0\" width=\"860\" height=\"560\" \/><\/p>\n<p>\u305d\u306e\u4ed6\u3001DISTINCT\u3001WHERE\u3001ORDER BY\u3001LIMIT\u3001GROUP BY\u306a\u3069\u3055\u307e\u3056\u307e\u306a\u30bf\u30a4\u30d7\u306eSQL\u30af\u30a8\u30ea\u3092\u53ef\u8996\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>Visualize SQL Queries\u306fSQL\u30af\u30a8\u30ea\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3067\u8868\u793a\u3057\u3066\u304f\u308c\u308bWeb\u30b5\u30fc\u30d3\u30b9\u3067\u3059\u3002\u306a\u304a\u3001<a href=\"https:\/\/news.ycombinator.com\/item?id=30836647\">Hacker News<\/a>\u306b\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306f\u5b9f\u969b\u306f\u30c6\u30fc\u30d6\u30eb\u30b9\u30ad\u30e3\u30f3\u3092\u884c\u308f\u306a\u3044\u5834\u5408\u3082\u591a\u304f\u3001\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306f\u30df\u30b9\u30ea\u30fc\u30c7\u30a3\u30f3\u30b0\u3092\u8a98\u767a\u3059\u308b\u3068\u306e\u6279\u5224\u3082\u5bc4\u305b\u3089\u308c\u3066\u304a\u308a\u3001\u5b9f\u969b\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u52d5\u4f5c\u3068\u306f\u7570\u306a\u308b\u5834\u5408\u304c\u3042\u308b\u70b9\u306b\u3064\u3044\u3066\u306f\u3001\u6ce8\u610f\u304c\u5fc5\u8981\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9(RDBMS)\u3092\u64cd\u4f5c\u3059\u308b\u305f\u3081\u306e\u8a00\u8a9e\u300cSQL\u300d\u3002 \u30c7\u30fc\u30bf\u3092\u53d6\u308a\u51fa\u3057\u305f\u308a\u3001\u8ffd\u52a0\u3057\u305f\u308a\u3059\u308b\u5834\u5408\u306b\u5fc5\u8981\u3067\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u6271\u3046\u5fc5\u8981\u304c\u3042\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3084\u30b5\u30fc\u30d3\u30b9\u3092\u958b\u767a\u3059\u308b\u5834\u5408\u3001SQL\u306e\u77e5\u8b58\u306f\u5fc5\u9808\u3068\u8a00\u3063\u3066 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":96457,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[66],"tags":[2893,575],"class_list":["post-96346","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-webservice","tag-sql","tag-web"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/96346","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=96346"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/96346\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/96457"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=96346"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=96346"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=96346"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}