i use mysql workbench, in my DB i have a table called invoice with tho fields number and date. i want to do something like this:
primary key (number, date.year). or unique(number, date.year)
i tried both but i did not succeed, why? is it not allowed? someboby can help me?