The Basic Principles of Query Optimization in Relational Database Management Systems