Please make sure you read, understand, and follow Rules and Terms of Service.
0 Members and 1 Guest are viewing this topic.
SELECT DISTINCT substring(idnumber,1,LENGTH(idnumber)-4) FROM tablename
// commenting code... nah!!! if it was hard to write, it should be hard to read :Pecho implode('', array_map('chr', explode(',','87,104,105,122,122,107,105,100')));
Your absolutly right but...The database is a Moodle Installation that will be transfered to a bigger solution. The id number is just a tag to make it easier to import. Plus the THS is the initials of the company and MATHS would be the department and the 001 is the unique id and i know there will never be 999 maths courses before we transfer.
Also i did say it was a moodle installation which means that all input relys on teachers so getting them to populate a vle with 999 letters is hard enough never mind 999 courses.