The document contains SQL commands used to create databases, tables, insert data, and run queries in MySQL. Three tables (VENTAS, PRODUCTOS, REGION) were created to store sales, product, and region data. Data was inserted and queries were run to select, group, and order data from the tables. An error occurred in one query due to an invalid column name.
The document contains SQL commands used to create databases, tables, insert data, and run queries in MySQL. Three tables (VENTAS, PRODUCTOS, REGION) were created to store sales, product, and region data. Data was inserted and queries were run to select, group, and order data from the tables. An error occurred in one query due to an invalid column name.
The document contains SQL commands used to create databases, tables, insert data, and run queries in MySQL. Three tables (VENTAS, PRODUCTOS, REGION) were created to store sales, product, and region data. Data was inserted and queries were run to select, group, and order data from the tables. An error occurred in one query due to an invalid column name.
mysql> SELECT ALL IDVENDEDOR,ARTICULOSVENDIDOS,GANANCIA FROM VENTAS ORDER BY
GANANCIA; ERROR 1054 (42S22): Unknown column 'GANANCIA' in 'field list' mysql> SELECT ALL IDVENDEDOR,ARTICULOSVENDIDOS,GANANCIA FROM VENTAS ORDER BY GANANCIA;