{"id":29,"date":"2005-11-18T04:00:00","date_gmt":"2005-11-18T04:00:00","guid":{"rendered":"http:\/\/thenoyes.com\/littlenoise\/?p=29"},"modified":"2006-06-16T20:55:53","modified_gmt":"2006-06-16T20:55:53","slug":"alias-2","status":"publish","type":"post","link":"https:\/\/thenoyes.com\/littlenoise\/?p=29","title":{"rendered":"Alias"},"content":{"rendered":"<p>What would result from the following?<\/p>\n<pre>\r\nCREATE TABLE my_table (\r\n   id INT\r\n);\r\nINSERT INTO my_table (id) VALUES (2.9), (3), (3.4), (3.9), (4);\r\nSELECT * FROM my_table AS m WHERE my_table.id &gt; 3;\r\n<\/pre>\n<p><spoiler 'Show Answer' 'Hide Answer'><br \/>\nAnswer:<br \/>\n<code><br \/>\nERROR 1109 (42S02): Unknown table 'my_table' in where clause.<br \/>\n<\/code><br \/>\n<br \/>\n(because it uses an alias for my_table, we should have said &#8220;<code>WHERE m.id &gt; 3\"<\/code><\/spoiler><\/p>\n","protected":false},"excerpt":{"rendered":"<p>What would result from the following? CREATE TABLE my_table ( id INT ); INSERT INTO my_table (id) VALUES (2.9), (3), (3.4), (3.9), (4); SELECT * FROM my_table AS m WHERE my_table.id &gt; 3; Answer: ERROR 1109 (42S02): Unknown table &#8216;my_table&#8217; in where clause. (because it uses an alias for my_table, we should have said &#8220;WHERE [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[6],"tags":[],"class_list":["post-29","post","type-post","status-publish","format-standard","hentry","category-gotchas"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p2IBF1-t","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=\/wp\/v2\/posts\/29","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=29"}],"version-history":[{"count":0,"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=\/wp\/v2\/posts\/29\/revisions"}],"wp:attachment":[{"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=29"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=29"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=29"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}