I have a SQL query question. My current table look like this :
  +--------+------+-----+-----+------+
  | hostid | itemname   |  itemvalue |
  +--------+------+-----+-----+------+
  |   A    |      1     |      10    |
  +--------+------+-----+-----+------+
  |   B    |      2     |      3     |
  +--------+------+-----+-----+------+
How would I write a query so that I can get an output like this ?
  +--------+------+-----+-----+--------+------+-----+----------+
  | itemname_A    | itemvalue_A   |  itemname_B  |  itemvalue_B|
  +--------+------+-----+-----+--------+------+-----+----------+
  |        1      |      10       |       2      |     3       |
  +--------+------+-----+-----+--------+------+-----+----------+
 
    