Question : SQL 2005 SQL Syntax Help Needed

The below mentioned field has to be 10 characters exactly. I need the first 4 characters from the Ledger field in both of my tables and I need to pad the space to make up the last 2 characters.  

LEFT(fac.Ledger,4) + LEFT(fin.Ledger,4) AS [SubAccount No]

I tried this and got back an error indicating I had the syntax wrong. I think I am close, but need a hand.

LEFT(ISNULL(fac.Ledger,'') + LEFT(ISNULL(fin.Ledger,'')+ SPACE(10),10) AS [SubAccount No],      

Answer : SQL 2005 SQL Syntax Help Needed

Try this:

rpm -qa --queryformat '%{DESCRIPTION}\n' bash
Random Solutions  
 
programming4us programming4us