Is there any document or link available to understand configuration of xDB using SQL step by step?

Earlier we were using sitecore 8.2 and we configured Mongo DB for tracking. Sitecore 9.1.1 is new for us. Is there any document or link available to understand configuration of xDB using SQL step by step? & do we need to create custom processor to aggregate all the contacts & visits?