How do I create a sequence that is dependent on another column?
For example:
I have a table CAR
MAKE | CAR_NO | COLOR | MODEL
_____________________________
Honda 1 S Civic
Honda 2 B Civic
Honda 3 W Civic
Toyota 1 S Camry
Toyota 2 B Camry
Mazda 1 W 3
So CAR_NO
is the sequence and it is dependent on the column MAKE
.
How can this be done?