1532 最近三笔订单
SQL架构
Create table If Not Exists Customers_1532 (customer_id int, name varchar(10));
Create table If Not Exists Orders_1532 (order_id int, order_date date, customer_id int, cost int);
Truncate table Customers_1532;
insert into Customers_1532 (customer_id, name) values ('1', 'Winston');
insert into Customers_1532 (customer_id, name) values ('2', 'Jonathan');
insert into Customers_1532 (customer_id, name) values ('3', 'Annabelle');
insert into Customers_1532 (customer_id, name) values ('4', 'Marwan');
insert into Customers_1532 (customer_id, name) values ('5', 'Khaled');
Truncate table Orders_1532;
insert into Orders_1532 (order_id, order_date, customer_id, cost) values ('1', '2020-07-31', '1', '30');
insert into Orders_1532 (order_id, order_date, customer_id, cost) values ('2', '2020-7-30',