I have a 4 field database. 3 fields are text value, 1 is a numerical field. I am being asked to add a field to the table to show what % of the entire table each of the records makes up. Is this do-able?
The general rule of thumb with database normalisation rules are that no field in a table should be dependant on other fields in the same table for its value.
It would be best to do what you are after in a query.
If you did as you are asked here, every time a new record is added to the table, an Update query must be run against the table and the new values added. Lots of things go wrong in these circumstances. Rather just use the query.
You could create a new table with the SELECT INTO statement using the same table name. SQL will delete the existing table and recreate it with the new data, but it will hit your systems rescources when the table gets large.
I thought that to be the case... So did I use proper form by doing the following:
creating a 3 query run.
1st q. Grouping text and summing numerical value
2nd q. Getting Total of numerical field only
3rd q. Show all 4 fields plus a 5th field showing sum(current value/Total Value)
Then I drop 3rd q value into a data sheet form..for viewing pleasures or is there a better way?
We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel
Which adblocker are you using?
Disable AdBlock
Follow these easy steps to disable AdBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the icon in the browser’s toolbar. 2)Click on the "Pause on this site" option.
Go back
Disable AdBlock Plus
Follow these easy steps to disable AdBlock Plus
1)Click on the icon in the browser’s toolbar. 2)Click on the toggle to disable it for "mrexcel.com".
Go back
Disable uBlock Origin
Follow these easy steps to disable uBlock Origin
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.
Go back
Disable uBlock
Follow these easy steps to disable uBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.