What is the difference between "Catechism" and "Canon Law" in Catholicism? What is the difference between "Catechism" and "Canon Law" in Catholicism?

I have the Catholic Catechism (CCC).  Yet I also see the Canon law code quoted from...what's the difference?  are they two separate books?
Yes, the Catechism and Canon Law are two separate things

The Catechism is a teaching tool for the bishops and various catechists to instruct the faithful.  (Why do we receive the Eucharist?  What makes Easter so special?)  The first Catechism worthy of the name came out of the Council of Trent (1545 - 1563).  The more recent one, linked to on-line with some frequency here, came out in the early 1980's though it was revised in the 1990's.  You could look up The Baltimore Catechism for an example of a common teaching tool in the US that is pre-Vatican II. 


  CCC 5 "Catechesis is an education in the faith of children, young people and adults which includes especially the teaching of Christian doctrine imparted, generally speaking, in an organic and systematic way, with a view to initiating the hearers into the fullness of Christian life."  


http://www.vatican.va/archive/ENG0015/__P3.HTM

The Canon Law is a rule book, a code of laws that are within the jurisdiction of the Church, that covers (for example) who may or may not marry a couple; what constitutes a valid marriage; what to do if there is a jurisdictional dispute between two different diocese; basic rules for building a church.  


  During the course of the centuries the Catholic Church has been
  accustomed to reform and renew the laws of canonical discipline so
  that in constant fidelity to its divine founder, they may be better
  adapted to the saving mission entrusted to it. Prompted by this same
  purpose and fulfilling at last the expectations of the whole Catholic
  world, I order today, January 25, 1983, the promulgation of the
  revised Code of Canon Law. In so doing, my thoughts go back to the
  same day of the year 1959 when my predecessor of happy memory, John
  XXIII, announced for the first time his decision to reform the
  existing corpus of canonical legislation which had been promulgated on
  the feast of Pentecost in the year 1917. (From APOSTOLIC CONSTITUTION SACRAE DISCIPLINAE LEGES)