i've read some explanation about this subject, but I still don't understand,what should I do to know the interval name between two notes...Can I find the interval based on the chord?For example, there are G and B,the interval between the two notes is major 3rd because B are the third notes of G major chord..
Please help me.. 
The best way to determine intervals is using the C major scale as an archetype
So when you encounter an interval you first analyze it in relation to the C major scale
Therefore:
C - E = Three notes in the C major scale hence a third
C - G = Five notes in the C major scale hence a fifth
C - B = Seventh notes in the C major scale hence a seventh
Now you must remember these rules when you count the amount of notes that form an interval IN RELATION TO THE C MAJOR SCALE
In other words "you must consider the interval at its natural (without accidentals) state)
The 2nd is
major when there's NO semitone and
minor when there's 1 semitone
The 3rd is
major when there's NO semitone and
minor when there's 1 semitone
The 4th is always
perfectThe 5th is always
perfectBUT (
F - B = 4th augmented /
B - F = 5th diminished)
The 6th is
major when there's 1 semitone and
minor where there are 2 semitones
The 7th is
major when there's 1 semitone and
minor when there are 2 semitones
The you must also remember that intervals are read from the bottom note to the top note and when there's a sharp (#) in the upper note the interval becomes larger by 1 semitone and when there's a flat (b) in the upper note the interval becomes smaller by 1 semitone. Inversely when there's a sharp in the lower note the interval becomes smaller by 1 semitone and when there's a flat in the lower note the interval becomes larger by 1 semitone.
The
quality of the interval starts from either (minor/major) or (perfect) and follows the following scheme:
double augmented
augmented]
MAJOR
minor
diminished
double diminished
OR
double augmented
augmented]
major
PERFECT
minor
diminished
double diminished
So let's say you have this interval: G# - Eb
First you consider the interval in relation to the C major scale
G - A - B - C - D - E
That's 6 notes hence it is a
sixthIs it major or minor?
How many semitones are in a G - E on the major scale?
The only semitone you have in G - E is
B-C hence it's 1 semitone hence it's
majorNow you add the accidentals
You have a flat in the upper note hence the interval becomes smaller by 1 semitone
Hence from a 6th major it becomes a 6th minor
The you have a sharp in the lower note hence the interval becomes smaller by 1 semitone
Hence from a 6th minor it becomes a 6th diminished
Hence the interval G# - Eb is a 6th Diminished
C - Eb
C - D - E = Third
No semitone = Major
Flat in the upper note = Smaller by one semitone
Major -- > minor
C - Eb is a 3rd minor
F# - B#
F - B = 4th augmented
Sharp in the upper note = larger by 1 semitone
4th augmented -- > 4th + augmented
Flat in the lower note = Smaller by 1 semitone
4th + augmented -- > 4th augmented
Chords are composed by intervals in this way:
Major Chord = Major 3rd + Perfect 5th
Minor Chord = Minor 3rd + Perfect 5th
Diminished Chord = minor 3rd + Diminished 5th
Augmented Chord = Major 3rd + Augmented 5th
Seventh Chord = Major 3rd + Perfect 5th + minor 7th
Major Seventh Chord = Major 3rd - Perfect 5th - major 7th
Minor Seventh = minor 3rd - Perfect 5th - minor 7th
Sixth Chord = Major 3rd + Perfect 5th + Major 6th
Suspended Chord = Perfect 4th + Perfect 5th
Hope this helps