我有两个查询,我只想让它们成为一个查询。如果有人知道帮助我。感谢任何帮助。这是第一个查询:
CREATE TABLE IF NOT EXISTS a6 AS SELECT
u.id,n.rus,u.partiya,s.tip,s.son,s.son_d,s.son_jami,b.code FROM umumiy
u LEFT` JOIN nomi n on u.id_nomi=n.id LEFT JOIN soni s on u.id=s.u_id
LEFT JOIN` barcode b on u.id=b.u_id WHERE u.okk=0;
我的第二个问题是:
SELECT
(son_jami - (son_d * son)) as 'dona'
from asosiy
有什么想法吗?