user66510: I've been reading up about raw transactions on bitcoin.org and there are two examples Simple and Complex.
What I can't tell from the information provided is if it necessary to sign each of the inputs separately, or whether you can just sign the entire tx with one.
So two examples:

Input 1 came from address A and input 2 came from address A.
Input 1 came from address B and input 2 came from address C.

For example 1, my assumption is that I could just use
bitcoin-cli signrawtransaction RAW_TX

but for example 2 I would have to use
 bitcoin-cli signrawtransaction RAW_TX [] ["ADDR_B_PRIVATE_KEY"]
 bitcoin-cli signrawtransaction PARTLY_SIGNED_RAW_TX [] ["$ADDR_B_PRIVATE_KEY"]


user38618: You can just use
bitcoin-cli signrawtransaction RAW_TX

if the private keys of all inputs of that transaction are in your Bitcoin Core (or bitcoind).

user12983: 
Do i need to sign each input in a raw transaction?

Technically, yes. But software like Bitcoin Core Client signs all inputs where the private keys are known. And of course, leave unsigned/untouched all other inputs.

66510: <p>I've been reading up about raw transactions on <a href="https://bitcoin.org/en/developer-examples#simple-raw-transaction" rel="nofollow noreferrer">bitcoin.org</a> and there are two examples <a href="https://bitcoin.org/en/developer-examples#simple-raw-transaction" rel="nofollow noreferrer">Simple</a> and <a href="https://bitcoin.org/en/developer-examples#complex-raw-transaction" rel="nofollow noreferrer">Complex</a>.</p>

<p>What I can't tell from the information provided is if it necessary to sign each of the inputs separately, or whether you can just sign the entire tx with one.</p>

<p>So two examples:</p>

<ol>
<li>Input 1 came from address A and input 2 came from address A.</li>
<li>Input 1 came from address B and input 2 came from address C.</li>
</ol>

<p>For example 1, my assumption is that I could just use</p>

<pre><code>bitcoin-cli signrawtransaction RAW_TX
</code></pre>

<p>but for example 2 I would have to use</p>

<pre><code> bitcoin-cli signrawtransaction RAW_TX [] ["ADDR_B_PRIVATE_KEY"]
 bitcoin-cli signrawtransaction PARTLY_SIGNED_RAW_TX [] ["$ADDR_B_PRIVATE_KEY"]
</code></pre>
 38618: <p>You can just use</p>

<pre><code>bitcoin-cli signrawtransaction RAW_TX
</code></pre>

<p>if the private keys of all inputs of that transaction are in your Bitcoin Core (or bitcoind).</p>
 12983: <blockquote>
  <p>Do i need to sign each input in a raw transaction?</p>
</blockquote>

<p>Technically, yes. But software like Bitcoin Core Client signs all inputs where the private keys are known. And of course, leave unsigned/untouched all other inputs.</p>
