I have a simple query which displays items from inventory with their latest annual test date. I want to create another unique reference in my results to use as a certificate number. The number should be a combination of the item+month+year from the test date. What is the easiest way to accomplish this?My query and my desired results are below:select item, test_date from inventory where cat = 'TELE' and itemised_status > 15
item test_date cert_no-------------------- ----------------------- -----------------05MC0002 2014-06-10 00:00:00 05MC0002-06-201406MT0001 2014-05-13 09:02:00 06MT0001-05-201406MT0002 2014-05-13 09:03:00 06MT0002-05-201406MT0003 2014-05-13 09:03:00 06MT0003-05-201406MT0004 2014-05-09 14:12:00 06MT0004-05-2014
Many thanksMartyn