give notice vs warn in advance

give notice

verb
  • To announce one's intent to leave a job; to inform an employer that one is leaving. 

  • Used other than figuratively or idiomatically: see give, notice. 

warn in advance

How often have the words give notice and warn in advance occurred in a corpus of books? (source: Google Ngram Viewer )