The D major scale has two accidentals, commonly called Sharps (#) or Flats (b). They are found on the 3rd and 7th degree of this scale. What that means is when you have the natural notes of the D scale D E F G A B and C, the F and C are both sharp, or a half step up.
To get a major scale from D, You must follow the pattern of intervals Whole, Whole, Half, Whole, Whole, Whole, Half. (WWHWWWH). Whole steps mean two frets and half steps mean one fret.
How to play a D Major Scale in the 5th position of the A string
- Play the D that is on the 5th fret of the A string.
- Move up the A string a whole step, or 2 frets to the E on the 7th fret of the A string.
- Next play the F# that is found on the 4th fret of the D string.
- Move up a half step to G on the 5th fret of the D string
- The next note is the A on the 7th fret of the D string.
- Now play the 4th fret of the G string, which is B
- Move up a whole step to the 6th fret of the G string to play C.
- Finally, we will finish with the octave of our first D, the D found on the 7th fret of the G string.
Check the video also at this link.