SELECT 
  cscart_product_descriptions.product_id, 
  cscart_product_descriptions.short_description, 
  IF(
    cscart_product_descriptions.short_description = '' 
    OR cscart_product_descriptions.short_description IS NULL, 
    cscart_product_descriptions.full_description, 
    ''
  ) AS full_description, 
  cscart_product_descriptions.unit_name 
FROM 
  cscart_product_descriptions 
WHERE 
  cscart_product_descriptions.product_id IN (46, 45, 8, 14, 7, 44, 13) 
  AND cscart_product_descriptions.lang_code = 'en'

Query time 0.01577

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "16.81"
    },
    "table": {
      "table_name": "cscart_product_descriptions",
      "access_type": "range",
      "possible_keys": [
        "PRIMARY",
        "product_id"
      ],
      "key": "PRIMARY",
      "used_key_parts": [
        "product_id",
        "lang_code"
      ],
      "key_length": "9",
      "rows_examined_per_scan": 7,
      "rows_produced_per_join": 7,
      "filtered": "100.00",
      "index_condition": "((`atulecarter_atul_demo8`.`cscart_product_descriptions`.`product_id` in (46,45,8,14,7,44,13)) and (`atulecarter_atul_demo8`.`cscart_product_descriptions`.`lang_code` = 'en'))",
      "cost_info": {
        "read_cost": "15.41",
        "eval_cost": "1.40",
        "prefix_cost": "16.81",
        "data_read_per_join": "31K"
      },
      "used_columns": [
        "product_id",
        "lang_code",
        "short_description",
        "full_description",
        "unit_name"
      ]
    }
  }
}

Result

product_id short_description full_description unit_name
7 <p>The adidas Originals Trefoil Hoodie has been a streetwear essential for decades, with its characteristic big hood, kangaroo pocket and large Trefoil. Now it's your turn to join the Trefoil men's hoodie crew and carry the legend forward.</p>
8 <p> Although its attractive features, design, and passive 3D have merit, the picture quality issues of the Toshiba TL515U LED-based LCD TV lessen its appeal in the face of the stiff competition. </p>
13 <p style="text-align: left; color: #000000; font-size: 12px; background-color: #ffffff;"> Every time a new story about how some nobody from nowhere got rich producing some clever new product in his garage, you may think, "Why can't I do that?" Well, anyone can--the trick is to take those good ideas and build them into great products that can succeed in the marketplace. In this book, you will get the 12-step plan you need to make your new product or service a profitable reality. You will learn important skills for success, including how to: </p> <ul style="text-align: left; color: #000000; font-size: 12px; background-color: #ffffff;"> <li style="text-align: left;">Refine their idea to attract a target audience</li> <li style="text-align: left;">Research the competition</li> <li style="text-align: left;">Find the right manufacturer</li> <li style="text-align: left;">Create appropriate brand messaging</li> <li style="text-align: left;">Build buzz online and beyond</li> <li style="text-align: left;">Work trade shows and conventions</li> </ul> <p> <span style="color: #000000; font-family: Arial, sans-serif; font-size: 12px; background-color: #ffffff;">Written by a woman with no formal business experience who turned her own idea into a million-dollar company, this book is the pragmatic yet inspiring guide every aspiring entrepreneur is looking for.</span> </p>
14 <p>Enjoy a stunning picture bursting with color and clarity with the 40-inch Toshiba 40E200U LCD HDTV (40-inch diagonal screen size), featuring a 1080p Full HD resolution that provides twice the pixel resolution of 720p HD models. It provides a number of convenient home entertainment options and key picture quality features, including DynaLight dynamic backlight control for deeper black levels and four HDMI digital inputs for simple high quality connection to cable/satellite boxes, DVD players and more. Plus, the HDMI ports feature fast InstaPort switching for quick changes from one source to another.&nbsp;<br /><br />DynaLight automatically adjusts the backlight intensity based on the image content.<br /><br /> With the Gaming Mode function, you'll experience reduced game control delay and improved reaction time--perfect for PC gaming--and the Photo Frame capability with Auto Slide Show enables you to display slideshows of your favorite images when not watching TV programming. <br /><br /> Boasting a slimming tapered bezel and attractive front panel gradation, the new Horizon design creates a more modern, elegant appearance that also adds a subtle luminance to the logo to further its stylish appeal. Other features include MP3 playback via the integrated USB port, a PC input, and a removable stand.</p>
44 <p> <p style="color: #333333; font-family: Verdana, Geneva, sans-serif; font-size: 14px; line-height: 17px;"><span style="color: #996633; font-family: Georgia, 'Times New Roman', Times, serif; font-size: x-small;"><strong>Purpose:</strong></span></p> <p style="color: #333333; font-family: Verdana, Geneva, sans-serif; font-size: 14px; line-height: 17px;"><span style="color: #996633; font-family: Georgia, 'Times New Roman', Times, serif; font-size: x-small;">To provide students taking the 11th-grade New York State course in U.S. history and government and the Regents examination, as well as others taking a similar course, with a concise and comprehensive text.&nbsp;<br /></span></p> <ul style="color: #333333; font-family: Verdana, Geneva, sans-serif; font-size: 14px; line-height: 17px;" type="square"> <span style="color: #996633; font-family: Georgia, 'Times New Roman', Times, serif; font-size: x-small;"><strong>Text features include:</strong> <li>introduction to U.S. geography with an emphasis on how geography has shaped the American experience</li> <li>summary of the founding, principles, and operations of the U.S. government . lucid historical narrative</li> <li>emphasis on the modern period</li> <li>primary source readings in every chapter</li> <li>emphasis on the experiences and contributions of women and minorities</li> <li>mid-chapter &ldquo;in Review&rdquo; features</li> <li>end-of-chapter exercises: multiple-choice, thematic-essay, and document-based questions</li> <li>more maps, charts, and tables</li> <li>expanded coverage of U.S. Supreme Court landmark cases</li> <li>&ldquo;The American People: Changes at the Millennium&rdquo; - a demographic feature in the last chapter</li> <li>appendix: annotated Declaration of Independence and U.S. Constitution.</li> <li>Teacher&rsquo;s Manual With Answers has guidelines for class presentation of each chapter, answer key, Student&rsquo;s Study Guide.</li> <li>Hardbound</li> </span> </ul> </p>
45 <p><strong style="color: #000000; font-family: Arial, Verdana, 'Sans Serif'; line-height: 15px; text-align: justify;">A student friendly, thoughtfully organized introduction to research in psychology&nbsp;</strong><br style="color: #000000; font-family: Arial, Verdana, 'Sans Serif'; line-height: 15px; text-align: justify;" /><br style="color: #000000; font-family: Arial, Verdana, 'Sans Serif'; line-height: 15px; text-align: justify;" /><span style="color: #000000; font-family: Arial, Verdana, 'Sans Serif'; line-height: 15px; text-align: justify;">Employing numerous examples and the pedagogical approach of spaced repetition, this introductory text provides a step-by-step explanation of how to design, conduct, and present a research study in psychology. Chronologically organized and chock-full of pedagogy, this book creates logical scaffolding upon which students can build their knowledge.</span><br style="color: #000000; font-family: Arial, Verdana, 'Sans Serif'; line-height: 15px; text-align: justify;" /></p>
46 <p>&nbsp;</p> <p class="dtm" style="margin-top: 10px !important; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; text-align: left; background-color: #ffffff;">When it comes to getting answers, go to the source!&nbsp;<em>The Official SAT Study Guide: Second Edition&trade;</em>&nbsp;features 10 SAT&reg; practice tests created by the test maker. With over 1,000 pages and more than 20 chapters, it's packed with the most up-to-date information students need to get ready for the test.</p> <p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; text-align: left; background-color: #ffffff;">Students will gain valuable experience and raise their confidence by taking practice tests, by reviewing critical concepts, test-taking approaches, and focused sets of practice questions just like those on the actual SAT.</p> <p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; text-align: left; background-color: #ffffff;"><em>The Official SAT Study Guide: Second Edition&trade;</em>&nbsp;will help students get ready for the SAT with:</p> <ul style="margin-top: 0px; margin-bottom: 10px; margin-left: 16px; color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; text-align: left; background-color: #ffffff; padding: 0px;"> <li style="list-style-image: url(http://store.collegeboard.com/common/shared/images/bullet.gif); list-style-type: square; margin-bottom: 10px;">10 official SAT practice tests, including 3 new recent exams</li> <li style="list-style-image: url(http://store.collegeboard.com/common/shared/images/bullet.gif); list-style-type: square; margin-bottom: 10px;">detailed descriptions of math, critical reading, and writing sections of the SAT</li> <li style="list-style-image: url(http://store.collegeboard.com/common/shared/images/bullet.gif); list-style-type: square; margin-bottom: 10px;">targeted practice questions for each SAT question type</li> <li style="list-style-image: url(http://store.collegeboard.com/common/shared/images/bullet.gif); list-style-type: square; margin-bottom: 10px;">practice essay questions, along with sample essays and annotations</li> <li style="list-style-image: url(http://store.collegeboard.com/common/shared/images/bullet.gif); list-style-type: square; margin-bottom: 10px;">a review of math concepts tested in the exam</li> <li style="list-style-image: url(http://store.collegeboard.com/common/shared/images/bullet.gif); list-style-type: square; margin-bottom: 10px;">test-taking approaches and suggestions that underscore important points</li> <li style="list-style-image: url(http://store.collegeboard.com/common/shared/images/bullet.gif); list-style-type: square; margin-bottom: 10px;">free online score reports</li> <li style="list-style-image: url(http://store.collegeboard.com/common/shared/images/bullet.gif); list-style-type: square; margin-bottom: 10px;">exclusive access to online answers and explanations at collegeboard.org</li> <li style="list-style-image: url(http://store.collegeboard.com/common/shared/images/bullet.gif); list-style-type: square; margin-bottom: 10px;">$10 discount on&nbsp;<em>The Official SAT Online Course</em>&nbsp;to all book owners</li> </ul> <p><span style="color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; text-align: left; background-color: #ffffff;">There's also a complete chapter on the PSAT/NMSQT&reg;</span></p> <p>&nbsp;</p>