I'm looking to insert some data into my table called tblModelStandards. tblModelStandards has the fields ModelStandardsID, PlantCode, Category, SubCategory, Description, Cost. I'm trying to insert "Door Safety Chain" and "$3.00" into Description and Cost where Category is "Opening" and SubCategory is "Side Door". I just don't know how to insert the ModelNumber for each record since it changes. The new records with Door Safety Chain will have a category of "Opening and SubCategory of "Side Door" too. I think the SQL statement would look something like this:
I copied my data into an Excel spreadsheet, made the change, and copied it back. I would really like to learn how to do this with a SQL command.
Thanks!
Code:
INSERT INTO tblModelStandards ( PlantCode, ModelNum, Category, SubCategory, Description, Cost)
VALUES ('GA', ????? , 'Opening', 'Side Door', 'Safety Door Chain', '$3.00')
WHERE Category = 'Opening' AND 'SubCategory = 'Side Door';
I copied my data into an Excel spreadsheet, made the change, and copied it back. I would really like to learn how to do this with a SQL command.
Thanks!