What is the difference between data mining and machine learning?

#artificialintelligence 

I will first explain what is artificial intelligence, machine learning and data mining. Then, I will answer the question. What is artificial intelligence and machine learning? Artificial intelligence is a field of research, which aims at developing software that can do some tasks that require intelligence. What is a task that requires intelligence is open to debate and can be for example to play chess, translate documents, write a novel, or choose the best route to drive from one location to another.