How exactly SELECT query is processed internally after initial startup of Database?