J
James
Hello what I need is to unite 2 tables and one SQL query
I'm sure there is, but without knowing anything about the
nature of
the queries nor how you want them to be joined, I really
can't make
any suggestions, other than that it sounds like you want
another UNION
query unioning this first query and the other two tables.
Care to post
the SQL and the table definitions?
-----------------------------------------------------------
Hello,
Sorry for the late reply had lots of stuff to do...
What do you mean by table definitions?
And the SQL is as follows:
SELECT
Forname,Surname,Location,Department,Username,Password,
[Type of Dialin], [Support From] FROM [SQT Live CISCO
Accounts]
UNION ALL SELECT
IIF(Instr(Trim([Name] & "")," ") >0,
Left([Name], Instr([Name], " ") -1), [Name]) AS Forname,
IIF(Instr(Trim([Name] & "")," ") >0,
Mid([Name], Instr([Name], " ") + 1), [Name]) AS Surname,
NULL,Base,Username,Password,[Type of Dialin],[Support
From] FROM[live CISCO Accounts];
Many Thanks
James
together and then base a form on that one query.
I have an SQL query which has a UNION ALL statement in it
and I need to add to a new query this one query and the
other two tables and only show the records that they hold.
Is there a way to do this?
I'm sure there is, but without knowing anything about the
nature of
the queries nor how you want them to be joined, I really
can't make
any suggestions, other than that it sounds like you want
another UNION
query unioning this first query and the other two tables.
Care to post
the SQL and the table definitions?
-----------------------------------------------------------
Hello,
Sorry for the late reply had lots of stuff to do...
What do you mean by table definitions?
And the SQL is as follows:
SELECT
Forname,Surname,Location,Department,Username,Password,
[Type of Dialin], [Support From] FROM [SQT Live CISCO
Accounts]
UNION ALL SELECT
IIF(Instr(Trim([Name] & "")," ") >0,
Left([Name], Instr([Name], " ") -1), [Name]) AS Forname,
IIF(Instr(Trim([Name] & "")," ") >0,
Mid([Name], Instr([Name], " ") + 1), [Name]) AS Surname,
NULL,Base,Username,Password,[Type of Dialin],[Support
From] FROM[live CISCO Accounts];
Many Thanks
James