What SQL is used for
Creating tables, adding and updating records, joining related data (orders with their customers, bookings with their drivers) and producing reports with totals and averages. Most business applications and reporting tools use SQL behind the scenes.
Why it is useful beyond developers
Analysts and operations teams use SQL to answer questions directly from data, and business intelligence tools generate SQL from drag-and-drop reports. Read-only access to a reporting copy of the database keeps live systems safe.
Questions, answered
The basics, selecting and filtering data, can be learned in days. Complex reporting and performance tuning take longer.
An attack where unsafe input is run as part of a query. Parameterised queries prevent it.