Warning: Creating default object from empty value in /www/htdocs/v030397/mysql-qotd/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php on line 4991

Warning: Creating default object from empty value in /www/htdocs/v030397/mysql-qotd/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php on line 4993

Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/v030397/mysql-qotd/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php:4991) in /www/htdocs/v030397/mysql-qotd/wp-includes/feed-rss2-comments.php on line 8
Comments on: Question 35: Which of the following alternatives return the same result as the original? http://mysql-qotd.casperia.net/archives/268 mysql 5.0/5.1 questions for learning purposes Fri, 06 Aug 2010 16:56:36 +0000 http://wordpress.org/?v=abc hourly 1 By: urs http://mysql-qotd.casperia.net/archives/268/comment-page-1#comment-41 urs Wed, 03 Mar 2010 16:00:55 +0000 http://mysql-qotd.casperia.net/?p=268#comment-41 <b>   Answers:   a c   Answer a is probably the most efficient. b does not return the correct result. d uses "MINUS", which is not supported in mysql.   The wgen table is filled with 10 rows. The insert selects from a cartesian join from 4 tables, (well, 4 aliases of the same table) resulting in 10 * 10 * 10 * 10 = 10000 rows.   </b>
 
Answers:
 
a c
 
Answer a is probably the most efficient.
b does not return the correct result.
d uses “MINUS”, which is not supported in mysql.
 
The wgen table is filled with 10 rows. The insert selects from a cartesian join from 4 tables,
(well, 4 aliases of the same table) resulting in 10 * 10 * 10 * 10 = 10000 rows.
 

]]>