SELECT 
  q_product_descriptions.product_id, 
  q_product_descriptions.short_description, 
  IF(
    q_product_descriptions.short_description = '', 
    q_product_descriptions.full_description, 
    ''
  ) AS full_description 
FROM 
  q_product_descriptions 
WHERE 
  q_product_descriptions.product_id IN (
    9661, 9662, 9663, 9664, 9665, 9788, 9874, 
    9875, 9876, 9877, 9878, 9879, 9880, 
    9881, 9882, 9883, 9884, 9885, 9886, 
    9887, 9888, 9889, 9890, 9891, 9892, 
    9893, 9894, 9895, 9896, 9897
  ) 
  AND q_product_descriptions.lang_code = 'en'

Query time 0.00066

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "72.01"
    },
    "table": {
      "table_name": "q_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": 30,
      "rows_produced_per_join": 30,
      "filtered": "100.00",
      "index_condition": "((`portal`.`q_product_descriptions`.`product_id` in (9661,9662,9663,9664,9665,9788,9874,9875,9876,9877,9878,9879,9880,9881,9882,9883,9884,9885,9886,9887,9888,9889,9890,9891,9892,9893,9894,9895,9896,9897)) and (`portal`.`q_product_descriptions`.`lang_code` = 'en'))",
      "cost_info": {
        "read_cost": "66.01",
        "eval_cost": "6.00",
        "prefix_cost": "72.01",
        "data_read_per_join": "114K"
      },
      "used_columns": [
        "product_id",
        "lang_code",
        "short_description",
        "full_description"
      ]
    }
  }
}

Result

product_id short_description full_description
9661 <ul class="top-section-list"><li class="top-section-list-item">Shock-Absorbing Frame</li> <li class="top-section-list-item">360 degree Protection</li> <li class="top-section-list-item">Folding Cover Doubles as a Stand</li> <li class="top-section-list-item">Supports Multiple Viewing Modes</li> </ul>
9662 <ul class="a-unordered-list a-vertical a-spacing-none"><li><span class="a-list-item">Designed for the Apple iPad Pro 12 9 inch but Not compatible with other iPad models</span></li> <li><span class="a-list-item">Magnetic flap keeps cover closed and secure Supports iPad auto wake sleep function</span></li> <li><span class="a-list-item">Custom cut out to support Apple Pencil charging Microfiber lined front cover to cushion and protect your touchscreen</span></li> <li><span class="a-list-item">Stand supports three viewing angles typing reading and browsing Unique origami folding cover doubles as a stand</span></li> </ul>
9663 <ul class="a-unordered-list a-vertical a-spacing-none"><li><span class="a-list-item">Designed for the Apple iPad Pro 11 inch Not compatible with other iPad models.</span></li> <li><span class="a-list-item">Magnetic flap keeps cover closed and secure Supports iPad auto wakesleep function</span></li> <li><span class="a-list-item">Custom cut out to support Apple Pencil charging</span></li> <li><span class="a-list-item">Stand supports three viewing angles typing reading and browsing Unique origami folding cover doubles as a stand</span></li> <li><span class="a-list-item">Microfiber lined front cover to cushion and protect your touchscreen</span></li> </ul>
9664 <ul><li>Shock-absorbing frame offers durable, 360-degree protection.</li> <li>Unique origami folding cover doubles as a stand.</li> <li>Stand supports three viewing angles: typing, reading and browsing.</li> <li>Supports iPad's auto-wake/sleep function.</li> </ul>
9665 <ul class="top-section-list"><li class="top-section-list-item">Shock-Absorbing Frame</li> <li class="top-section-list-item">360 degrees Protection</li> <li class="top-section-list-item">Folding Cover Doubles as a Stand</li> <li class="top-section-list-item">Supports Multiple Viewing Modes</li> </ul>
9788 <ul><li><span class="a-list-item">Rotating grip with 8 lockable positions lets you securely hold your iPad Pro 9.7 with one hand</span></li> <li><span class="a-list-item"> Integrated, adjustable stand lets you turn your screen to portrait or landscape orientation, so you can find your optimum angle</span></li> <li><span class="a-list-item"> Slim but strong construction, with shock absorbing frame and rubber screen bumper, protects your iPad from everyday knocks without weighing it down</span></li> <li><span class="a-list-item"> Leather pencil holder safely stores your pencil when not in use, so it's there when you need it next</span></li> <li><span class="a-list-item">Designed for the original iPad Pro 9.7 (DOES NOT FIT THE 2017 IPAD PRO 10.5 or IPAD 9.7)</span></li> </ul>
9874 <ul class="a-unordered-list a-vertical a-spacing-none"><li><span class="a-list-item">Polycarbonate TPU</span></li> <li><span class="a-list-item">Super durable fitted case for iPad Mini 1 2 3 or iPad Mini Retina</span></li> <li><span class="a-list-item">Rubberized edges and corners for extra protection</span></li> <li><span class="a-list-item">On off smart cover wakes and turns off the device</span></li> <li><span class="a-list-item">Patent pending magnetic closure secures the cover into closed viewing or typing positions Unique clear back panel for asset tagging or personalization</span></li> </ul>
9875 <ul><li>Drop tested to meet the U.S. Military Spe 810G durability tests</li> <li>Super protective polycarbonate and rubberized TPU bracket</li> <li>Translucent design celebrates the iPad Pro's design,and allows for easy asset tagging</li> <li>Works seamlessly with the Apple</li> <li>Smart Cover and Smart Keyboard</li> <li>Built-in storage and protection for Apple Pencil in a fitted channel</li> </ul>
9876 <ul><li>Drop tested to meet the U.S. Military Spec 810G durability tests</li> <li>Super protective polycarbonate and rubberized TPU bracket</li> <li>The translucent design celebrates the iPad Pro 's design, and allows for an easy asset tagging</li> <li>Works seamlessly with the Apple</li> <li>Smart Cover and Smart Keyboard</li> <li>Built-in storage and protection for Apple Pencil in a fitted channel</li> </ul>
9877 <ul><li> <ul><li>Drop tested to meet the U.S. Military Spec 810G durability tests</li> <li>Super protective polycarbonate and rubberized TPU bracket</li> <li>Translucent design celebrates the iPad Pro's design, and allows for easy asset tagging</li> <li>Works seamlessly with the Apple</li> <li>Smart Cover and Smart Keyboard</li> <li>Built-in storage and protection for Apple Pencil in a fitted channel</li> </ul></li> </ul>
9878 <ul><li>Drop tested to meet the U.S. Military Spec 810G durability tests</li> <li>Super protective polycarbonate and rubberized TPU bracket</li> <li>Translucent design celebrates the iPad Pro's design, and allows for easy asset tagging</li> <li>Works seamlessly with the Apple</li> <li>Smart Cover and Smart Keyboard</li> <li>Built-in storage and protection for Apple Pencil in a fitted channel</li> </ul>
9879 <ul><li>Drop tested to meet the U.S. Military Spec 810G durability tests</li> <li>Super protective polycarbonate and rubberized TPU bracket</li> <li>Translucent design celebrates the iPad Pro's design, and allows for easy asset tagging</li> <li>Works seamlessly with the Apple</li> <li>Smart Cover and Smart Keyboard</li> <li>Built-in storage and protection for Apple Pencil in a fitted channel</li> </ul>
9880 <p><span>A sleek fitted case with translucent design for iPad</span></p> <p><span>Provides your iPad with crystal clear protection</span></p> <p><span> Studio offers a hard shell polycarbonate bracket that guards your device from bumps and scratches and because it is transparent it allows your iPad to shine through</span></p> <p><span>The case has patented magnetic cover effortlessly folds into a stand for typing and viewing ease plus it boasts a secure closure with a unique magnetic wrap that wakes the device when opened and puts it to sleep when closed</span></p> <p><span> In addition, you will find there is easy access to all buttons and ports</span></p> <p><span>Its multi fit design is compatible with the new iPad 9 7 iPad Pro 9 7 iPad Air 2 and iPad Air</span></p>
9881 <ul><li>Slim and lightweight construction celebrates the iPad Pro’s form factor while providing excellent protection</li> <li>Drop tested to meet the US Military Spec 810G drop tests</li> <li>Super protective polycarbonate and rubberised TPU bracket for even the most accident prone among us</li> <li>Translucent back allows for user customisation or easy asset tagging for schools and businesses</li> <li>Works seamlessly with the Apple Smart Cover and Smart Keyboard</li> <li>Built in storage and protection for the Apple Pencil in a fitted channel</li> <li>Easy installation</li> </ul>
9882 <ul class="top-section-list"><li class="top-section-list-item">Fits Apple iPad Pro 10 point 5 inch</li> <li class="top-section-list-item">Polycarbonate and Rubberized Bracket</li> <li class="top-section-list-item">Store and Protect Apple Pencil</li> </ul>
9883 <ul class="top-section-list"><li class="top-section-list-item">Fits Apple iPad Pro 10 point 5 inch</li> <li class="top-section-list-item">Polycarbonate and Rubberized Bracket</li> <li class="top-section-list-item">Store and Protect Apple Pencil</li> </ul>
9884 <ul class="top-section-list"><li class="top-section-list-item">Fits Apple iPad Pro 10 point 5 inch</li> <li class="top-section-list-item">Polycarbonate and Rubberized Bracket</li> <li class="top-section-list-item">Store and Protect Apple Pencil</li> </ul>
9885 <ul class="a-unordered-list a-vertical a-spacing-none"><li><span class="a-list-item">Exceeds US mil spec 810G drop Test 26 drops from 4 feet</span></li> <li><span class="a-list-item">Built in storage and protection for Apple Pencil in a fitted Channel</span></li> <li><span class="a-list-item">Patented magnet closure to stand feature Durable and water resistant polyurethane cover to ward off occasional drips or spills</span></li> <li><span class="a-list-item">Instant on off cover wakes and turns the Device off to save battery life</span></li> <li><span class="a-list-item">Translucent back allows for user customization or Easy asset tagging for schools and businesses</span></li> </ul>
9886 <ul class="a-unordered-list a-vertical a-spacing-none"><li><span class="a-list-item">Exceeds US mil spec 810G drop Test 26 drops from 4 feet</span></li> <li><span class="a-list-item">Built in storage and protection for Apple Pencil in a fitted Channel</span></li> <li><span class="a-list-item">Patented magnet closure to stand feature. Durable and water resistant polyurethane cover to ward off occasional drips or spills</span></li> <li><span class="a-list-item">Instant on off cover wakes and turns the Device off to save battery life</span></li> <li><span class="a-list-item">Translucent back allows for user customization or Easy asset tagging for schools and businesses</span></li> </ul>
9887 <div class="para-list"> <ul><li>Advanced protection to withstand heavy use in classrooms and work environments</li> <li>Tested to meet the U.S. Department of Defense Mil-Std 810G drop requirement</li> <li>Highly protective polycarbonate and rubberized TPU bracket to endure even the most accident-prone users</li> <li>Translucent back allows easy viewing of barcodes or other asset tags used in schools or businesses</li> <li>Built-in, secure storage and protection for Apple Pencil</li> <li>Patented magnetic closure allows easy folding for typing or viewing</li> <li>Instant on/off cover wakes iPad Pro and puts it to sleep to save battery power</li> <li>Durable, water-resistant polyurethane cover wards off drips or spills</li> </ul></div>
9888 <div class="para-list"> <ul><li>Advanced protection to withstand heavy use in classrooms and work environments</li> <li>Tested to meet the U.S. Department of Defense Mil-Std 810G drop requirement</li> <li>Highly protective polycarbonate and rubberized TPU bracket to endure even the most accident-prone users</li> <li>Translucent back allows easy viewing of barcodes or other asset tags used in schools or businesses</li> <li>Built-in, secure storage and protection for Apple Pencil</li> <li>Patented magnetic closure allows easy folding for typing or viewing</li> <li>Instant on/off cover wakes iPad Pro and puts it to sleep to save battery power</li> <li>Durable, water-resistant polyurethane cover wards off drips or spills</li> </ul></div>
9889 <div class="para-list"> <ul><li>Advanced protection to withstand heavy use in classrooms and work environments</li> <li>Tested to meet the U.S. Department of Defense Mil-Std 810G drop requirement</li> <li>Highly protective polycarbonate and rubberized TPU bracket to endure even the most accident-prone users</li> <li>Translucent back allows easy viewing of barcodes or other asset tags used in schools or businesses</li> <li>Built-in, secure storage and protection for Apple Pencil</li> <li>Patented magnetic closure allows easy folding for typing or viewing</li> <li>Instant on/off cover wakes iPad Pro and puts it to sleep to save battery power</li> <li>Durable, water-resistant polyurethane cover wards off drips or spills</li> </ul></div>
9890 <ul class="a-unordered-list a-vertical a-spacing-none"><li><span class="a-list-item">Exceeds US Mil-Spec 810G drop test 26 drops from 4 feet for the most accident prone among us</span></li> <li><span class="a-list-item">Infinity Stand accommodates nearly unlimited viewing angles for typing and drawing</span></li> <li><span class="a-list-item">Surface Pen storage allows magnetic connection for quick access while working, and rear storage discreetly secures the Surface Pen for travel</span></li> <li><span class="a-list-item">Fits Both Surface Pro 4 and Surface Pro 2017 with new Improved Hinges</span></li> <li><span class="a-list-item">Transparent back panel to customize your case with photos, asset tag for schools & businesses, or allow your pristine Surface Pro 4 or Surface Pro 2017 to shine through</span></li> </ul>
9891 <ul class="a-unordered-list a-vertical a-spacing-none"><li><span class="a-list-item">Mil Spec Approved tested to meet or exceed US Dept of Defense Standard 810G protocols 26 drops from 4 feet</span></li> <li><span class="a-list-item">Infinity Hinge accommodates a full 180 degree range of angles for typing drawing and viewing</span></li> <li><span class="a-list-item">Portrait horizontal viewing option with maximum stability</span></li> <li><span class="a-list-item">Integrated pen storage discreetly secures the instrument to the case while making it easily accessible</span></li> <li><span class="a-list-item">Seamless Type Cover compatibility</span></li> </ul>
9892 <ul><li><span>Lightweight and low profile design protects from bumps and scratches without adding bulk </span></li> <li><span>Textured fabric cover provides a simple and elegant wrap around your iPad Pro</span></li> <li><span>Protective Apple Pencil storage </span></li> <li><span>Multiple viewing modes front cover folds inwards to support typing and viewing orientation </span></li> <li><span>Instant on off cover magnetic closure activates sleep and wake functionality to save energy</span></li> <li><span>Easy access to all buttons and parts</span></li> </ul>
9893 <ul><li><span>Lightweight and low profile design protects from bumps and scratches without adding bulk </span></li> <li><span>Textured fabric cover provides a simple and elegant wrap around your iPad Pro</span></li> <li><span>Protective Apple Pencil storage </span></li> <li><span>Multiple viewing modes front cover folds inwards to support typing and viewing orientation </span></li> <li><span>Instant on off cover magnetic closure activates sleep and wake functionality to save energy</span></li> <li><span>Easy access to all buttons and parts</span></li> </ul>
9894 <ul><li><span>Lightweight and low profile design protects from bumps and scratches without adding bulk </span></li> <li><span>Textured fabric cover provides a simple and elegant wrap around your iPad Pro</span></li> <li><span>Protective Apple Pencil storage </span></li> <li><span>Multiple viewing modes front cover folds inwards to support typing and viewing orientation </span></li> <li><span>Instant on off cover magnetic closure activates sleep and wake functionality to save energy</span></li> <li><span>Easy access to all buttons and parts</span></li> </ul>
9895 <ul class="a-unordered-list a-vertical a-spacing-none"><li><span class="a-list-item">Super protective polycarbonate and rubberised TPU bracket for even the most accident prone among us</span></li> <li><span class="a-list-item">Patented magnetic closure allows for easy folding for typing or viewing</span></li> <li><span class="a-list-item">Designed to enable Apple Pencil wireless charging, while protecting your writing device</span></li> <li><span class="a-list-item">Instant on off cover wakes and turns the device off to save battery</span></li> <li><span class="a-list-item">Drop tested to meet the US Military Spec 810G drop requirement</span></li> </ul>
9896 <ul class="a-unordered-list a-vertical a-spacing-none"><li><span class="a-list-item">Super protective polycarbonate and rubberised TPU bracket for even the most accident prone among us</span></li> <li><span class="a-list-item">Patented magnetic closure allows for easy folding for typing or viewing</span></li> <li><span class="a-list-item">Designed to enable Apple Pencil wireless charging, while protecting your writing device</span></li> <li><span class="a-list-item">Instant on off cover wakes and turns the device off to save battery</span></li> <li><span class="a-list-item">Drop tested to meet the US Military Spec 810G drop requirement</span></li> </ul>
9897 <ul class="a-unordered-list a-vertical a-spacing-none"><li><span class="a-list-item">Super protective polycarbonate and rubberised TPU bracket for even the most accident prone among us</span></li> <li><span class="a-list-item">Patented magnetic closure allows for easy folding for typing or viewing</span></li> <li><span class="a-list-item">Designed to enable Apple Pencil wireless charging, while protecting your writing device</span></li> <li><span class="a-list-item">Instant on off cover wakes and turns the device off to save battery</span></li> <li><span class="a-list-item">Drop tested to meet the US Military Spec 810G drop requirement</span></li> </ul>