0

私はMySQLにビューを持っていますが、何らかの理由でMS Accessに書きたい..私はすでに必要なテーブルをインポートしています. MySQL からビュー定義をコピーして Access Query Design に書き込むと、「結合操作」でエラーが発生します。何が問題なのですか?

表示 -> qryOccupation

    select `a`.`Employee_ID` AS `Employee_ID`,`a`.`Employee_Name` AS `Employee_Name`,`a`.`Flat_No` AS `Flat_No`,`a`.`Area` AS `Area`,`a`.`Building_Name` AS `Building_Name` 
from (`tblallotment` `a` join `tblflat` `f`) 
where ((`a`.`Flat_No` = `f`.`Flat_No`) 
and (`f`.`Status` = 'A') 
and (not(`a`.`Employee_ID` in 
(select `c`.`Employee_ID` 
from (`tblallotment` `a` join `tblcancel_allotment` `c`) 
where ((`a`.`Employee_ID` = `c`.`Employee_ID`) 
and (`c`.`Date_Cancellation` = 0))))))
4

2 に答える 2

0
("SELECT [Department Name], " _
        & "FirstName & Chr(32) & LastName AS Name " _
        & "FROM Departments LEFT JOIN Employees " _
        & "ON Departments.[Department ID] = " _
        & "Employees.[Department ID] " _
        & "ORDER BY [Department Name];")
于 2012-04-18T06:58:50.303 に答える
0
select a.Employee_ID AS Employee_ID,
       a.Employee_Name AS Employee_Name,
       a.Flat_No AS Flat_No,
       a.Area AS Area,
       a.Building_Name AS Building_Name 
from   tblallotment a 
          inner join tblflat f 
            on a.Flat_No = f.Flat_No 
where  f.Status = 'A'
       and (not (a.Employee_ID in 
                (select c.Employee_ID 
                 from   tblallotment a 
                         inner join tblcancel_allotment c 
                            on a.Employee_ID = c.Employee_ID
                  where c.Date_Cancellation = 0)))
于 2012-04-18T07:00:32.263 に答える