试试这个:
SELECt (SELECT COUNT(*) AS good FROM table_good WHERe widget = 'Widget A' AND good = 'Y') AS good, (SELECt COUNT(*) AS bad FROM table_bad WHERe widget = 'Widget A' AND bad = 'Y') AS bad FROM dual
欢迎分享,转载请注明来源:内存溢出
试试这个:
SELECt (SELECT COUNT(*) AS good FROM table_good WHERe widget = 'Widget A' AND good = 'Y') AS good, (SELECt COUNT(*) AS bad FROM table_bad WHERe widget = 'Widget A' AND bad = 'Y') AS bad FROM dual
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)