Hey, i need some advice for my database. I have a few different types of tasks i need to manage. These are the tables: Task ID, StartDate, Status, .... CreateTask TaskID, x, x, x, x PostTask TaskID, x, x Now PostTask and CreateTask have different fields so i can't put it into one table. But i need to connect them somehow because when the worker.php gets a new task from the database he should get the task with the soonest StartDate. So a CreateTask or a PostTask. So i use the Task table to select all tasks but its giving me some troubles. Because when i want to insert a new task i have to do this: lock tables task write, createtask write select count(*) from task (the new ID) insert into task insert into CreateTask unlock tables Thats a lot more work than just a single insert and the lock tables is giving me some troubles. So is there maybe better solution without the Task table?