Data Mining vs Machine Learning vs Artificial Intelligence vs Data Science
There are no clear boundaries among these terms
Machine learning
More like another name of "statistics", but in computer science.
Data Mining
Data Mining == Knowledge Discovery in Databases(KDD)
This may no longer be the accurate definition of data mining, since data can be stored in a data lake(like on HDFS of a Hadoop cluster) but not necessarily in a database.
The scope, summarized in wikipedia:
it involves database and data management aspects, data pre-processing, model and inference considerations, interestingness metrics, complexity considerations, post-processing of discovered structures, visualization, and online updating.
Artificial Intelligence
A much broader term, machine learning is a big part of it.