It used to be that javax.sql was for the JDBC extensions that were in the Java EE and not Java SE, however, this modified as of JDBC 3.
Presently both packages are part of JDBC in Java SE, and the truth that there are two packages is now just a historical anomaly.
The two packages remain to exist because deleting one would be causing backwards compatibility problems.
Looking for SQL Tutorial? Come and join the SQL Certification course to gain more knowledge on SQL.