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 (
    332, 333, 334, 335, 336, 337, 338, 339, 
    340, 341, 342, 343, 344, 345, 346, 347, 
    348, 349, 350, 351, 352, 354, 355, 356, 
    357, 358, 359, 360, 361, 362
  ) 
  AND q_product_descriptions.lang_code = 'en'

Query time 0.00073

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 (332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,354,355,356,357,358,359,360,361,362)) 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
332
333
334
335 <p>Fragrance Direct presents 212 Men by Carolina Herrera this is a contemporary new scent for men. This fragrance opens with fresh notes of green apple, spices and grapefruit. The fragrance the leads into heart notes of ginger, sage and violet accords. This aftershave then comes to a finish with base notes of musk, cedar, incense and sandalwood. A confident, masculine scent, Carolina Herrera 212 Men is perfect for young, modern men.</p>
336 <p>Fragrance Direct presents 212 Men by Carolina Herrera this is a contemporary new scent for men. This fragrance opens with fresh notes of green apple, spices and grapefruit. The fragrance the leads into heart notes of ginger, sage and violet accords. This aftershave then comes to a finish with base notes of musk, cedar, incense and sandalwood. A confident, masculine scent, Carolina Herrera 212 Men is perfect for young, modern men.</p>
337 <p>212 NYC PILLS flacons were designed to attract and inspire a younger audience and offer them the existing compositions in attractive packaging that they can take with them in a purse or when travelling. The design of PILLS bottles follow the form of previous editions and is created in the form of a capsule consisting of a pearl-colored body in womens editions and metallic black in mens editions, with caps in different colors. The impulsive and addictive energy, and the dynamic and unique style of New York were conveyed with the packaging and campaign by reflecting the collage style of Quentin Jones. The fragrant cocktails are here to attract attention, to intrigue, to provide a dose of elegance and to seduce.</p>
338 <p>212 NYC PILLS flacons were designed to attract and inspire a younger audience and offer them the existing compositions in attractive packaging that they can take with them in a purse or when travelling. The design of PILLS bottles follow the form of previous editions and is created in the form of a capsule consisting of a pearl-colored body in womens editions and metallic black in mens editions, with caps in different colors. The impulsive and addictive energy, and the dynamic and unique style of New York were conveyed with the packaging and campaign by reflecting the collage style of Quentin Jones. The fragrant cocktails are here to attract attention, to intrigue, to provide a dose of elegance and to seduce.</p>
339 <p>212 Sexy Men by Carolina Herrera is a Oriental Fougere fragrance for men. 212 Sexy Men was launched in 2006. 212 Sexy Men was created by Alberto Morillas and Rosendo Mateu. Top notes are mandarin orange, bergamot and green notes; middle notes are cardamom, flowers and pepper; base notes are vanilla, sandalwood, guaiac wood, musk and amber.</p>
340 <p>212 Sexy Men by Carolina Herrera is a Oriental Fougere fragrance for men. 212 Sexy Men was launched in 2006. 212 Sexy Men was created by Alberto Morillas and Rosendo Mateu. Top notes are mandarin orange, bergamot and green notes; middle notes are cardamom, flowers and pepper; base notes are vanilla, sandalwood, guaiac wood, musk and amber.</p>
341 <p>Fragrance Direct is pleased to present the 212 range from Carolina Herrera. This irresistible scent for women is the perfect feminine fragrance for either day or night. The perfume opens with fresh notes of pink pepper, mandarin and bergamot. It then moves into a sweet heart of cotton candy and gardenia. Finally the composition finishes with notes of vanilla, sandalwood and soft musk. </p><p>Complete with a sleek pink bottle, Carolina Herrera 212 Sexy Eau de Parfum Spray is a delicious fragrance for women with a 2 in 1 dispenser to provide just the right amount of fragrance for both daytime and evening wear.</p>
342 <p>The 212 Summer Limited Edition by Carolina Herrera for Men Eau de Toilette will boost your confidence this summer. Welcome, the summer season with this mesmerizing Eau de Toilette that will deliver a fresh and soothing aura that will cling onto you for hours. It is inspired by colors of sunset and impart the youthful, fresh and luxurious spirit of summer</p>
343 <p>212 VIP by Carolina Herrera is one of the most famous Carolina Herrera perfumes for men. It comes in a 100ml EDT quantity in a stylishly designed bottle.The 212 VIP Men by Carolina Herrera for Men is designed for men who has a fun, charismatic, and stylish personality.</p>
344 <p>212 VIP by Carolina Herrera is one of the most famous Carolina Herrera perfumes for men. It comes in a 100ml EDT quantity in a stylishly designed bottle.The 212 VIP Men by Carolina Herrera for Men is designed for men who has a fun, charismatic, and stylish personality.</p>
345 <p>212 VIP by Carolina Herrera is one of the most famous Carolina Herrera perfumes for men. It comes in a 100ml EDT quantity in a stylishly designed bottle.The 212 VIP Men by Carolina Herrera for Men is designed for men who has a fun, charismatic, and stylish personality.</p>
346 <p>The select and sensual 212 VIP Eau de Parfum by Carolina Herrera is designed for the modern woman: the life of the party, the socialite and the eternally stylish. Its bold and vibrant personality is heightened with citrus accords that evolve into a musky floral heart, before simmering to a warm vanilla trail that lasts all night long. Reinterpreting freedom and optimism into a delightful sensory experience, the alluring fragrance has a sheer magnetic appeal thats hard to ignore.</p>
347 <p>Encapsulated in a new energetic limited edition, 212 VIP Men Party Fever, perfume for men, is a vibrant scent that lifts the party to new limits. This fresh scent opens with a spicy energy, then mellows with a herbaceous cannabis accord in the heart, giving the fragrance an edge of risk. The base features the seductively masculine combination of Cedarwood and Musk.</p>
348 <p>Encapsulated in a new energetic limited edition, 212 VIP Men Party Fever, perfume for men, is a vibrant scent that lifts the party to new limits. This fresh scent opens with a spicy energy, then mellows with a herbaceous cannabis accord in the heart, giving the fragrance an edge of risk. The base features the seductively masculine combination of Cedarwood and Musk.</p>
349 <p>212 NYC PILLS flacons were designed to attract and inspire a younger audience and offer them the existing compositions in attractive packaging that they can take with them in a purse or when travelling. The design of PILLS bottles follow the form of previous editions and is created in the form of a capsule consisting of a pearl-colored body in womens editions and metallic black in mens editions, with caps in different colors. The impulsive and addictive energy, and the dynamic and unique style of New York were conveyed with the packaging and campaign by reflecting the collage style of Quentin Jones. The fragrant cocktails are here to attract attention, to intrigue, to provide a dose of elegance and to seduce.</p>
350 <p>Carolina Herrera's CH Men is a sensorial journey in itself. The warmth and masculinity of wood and the addictive but smooth touch of leather merge with a hint of saffron to give a new dimension of sophistication.</p>
351 <p>The CH Carolina Herrera fragrance comes in a vibrant red colour, which speaks of the woman who wears it. Like a fine piece of jewellery, the bottle is immediately eye catching and captivating. With top notes of bergamot, grapefruit and lemons, followed by rose, jasmine and orange blossom, it invigorates, while the final notes of cedar wood, linger with praline and patchouli. A hint of soft leather and woody undertones combined with musk result in an unmistakably feminine aroma.</p>
352 <p>The CH Carolina Herrera fragrance comes in a vibrant red colour, which speaks of the woman who wears it. Like a fine piece of jewellery, the bottle is immediately eye catching and captivating. With top notes of bergamot, grapefruit and lemons, followed by rose, jasmine and orange blossom, it invigorates, while the final notes of cedar wood, linger with praline and patchouli. A hint of soft leather and woody undertones combined with musk result in an unmistakably feminine aroma.</p>
354 <p>Carolina Herrera's Légère Parfum represents the essence of a modern, chic woman. The fragrance is lighter and smoother than its original counterpart, featuring notes of tonka, aromatic wood and soft Dulce de Leche. It's presented in the signature stiletto shoe bottle, coloured to a stunning shade of blue that slowly fades to a clear base, complemented by a golden heel.</p>
355 <p>Carolina Herrera's Légère Parfum represents the essence of a modern, chic woman. The fragrance is lighter and smoother than its original counterpart, featuring notes of tonka, aromatic wood and soft Dulce de Leche. It's presented in the signature stiletto shoe bottle, coloured to a stunning shade of blue that slowly fades to a clear base, complemented by a golden heel.</p>
356 <p>Carolina Herrera's Légère Parfum represents the essence of a modern, chic woman. The fragrance is lighter and smoother than its original counterpart, featuring notes of tonka, aromatic wood and soft Dulce de Leche. It's presented in the signature stiletto shoe bottle, coloured to a stunning shade of blue that slowly fades to a clear base, complemented by a golden heel.</p>
357 <p>Carolina Herrera's CH LEAU captures the vibrancy and happiness of a summer holiday. The multi-faceted aroma features a mesmerising blend of Red Tea, Blood Orange, before migrating to a woody base made of enticing vetiver, the finest cedar wood, and the purest patchouli. The breezy fragrance is a soft diffusion of uplifting chords that simmer to a light, romantic trail lasting all day long.</p>
358 <p>Carolina Herrera presents new versions of the original fragrances CH from 2007 and CH Men from 2009. CH Carolina Herrera gets a new packaging in bright red and golden details, while the CH Men Prive is a brand new composition. With sensuality and an evocative allure, the worlds of CH Men Privé and CH Carolina Herrera form an unmistakable duo. Classic and timeless, yet modern and intoxicating at the same time, they are two fragrances which define elegance, luxury and passion. A seduction on every level.</p>
359 <p>Sports editions by a majority of designers' perfume collection join another edition for men - Carolina Herrera CH MEN SPORT, announced as fresh, aromatic and green, with refreshing aquatic notes in a heart and woody, very sensual notes in a base of the perfume. The sports edition was introduced three years after CH Men, characterized by 'unity of the opposites', depicted with an oriental-spicy composition refreshed with citruses and flowers. The man who chooses this fragrance has a characteristic personality. He is elegant and caring in all aspects of life. He lives his life to the maximum and enjoys each moment. He views sports as a part of his lifestyle; he is very masculine and has young spirit. Top notes of the new perfume for men CH Men Sport refresh the composition with fresh and luminous drops of bergamot and grapefruit combined with sage. Notes of the heart are refreshed with sea notes mixed with spices and aromatic accords Sichuan pepper and juniper berries. A base is sensual and cuddly, created of sandalwood, oak moss and vetiver.</p>
360 <p>Sports editions by a majority of designers' perfume collection join another edition for men - Carolina Herrera CH MEN SPORT, announced as fresh, aromatic and green, with refreshing aquatic notes in a heart and woody, very sensual notes in a base of the perfume. The sports edition was introduced three years after CH Men, characterized by 'unity of the opposites', depicted with an oriental-spicy composition refreshed with citruses and flowers. The man who chooses this fragrance has a characteristic personality. He is elegant and caring in all aspects of life. He lives his life to the maximum and enjoys each moment. He views sports as a part of his lifestyle; he is very masculine and has young spirit. Top notes of the new perfume for men CH Men Sport refresh the composition with fresh and luminous drops of bergamot and grapefruit combined with sage. Notes of the heart are refreshed with sea notes mixed with spices and aromatic accords Sichuan pepper and juniper berries. A base is sensual and cuddly, created of sandalwood, oak moss and vetiver.</p>
361 <p>An energetic, sensual and very masculine fragrance Chic for men unifies elegant and eternally masculine woody notes and spicy freshness. This sophisticated fragrance is made for the intelligent, emotional and elegant man, who posesses great taste and likes luxury. The top note has the freshness of water and juices, brought by citruses: Sicilian bergamot, ice-cold lemon, Italian mandarin and fresh melon. The middle is warm and gently spicy with the notes of cinnamon and black pepper. Eastern mysteriousness and sensuality are felt in the base notes: sandalwood, cedar, ambergris, musk and Tonka bean.</p>
362 <p>Carolina Herrera's Men Prive is a smoky, rich, warm and luxurious fragrance radiates seduction on every level. Presented in a polished black lacquered bottle, the sleek look of men privé was inspired by a handsome and classic flask.</p>