A
Size: a a a
A
У
A
У
A
У
我
SELECT d1.NAME, d2.NAME
FROM DEPARTMENT d1 INNER JOIN DEPARTMENT d2 ON f1.FUND - f2.FUND > 10000
RIGHT JOIN FACULTY f1 ON f1.FACPK = d1.FACFK
RIGHT JOIN FACULTY f2 ON f2.FACPK = d2.FACFK
A
SELECT d1.NAME, d2.NAME
FROM DEPARTMENT d1 INNER JOIN DEPARTMENT d2 ON f1.FUND - f2.FUND > 10000
RIGHT JOIN FACULTY f1 ON f1.FACPK = d1.FACFK
RIGHT JOIN FACULTY f2 ON f2.FACPK = d2.FACFK
R
With tabl1 as (
Select d.facfk,f.facpk,d.name,f.fund from department d, faculty f where f.facpk = d.facfk
),tabl2 as (
Select d.facfk,f.facpk,d.name,f.fund from department d, faculty f where f.facpk = d.facfk
)
Select * from tabl1 d1, tabl2 d2 where d1.fund - d2.fund>10000
我
With tabl1 as (
Select d.facfk,f.facpk,d.name,f.fund from department d, faculty f where f.facpk = d.facfk
),tabl2 as (
Select d.facfk,f.facpk,d.name,f.fund from department d, faculty f where f.facpk = d.facfk
)
Select * from tabl1 d1, tabl2 d2 where d1.fund - d2.fund>10000