SQL is the standard language for processing relational databases. This paper introduces the eight original relational algebra and their corresponding SQL, then depicts how to write complex SQL statements by tupleoriented relational calculus. Finally, some examples are given to demonstrate its application.