SQL Insert a new row into an existing table changing all but one column -


i have table 14 columns. first column part #. need insert new line , add different data other 13 columns if data in column 10 different.

for example:

 part #  description lead time   price 1 price 2 price 3 min. buy    date    ata 1693    shorty plug     045  $-      $-      $4.25  100 110612  stc 2617    dome plug            045     $-      $-      $0.75   100    111912  cis 2617    dome plug            045     $-      $-      $0.50  100 91012   stc 2617    dome plug            045     $-      $-      $0.50  100 91012   std 2646    plug (black 045  $-      $-      $6.75  100 91012   stc 2646    plug (black)    045  $-      $-      $6.00  100 91012   std 

the key column "ata" column. how add, part # 2646 had ata code of "cis". part # column stay same. want leave other rows in table, add row part # of 2646 rest of data different.

i'm not proficient in sql, , have tried can find on internet no success. help.

sounds need simple insert statement. replace values part actual values want add database table.

insert your_table ([part #], [description], [lead time], [price 1], [price 2], [price 3], [min. buy], [date], [ata]) values (old_part_no, new_description, new_lead_time, new_price_1, new_price_2, new_price_3, new_min_buy, new_date, new_ata) 

Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -