select OD.orderID, C.CustomerName, O.OrderDate,
round(sum(P.Price*OD.Quantity)) as TotalPrice
inner join OrderDetails as OD on OD.OrderID=O.OrderID
inner join Products as P on OD.ProductID=P.
我要到一個特定的行復制從表溫度,規則和時間表統計數據表格。 在溫度表格,我想是18.6 mysql> SELECT * FROM currenttemp ORDER BY `timestamp` DESC limit 10 ;
+---------------------+-----------------+-------------+----------+----------+
| time
表1: A B C
Test 1 This
Test1 1;4 That
Test2 7 What
Test3 6;2 Which
Test4 1;2;7 Where
表2: X Z
1 Sun
2 Mon
3 Tue
4 Wed
5 Thu
6 Fri
7 Sat
SQL: Select
t1.A,
t2.Z
fr
我試圖獲得屬於活動玩家的頭像以及電子郵件以「a」開頭的玩家的名稱。 SELECT NAME
FROM AVATAR
INNER JOIN PLAYERAVATAR ON PLAYERAVATAR.PLAYER_ID = PLAYERAVATAR.AVATAR_ID
INNER JOIN PLAYER ON PLAYER.ACTIVE = 1;
我有這個,但它不起作用。我不