sql - Insert record into table if entry does not exist in another table- with an extra twist -
Hi, you can get everyone out of mighty SQLsuperheros .. Can anyone save me from the impending disaster and waste is?
I am working with Microsoft Access SQL I want to select a record in a table (Table 1) that does not appear in the second (Table 2). And then in table 2 new Insert a record that is based on the record in Table 1, as follows:
[Table 1] File_index: File Name
[Table 2] File_irect: celeb_name
I want to:
Select all records from Table 1 where [F [[Celeb_name] = 'Audrey Hepburn'
With that selection I have a New record [table2] [file_directory] = [table 1]. [File_index] [celeb_name] = 'Audrey Hepburn' [table1] has many relationships between [file_index] [Table 2] [Table 1] in one record, many [table 2].
Many thanks
Will it have to do? Obviously do not add some square brackets and accessories but enter yourself.
Enter in Table 2 (file_index, celeb_name), select file_index, 'Audrey Hepburn' from table 1 where file name = 'aud' and not in file_design (choose from different file_index table2 WHERE to Celeb_name = 'Audrey Hepburn')
Comments
Post a Comment