我希望这两个查询创建一个表。我无法将date_recieved
添加到第一个查询中。我希望他们在同一张桌子上。
非常感谢您的帮助。
select CustomerFIRSTNAME, CustomerLASTNAME, VintageWatch.WATCHID, NumberUsed, PRICE, BRANDNAME, (PRICE*(NumberUsed )) as CostPrice
from partsused
inner join customers on partsused.NumberUsed = CUSTID
inner join VintageWatch on VintageWatch.WATCHID = SERVICETICKETID;
.print ""
.print "MONTH REPORT"
.print ""
select DATE_RECIEVED as FEBRUARY
from serviceticket
where DATE_RECIEVED like '14/02/19'
or DATE_RECIEVED > '14/02/19';