In my app I'm trying to extract 2 names from a table (table1) which has two fields - lets say PNUM1 and PNUM2 in a record.
The actual names for these these namenumbers are held in another table where field REALNAME is kept against a reference to a PNUM field
SELECT * FROM table1 AS a inner join table2 AS b ON a.pnum11 = b.pnum OR a.pnum2 = b.pnum INTO Cursor mycursor
I don't mind if a record from table1 is extracted in 2 rows
in mycursor.
Is this a valid SQL join?
My actual SQL would/is more complex but I need guidance on the rationale of the above
The actual names for these these namenumbers are held in another table where field REALNAME is kept against a reference to a PNUM field
SELECT * FROM table1 AS a inner join table2 AS b ON a.pnum11 = b.pnum OR a.pnum2 = b.pnum INTO Cursor mycursor
I don't mind if a record from table1 is extracted in 2 rows
in mycursor.
Is this a valid SQL join?
My actual SQL would/is more complex but I need guidance on the rationale of the above