Club Andrejevs has worked with
FK Daugava Rīga and
FK Pārdaugava. He was manager of
Virslīga club
Skonto from 2004 until 2005. He was assistant manager under then manager,
Aleksandrs Starkovs and when he moved to Russia to manage
Spartak Moscow in September 2004, Andrejevs was promoted to manager. On 11 November Skonto claimed the Virslīga title, for the 14th consecutive season, a world record. After Skonto lost 6–0 to
Macedonian club,
Rabotnički, in the 2005
Champions League First qualifying round, he resigned from the post and was replaced by English manager,
Paul Ashworth. After he was sacked as Latvia manager earlier in the year, he worked as Sporting Director at Liepājas Metalurgs and he was appointed manager in November 2007 following the resignation of
Benjaminas Zelkevičius at the end of the
2007 Virslīga season, in which the club had finished second behind
FK Ventspils. Andrejevs signed a two-year contract with the club and was released in 2008.
Latvia Andrejevs has been Latvian national manager at various levels, including Under-16, Under-18 and
Under-21. He coached a number of famous Latvian players, when he was with the U-21 team, including
Oļegs Blagonadeždins,
Imants Bleidelis,
Viktors Dobrecovs,
Aleksandrs Isakovs,
Ģirts Karlsons,
Vladimirs Koļesņičenko,
Aleksandrs Koliņko,
Igors Korabļovs,
Viktors Morozs,
Marians Pahars,
Andrejs Prohorenkovs,
Andrejs Rubins,
Genādijs Soloņicins,
Igors Stepanovs,
Māris Verpakovskis and
Dzintars Zirnis. He started working with the Latvia national team in 2001 as assistant to Aleksandrs Starkovs. He was assistant manager when Latvia qualified for and played in
Euro 2004, held in Portugal. When Starkovs moved to Russia in 2004 with Spartak Moscow he also gave up his post as Latvia manager on 17 November and Andrejevs was promoted in his place by the
Latvian Football Federation Latvia lost the first match with him in charge to
Oman, 3–2, in
Bahrain. However, Andrejevs had used the match to give fringe squad players a chance to play. Latvia won the
King's Cup in
Thailand in 2005. He resigned as Latvia manager following a 1–0 defeat on 28 March 2007 to
Liechtenstein in a
Euro 2008 qualifying match. It was only Liechtensteins second ever win in the competition Some of the players who made their international debut when he was manager of the national team were –
Deniss Romanovs,
Antons Jemeļins,
Aleksejs Višņakovs,
Oskars Kļava,
Kaspars Gorkšs,
Deniss Kačanovs and
Deniss Ivanovs. ==Honours==