I'm a newbee in sql and I'm just trying to connect two tables in an access database through asp. It is a 1 to n relationship, of which I'd like to display everything of the first table together with the last entry of the second table. Does anyone know how the join statement would look like?
The first table (Contacts) contains a colum 'ID', which is set to autoNumber. The second table (Contacts2) contains a colum 'ID' and a colum called 'ContactID', which leads to the first table. I need all the Information of all records of the first table together with all the information of the latest (highest ID-value) record of the second one. Can anyone help me? I totally got lost. I'd like to know how the sql statement would look like for that.
Thank you guys in advance..
Mike.. [sig][/sig]
The first table (Contacts) contains a colum 'ID', which is set to autoNumber. The second table (Contacts2) contains a colum 'ID' and a colum called 'ContactID', which leads to the first table. I need all the Information of all records of the first table together with all the information of the latest (highest ID-value) record of the second one. Can anyone help me? I totally got lost. I'd like to know how the sql statement would look like for that.
Thank you guys in advance..
Mike.. [sig][/sig]