- Thanks received
- 732
CREATE TABLE TestA ( Age INT );
INSERT INTO dbo.TestA
( Age )
VALUES ( 30 -- Age - int
);
INSERT INTO dbo.TestA
( Age )
VALUES ( 40 -- Age - int
);
CREATE TABLE TestB ( Age VARCHAR(255), );
INSERT INTO dbo.TestB
( Age )
VALUES ( '30' -- Age - varchar(255)
);
SELECT *
FROM dbo.TestA
INNER JOIN dbo.TestB ON TestB.Age = TestA.Age;
SELECT *
FROM dbo.TestA
INNER JOIN dbo.TestB ON TestB.Age = CAST(TestA.Age AS VARCHAR(255));
It is probably going to be as easy to just dump into excel and then do a lookup
I was trying to be clever but that rarely works!
Cheers guys
There are only two things that might indicate there is a God.It is probably going to be as easy to just dump into Access.