Is it possible to run a Bulk update/ SQL script to combine families giving?

I can try writing an update script if someone provide the relational database schema diagram.