B Harmonic Minor Piano Scale
The key of B minor and D major are related and share the same key signature of 2 sharps, F sharp and C sharp. B minor is known as the relative minor of D major; D major is known as the relative major of B minor.
B is the 6th note of the D major scale. The 6th degree of any major scale is always the note which represents the related minor key.
As the keys of D major and B minor are related to each other, they both share the same key signature of 2 sharps. Therefore the scale of B minor, in its most basic, natural form, will share exactly the same notes as D major but rather than beginning and ending on D (D major) will begin and end on B (B minor).
D major: D E F sharp G A B C sharp D
B Natural minor: B C sharp D E F sharp G A B
To change the natural B minor scale into the harmonic B minor scale
Take the notes from the natural B minor scale and raise the 7th degree, A, by one semitone or half step to A sharp. There will still be 2 sharps, F sharp and C sharp, in the key signature but now A sharp will appear as an accidental on the music staff.
B Harmonic Minor Scale:
B C sharp D E F sharp G A sharp B