Can anyone give me an example of a sql inner join between 2 tables when using a partial key?
For example:
======
Table1
======
StudentID: STUDENT00001, STUDENT00002, STUDENT00999
======
Table2
======
ID: 00001, 00002, 00999
My code so far:
SELECT *
FROM Table1
INNER JOIN Table2
ON Table1.StudentID = ***how do i add a prefix here?*** Table2.ID
THANKS!
Use the CONCAT() function in MySQL.