[MySQL Query] Itemshop bought view from SQL table

Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

kukubeni

Banned
Banned
Joined
Dec 27, 2019
Messages
18
Credits
17
This command lists all purchased items for a 30-day period.

SELECT is_log.account_id,item_proto.locale_name, is_log.preis FROM `account`.`is_log` INNER JOIN `player`.`item_proto` ON `is_log`.`vnum` = `item_proto`.`vnum` WHERE TIMESTAMPDIFF(DAY, `zeitpunkt`,NOW()) <= 30;


Example result:

+------------+--------------+-------+
| account_id | locale_name | preis |
+------------+--------------+-------+
| 2408 | Knuud | 2000 |
+------------+--------------+-------+
 
Back
Top