Persistent Systems Interview Question

Mainly data structures which is better and which ds to use when. Sql queries, sorting, different type of sorting , some logical programs.