SQL中两个表之间的比较

时间:2018-07-12 07:08:40

标签: mysql sql comparison sql-query-store

我想知道快照表中不存在哪种“类型”,但是总是会出现以下错误:-

[X,Y] = perfcurve(labels,scores,posclass);
plot(X,Y);

有人可以帮我吗?

2 个答案:

答案 0 :(得分:1)

以下是有效查询的示例:

SELECT a.type 
  FROM snapshot a
  LEFT 
  JOIN register b
    ON b.type = a.type
 WHERE a.date = CURDATE()
   AND b.type IS NULL

答案 1 :(得分:0)

In Standard SQL Syntax:

Select  * FROM 
     (Select type from snapshot where date = CURDATE())AS A 
    LEFT JOIN
     (Select type from register) AS B
ON A.type=B.type
WHERE B.type IS NULL