Hi,
I have a table containing
WeekNbr
UserID
TagName
CallType
Transfer
TransferCount
The ‘CallType’ is the FROM and the ‘Transfer’ is TO
My aim is to create a Query/Table which would show:
WeekNbr
UserID
‘FROM’
‘TO’
I was able to create two queries for each of FROM and TO, but I would rather t have one Query/Table with the two columns, is that possible?
This is my FROM query:
and this is my TO Query
Not sure if I would be able to this in a UNION Query.
Any help and All the help is very much appreciated.
Thanks,
I have a table containing
WeekNbr
UserID
TagName
CallType
Transfer
TransferCount
The ‘CallType’ is the FROM and the ‘Transfer’ is TO
My aim is to create a Query/Table which would show:
WeekNbr
UserID
‘FROM’
‘TO’
I was able to create two queries for each of FROM and TO, but I would rather t have one Query/Table with the two columns, is that possible?
This is my FROM query:
Code:
SELECT
Tbl_Transfers.WeekNbr,
Tbl_Transfers.UserID,
Tbl_EmployeeAll.EmployeeID,
Tbl_EmployeeAll.EmployeeName,
Tbl_Centres.Centre,
Tbl_Transfers.ServiceCallType,
Tbl_Transfers.TransferSCT,
tbl_Genesys.Area
FROM (Tbl_Transfers INNER JOIN (Tbl_EmployeeAll INNER JOIN Tbl_Centres ON Tbl_EmployeeAll.Location = Tbl_Centres.Location) ON Tbl_Transfers.UserID = Tbl_EmployeeAll.UserID) LEFT JOIN tbl_Genesys ON Tbl_Transfers.ServiceCallType = tbl_Genesys.[Service Call Type]
;
and this is my TO Query
Code:
SELECT
Tbl_Transfers.WeekNbr,
Tbl_Transfers.UserID,
Tbl_EmployeeAll.EmployeeID,
Tbl_EmployeeAll.EmployeeName,
Tbl_Centres.Centre,
Tbl_Transfers.ServiceCallType,
Tbl_Transfers.TransferSCT,
tbl_Genesys.Area
FROM (Tbl_Transfers INNER JOIN (Tbl_EmployeeAll INNER JOIN Tbl_Centres ON Tbl_EmployeeAll.Location = Tbl_Centres.Location) ON Tbl_Transfers.UserID = Tbl_EmployeeAll.UserID) LEFT JOIN tbl_Genesys ON Tbl_Transfers.TransferSCT = tbl_Genesys.[Service Call Type];
Not sure if I would be able to this in a UNION Query.
Any help and All the help is very much appreciated.
Thanks,
Last edited: