SQL Create Table that Auto-Increments one column based on another column
问题 I'm still a beginner with SQL so please bear with me. I need to create a table that stores information from a form. Each form has an ID associated with it that has two parts. The first part is MMYY and the second part is a 5 digit auto-incrementing integer. An example ID is 0714-00001. And every time the month changes, the 5 digit numbering should start over. So, I want the columns to look something like this: Order_No. | Order_ID ---------------------------- 0714 | 0001 0714 | 0002 0714 |