The two most commonly known types are arguably:
solicitors - they traditionally act as general legal advisers whilst also carrying out court work in the lower courts; and
advocates - they have special training in advocacy and specialise in representing clients in the highest courts (Court of Session for civil cases, High Court of Justiciary for criminal cases and UK Supreme Court for certain appeals), although they can represent people in any Scottish court.
There are many...