Poll of top songwriters ranks Rolling Stones' '(I Can't Get No) Satisfaction' at #2.

A group of legendary songwriters has named the Beatles ' "In My Life" the greatest song ever written.

British music magazine Mojo compiled a list of the top 10 songs of all time, culling results from individual top-10 lists submitted by 20 famous songwriters, including the Beatles' Paul McCartney , Brian Wilson of the Beach Boys , and lyricists Jerry Leiber and Hal David , the Associated Press reported.

Besides "In My Life" (RealAudio excerpt), which was written by McCartney and John Lennon and appeared on the Beatles' Rubber Soul (1965), the group's "Here, There and Everywhere" also made the list. The song, listed at #4, was penned by Lennon and McCartney for the 1966 album Revolver.

Ranked #2 was "(I Can't Get No) Satisfaction" (RealAudio excerpt), written by Mick Jagger and Keith Richards of the Rolling Stones . Since appearing on the group's Out of Our Heads (1965), the song has been covered by a number of artists, including Britney Spears on her latest album, Oops! ... I Did It Again.

"Over the Rainbow," written by Harold Arlen and E.Y. Harburg and made famous by Judy Garland 's performance in the 1939 movie "The Wizard of Oz," came in at #3.

Smokey Robinson & the Miracles ' "Tracks of My Tears" (RealAudio excerpt), by Warren Moore , William "Smokey" Robinson and Marv Tarplin , came in at #5.