Mysql
Mysql
mysql> INSERT INTO ORDERS VALUES (1004, 'WHEAT', 28, 65, ' 2023-12-
25 ') ;
Query OK, 1 row affected, 1 warning (0.01 sec)
mysql> INSERT INTO ORDERS VALUES (1007, 'WHEAT', 25, 60, 2024-04-
30*);
ERROR 1064 (42000): You have an error in your SQL syntax; check the
manual that corresponds to your MySQL server version for the right
syntax to use near ')' at line 1
mysql> INSERT INTO ORDERS VALUES (1007, 'WHEAT', 25, 60, '2024-04-
30');
Query OK, 1 row affected (0.01 sec)
mysql> SELECT ITEM, QTY FROM ORDERS WHERE ORDATE BETWEEN '2023-11-
01' AND '2023-12-31';
+-------+------+
| ITEM | QTY |
+-------+------+
| RICE | 25 |
| WHEAT | 28 |
+-------+------+
2 rows in set (0.00 sec)
mysql> SELECT ORDNO, ORDATE FROM ORDERS WHERE ITEM = 'WHEAT' AND
RATE >= 60;
ERROR 1054 (42S22): Unknown column 'ORDNO' in 'field list'
mysql> SELECT ORRNO, ORDATE FROM ORDERS WHERE ITEM = 'WHEAT' AND
RATE >= 60;
+-------+------------+
| ORRNO | ORDATE |
+-------+------------+
| 1004 | 2023-12-25 |
| 1007 | 2024-04-30 |
+-------+------------+
2 rows in set (0.00 sec)
mysql> save
-> save;
ERROR 1064 (42000): You have an error in your SQL syntax; check the
manual that corresponds to your MySQL server version for the right
syntax to use near 'save
save' at line 1
mysql>