Thanks Ifor,
Please see the SQL query that I wrote followed by the two dummy table create statements that represent the tables I am querying.
SELECT NUMERIC.RecordNumber
,NUMERIC.Value
,Numeric2.Value
,Numeric3.Value
,AlphaNumeric.Value
,AlphaNumeric1.Value
,AlphaNumericValue3.value
FROM NUMERIC
INNER JOIN NUMERIC AS Numeric1 ON NUMERIC.RecordNumber = Numeric1.RecordNumber
INNER JOIN NUMERIC AS Numeric2 ON NUMERIC.RecordNumber = Numeric2.RecordNumber
INNER JOIN NUMERIC AS Numeric3 ON NUMERIC.RecordNumber = Numeric3.RecordNumber
INNER JOIN AlphaNumeric ON NUMERIC.RecordNumber = AlphaNumeric.RecordNumber
INNER JOIN AlphaNumeric AS AlphaNumeric1 ON AlphaNumeric.RecordNumber = AlphaNumeric1.RecordNumber
INNER JOIN AlphaNumeric AS AlphaNumeric2 ON AlphaNumeric.RecordNumber = AlphaNumeric2.RecordNumber
INNER JOIN AlphaNumeric AS AlphaNumeric3 ON AlphaNumeric.RecordNumber = AlphaNumeric3.RecordNumber
WHERE NUMERIC.Col1 = "1"
AND NUMERIC.Col2 = "1"
AND NUMERIC.Col3 = "1"
AND NUMERIC.Col4 = "1"
AND Numeric1.Col1 = "1"
AND Numeric1.Col2 = "1"
AND Numeric1.Col3 = "1"
AND Numeric1.Col4 = "2"
AND Numeric2.Col1 = "1"
AND Numeric2.Col2 = "1"
AND Numeric2.Col3 = "1"
AND Numeric2.Col4 = "4"
AND Numeric3.Col1 = "1"
AND Numeric3.Col2 = "1"
AND Numeric3.Col3 = "1"
AND Numeric3.Col4 = "5"
AND
WHERE AlphaNumeric.Col1 = "1"
AND AlphaNumeric.Col2 = "1"
AND AlphaNumeric.Col3 = "1"
AND AlphaNumeric.Col4 = "2"
AND AlphaNumeric1.Col1 = "1"
AND AlphaNumeric1.Col2 = "1"
AND AlphaNumeric1.Col3 = "1"
AND AlphaNumeric1.Col4 = "4"
AND AlphaNumeric2.Col1 = "1"
AND AlphaNumeric2.Col2 = "1"
AND AlphaNumeric2.Col3 = "1"
AND AlphaNumeric2.Col4 = "5"
AND AlphaNumeric3.Col1 = "1"
AND AlphaNumeric3.Col2 = "1"
AND AlphaNumeric3.Col3 = "1"
AND AlphaNumeric3.Col4 = "7";
CREATE TABLE Numeric(
RecordNumber INTEGER NOT NULL PRIMARY KEY
,Col1 BIT NOT NULL
,Col2 BIT NOT NULL
,Col3 BIT NOT NULL
,Col4 INTEGER NOT NULL
,Value INTEGER NOT NULL
);
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100001,1,1,1,1,5);
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100001,1,1,1,2,750);
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100001,1,1,1,3,5);
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100001,1,1,1,4,3);
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100001,1,1,1,5,1000000);
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100001,1,1,1,6,3500);
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100001,1,1,1,7,4);
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100001,1,1,1,8,99);
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100001,1,1,1,9,75);
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100001,1,1,1,10,3);
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100002,1,1,1,1,5);
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100002,1,1,1,2,154);
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100002,1,1,1,3,441);
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100002,1,1,1,4,3);
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100002,1,1,1,5,23);
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100002,1,1,1,6,34);
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100002,1,1,1,7,45);
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100002,1,1,1,8,66);
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100002,1,1,1,9,789);
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100002,1,1,1,10,50);
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100003,1,1,1,1,1);
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100003,1,1,1,2,7);
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100003,1,1,1,3,5);
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100003,1,1,1,4,88);
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100003,1,1,1,5,74);
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100003,1,1,1,6,35);
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100003,1,1,1,7,45);
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100003,1,1,1,8,54);
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100003,1,1,1,9,25);
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100003,1,1,1,10,35);
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100004,1,1,1,1,35);
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100004,1,1,1,2,22);
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100004,1,1,1,3,15);
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100004,1,1,1,4,99999);
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100004,1,1,1,5,2588);
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100004,1,1,1,6,3752);
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100004,1,1,1,7,7588);
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100004,1,1,1,8,1);
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100004,1,1,1,9,0);
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100004,1,1,1,10,3);
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100005,1,1,1,1,565);
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100005,1,1,1,2,5986);
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100005,1,1,1,3,350);
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100005,1,1,1,4,12580);
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100005,1,1,1,5,2500);
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100005,1,1,1,6,3500);
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100005,1,1,1,7,145);
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100005,1,1,1,8,25);
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100005,1,1,1,9,35);
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100005,1,1,1,10,75);
CREATE TABLE AlphaNumeric(
RecordNumber INTEGER NOT NULL PRIMARY KEY
,Col1 BIT NOT NULL
,Col2 BIT NOT NULL
,Col3 BIT NOT NULL
,Col4 INTEGER NOT NULL
,Value VARCHAR(17) NOT NULL
);
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100001,1,1,1,1,'123 Any Street');
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100001,1,1,1,2,'Yes');
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100001,1,1,1,3,'Chapter 5');
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100001,1,1,1,4,'Default');
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100001,1,1,1,5,'Now');
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100001,1,1,1,6,'Green');
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100001,1,1,1,7,'Similar');
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100001,1,1,1,8,'Required');
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100001,1,1,1,9,'Good Condition');
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100001,1,1,1,10,'Fire');
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100002,1,1,1,1,'751 Any Street');
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100002,1,1,1,2,'Maybe');
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100002,1,1,1,3,'Chapter 5');
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100002,1,1,1,4,'New');
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100002,1,1,1,5,'Past Due');
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100002,1,1,1,6,'Joke');
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100002,1,1,1,7,'Inferior');
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100002,1,1,1,8,'Not Available');
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100002,1,1,1,9,'Fair Condition');
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100002,1,1,1,10,'Water');
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100003,1,1,1,1,'859 Any Street');
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100003,1,1,1,2,'Yes');
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100003,1,1,1,3,'Chapter 4');
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100003,1,1,1,4,'No Good');
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100003,1,1,1,5,'When');
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100003,1,1,1,6,'Silver');
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100003,1,1,1,7,'Superior');
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100003,1,1,1,8,'Available');
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100003,1,1,1,9,'Avg Condition');
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100003,1,1,1,10,'Wind');
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100004,1,1,1,1,'7561 Any Street');
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100004,1,1,1,2,'No');
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100004,1,1,1,3,'Chapter 2');
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100004,1,1,1,4,'Find');
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100004,1,1,1,5,'Where');
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100004,1,1,1,6,'Purple');
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100004,1,1,1,7,'Slightly Superior');
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100004,1,1,1,8,'Fine');
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100004,1,1,1,9,'Good Condition');
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100004,1,1,1,10,'Earth');
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100005,1,1,1,1,'954 Any Road');
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100005,1,1,1,2,'Sometimes');
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100005,1,1,1,3,'Chapter 10');
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100005,1,1,1,4,'Default');
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100005,1,1,1,5,'Now');
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100005,1,1,1,6,'Brown');
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100005,1,1,1,7,'Not Similar');
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100005,1,1,1,8,'Not Required');
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100005,1,1,1,9,'N/A Condition');
INSERT INTO mytable(RecordNumber,Col1,Col2,Col3,Col4,Value) VALUES (100005,1,1,1,10,'Fire');