SQL is a query language used to access/retrieve from DBMS. It's also used in DBMS. That'a my understanding.