I'm just getting into database design and structures. I'm facing a problem now. Let's say I want to have a ticket database, there are three types of tickets:
Ticket #1
---------------------------
| id creation_time .... |
---------------------------
Ticket #2
------------------------------------------------
| id creation_time auto_closure_time .... |
------------------------------------------------
Ticket #3
-------------------------
| id permanent .... |
-------------------------
Data types:
creation_time, auto_closure_time - datetime
permanent - boolean
Ticket #3 Does not have creation_time for specific reasons
Four dots (....) means some other columns which have all tickets
My question is: Should I separate these tables or merge them into one table which would look like this?
-----------------------------------------------------------
| id creation_time auto_closure_time permanent |
| 1 xyz NULL 0 |
| 2 xyz xyz 0 |
| 3 NULL NULL 1 |
-----------------------------------------------------------
ID 1 represents Ticket #1 and so on..
What could be the benefits of separated tables and the merged one?
Thanks for all answers, appreciate your time.