Question: qgis how to edit attribute table?
Answer: select the layer. open/show the attribute table. active the editing for the table (pencil button left above on attibute table) Open the field calculator. Add the field you need and press ok when done. deactivate the editing for the table and save the changed layer.