Endava Interview Question

How to query SQL database?