What SQL is
SQL here means the statements that move a table into a database: INSERT INTO with a VALUES list, and optionally the CREATE TABLE that defines the columns.
Anyone seeding a database, moving a spreadsheet into an application, or writing a migration.
What Avro Schema is
An Avro schema describes a record: its name and its typed fields. It is the contract, not the data.
Kafka pipelines and anything in the Hadoop family.
What changes when you convert SQL to Avro Schema
Column names come from the INSERT column list, or from a CREATE TABLE if one is present. Quoted strings are unquoted, doubled quotes are collapsed, and NULL becomes an empty cell.
Types are inferred per column from the values present. Any column with a gap in it becomes a union with null, because a reader rejects a record whose non-nullable field is missing.
What carries over from SQL to Avro Schema
One property of the SQL has no home in Avro, and it is worth knowing which before you convert.
Avro has no header row. The column names are repeated as keys on every record instead, which is why the result is bigger on disk than the table it came from.
Both formats record types, so numbers, booleans and nulls survive as themselves rather than as text.