Hi to all you mighty SQLsuperheros out there.. Can anyone rescue me from imminent disaster and ruin?
I'm working with Microsoft Access SQL. I'd like to select records in one table (table1) that don't appear in another (table2) .. and then insert new records into table2 that are based on records in table1, as follows:
[table1] file_index : filename
[table2] file_index : celeb_name
I want to:
Select all records from table1 where [filename] is like aud and whose corresponding [file_index] value does not exist in table2 with with field [celeb_name] = 'Audrey Hepburn'
With that selection I then want to insert a new record into [table2]
[file_index] = [table1].[file_index] [celeb_name] = 'Audrey Hepburn'
There is a one to many relationship between [file_index] in [table1] and [table2] One record in [table1], to many in [table2].
Many thanks