Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Lets assume we have transaction with 2 inputs, each worth 1 bitcoin, and we send these 2 bitcoins to one address.
A transaction either gets confirmed in its entirety (by being included in a block) or none at all. If one of the inputs is successfully doublespent, then your tx is invalid so will never be confirmed.
Required, but never shown