17 As for these four children, God gave them knowledge and skill in all learning and wisdom: and Daniel had understanding in all visions and dreams.
18 Now at the end of the days that the king had said he should bring them in, then the prince of the eunuchs brought them in before Nebuchadnezzar.
19 And the king communed with them; and among them all was found none like Daniel, Hananiah, Mishael, and Azariah: therefore stood they before the king.
20 And in all matters of wisdom and understanding, that the king enquired of them, he found them ten times better than all the magicians and astrologers that were in all his realm.
They were chosen from among others to learn the Aramaic-Babylonian language and literature of the Chaldeans so as to act as wise men and councilors at court. The special subject of study was the literature and language of the Chaldeans. Its known from the clay libraries of Nineveh and Babylon that the Chaldeans were a learned people, with great advances in grammar, mathematics, astronomy, and the sciences. We must not forget that Babylon was located on the site of Babel, and that the people of Babel inherited all the skill and wisdom of the Antediluvians, who were the inventors of musical instruments, and skilled workers in iron. (Gen. 4:20-22.)
At the end of the 3 years, he called them to a personal examination, brought not only Daniel and his 3 friends, but other youths stood before the king to examine them and Daniel and his companions were 10 times better which means they excel above all the magicians and astrologers within the realm of the king.