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, 9666, 9667, 
    9668, 9669, 9670, 9671, 9672, 9673, 
    9674, 9675, 9676
  ) 
  AND q_product_descriptions.lang_code = 'en'

Query time 0.00054

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "38.41"
    },
    "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": 16,
      "rows_produced_per_join": 16,
      "filtered": "100.00",
      "index_condition": "((`portal`.`q_product_descriptions`.`product_id` in (9661,9662,9663,9664,9665,9666,9667,9668,9669,9670,9671,9672,9673,9674,9675,9676)) and (`portal`.`q_product_descriptions`.`lang_code` = 'en'))",
      "cost_info": {
        "read_cost": "35.21",
        "eval_cost": "3.20",
        "prefix_cost": "38.41",
        "data_read_per_join": "61K"
      },
      "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>
9666 <ul class="a-unordered-list a-vertical a-spacing-none"><li><span class="a-list-item">Detachable Bluetooth keyboard with 130 hours of battery life and LED power indicator.</span></li> <li><span class="a-list-item">Folding VersaCover doubles as a stand in portrait and landscape modes.</span></li> <li><span class="a-list-item">Ultra-thin and lightweight design at 14.1 ounces (400 grams).</span></li> <li><span class="a-list-item">Support for iPad auto-wake and sleep functionality</span></li> </ul>
9667 <ul><li>Ultra-slim, lightweight, and durable protection for your MacBook</li> <li>Micro-clip design for easy installation and removal</li> <li>Specialized coating for enhanced scratch protection</li> <li>Raised rubber feet and an unobstructed vent for better heat dissipation</li> </ul>
9668 <ul><li><span class="a-list-item">High precision molding allows for unparalleled tactile response</span></li> <li><span class="a-list-item">Made with durable, non-toxic engineering-grade thermoplastic urethane</span></li> <li><span class="a-list-item">Completely washable and reusable</span></li> <li><span class="a-list-item">Measures 0.1mm thin (one-fifth the thickness of silicone protectors)</span></li> <li><span class="a-list-item">High transparency film allows backlit keys to shine through</span></li> </ul>
9669 <ul class="a-unordered-list a-vertical a-spacing-none"><li><span class="a-list-item">Designed for the Apple New 2018 MacBook Air 13 Not compatible with other Macbook models</span></li> <li><span class="a-list-item">Ultra slim lightweight and durable protection for your MacBook Anti slip rubber feet grip all types of surfaces</span></li> <li><span class="a-list-item">Specialized coating for enhanced scratch protection Micro clip design for easy installation and removal</span></li> <li><span class="a-list-item">Rear vent cut out aids in heat dissipation</span></li> </ul>
9670 <ul class="a-unordered-list a-vertical a-spacing-none"><li><span class="a-list-item">Ultra-slim, lightweight, and durable protection for your MacBook</span></li> <li><span class="a-list-item">Anti-slip rubber feet grip all types of surfaces</span></li> <li><span class="a-list-item">Micro-clip design for easy installation and removal</span></li> <li><span class="a-list-item">Specialized coating for enhanced scratch protection</span></li> <li><span class="a-list-item">Rear vent cut-out aids in heat dissipation</span></li> </ul>
9671 <ul><li><span>Ultra-slim, lightweight, and durable protection for your MacBook.</span></li> <li><span>Micro-clip design for easy installation and removal.</span></li> <li><span>Specialized coating for enhanced scratch protection.</span></li> <li><span>Raised rubber feet offer better grip and traction.</span></li> <li><span>Unobstructed vent for improved heat dissipation</span></li> </ul>
9672 <ul><li><span class="a-list-item">High precision molding allows for unparalleled tactile response</span></li> <li><span class="a-list-item">Made with durable, non-toxic engineering-grade thermoplastic urethane</span></li> <li><span class="a-list-item">Completely washable and reusable</span></li> <li><span class="a-list-item">Measures 0.1mm thin (one-fifth the thickness of silicone protectors)</span></li> <li><span class="a-list-item">High transparency film allows backlit keys to shine through</span></li> </ul>
9673 <ul><li><span class="a-list-item">High precision molding allows for unparalleled tactile response</span></li> <li><span class="a-list-item">Made with durable, non-toxic engineering-grade thermoplastic urethane</span></li> <li><span class="a-list-item">Completely washable and reusable</span></li> <li><span class="a-list-item">Measures 0.1mm thin (one-fifth the thickness of silicone protectors)</span></li> <li><span class="a-list-item">High transparency film allows backlit keys to shine through</span></li> </ul>
9674 <ul class="a-unordered-list a-vertical a-spacing-none"><li><span class="a-list-item">Designed for the Apple New 2018 MacBook Air 13 Not compatible with other Macbook models</span></li> <li><span class="a-list-item">Ultra slim lightweight and durable protection for your MacBook Anti slip rubber feet grip all types of surfaces</span></li> <li><span class="a-list-item">Specialized coating for enhanced scratch protection Micro clip design for easy installation and removal</span></li> <li><span class="a-list-item">Rear vent cut out aids in heat dissipation</span></li> </ul>
9675 <ul class="a-unordered-list a-vertical a-spacing-none"><li><span class="a-list-item">360-degree protection with touch-sensitive front cover</span></li> <li><span class="a-list-item">Magnetic clasp keeps cover closed when not in use</span></li> <li><span class="a-list-item">Offers military-grade drop protection (MIL-STD0810G, SGS-certified)</span></li> <li><span class="a-list-item">Convenient folding stand design for watching videos on your iPhone</span></li> <li><span class="a-list-item">Wireless-charging compatible</span></li> </ul>
9676 <ul class="a-unordered-list a-vertical a-spacing-none"><li><span class="a-list-item">360-degree protection with touch-sensitive front cover</span></li> <li><span class="a-list-item">Magnetic clasp keeps cover closed when not in use</span></li> <li><span class="a-list-item">Offers military-grade drop protection (MIL-STD0810G, SGS-certified)</span></li> <li><span class="a-list-item">Convenient folding stand design for watching videos on your iPhone</span></li> <li><span class="a-list-item">Wireless-charging compatible</span></li> </ul>