这些查询如何相互结合

时间:2019-05-29 11:59:28

标签: sqlite

我希望这两个查询创建一个表。我无法将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';

0 个答案:

没有答案