May 19, 2010 #1 Palmyra Programmer Jan 5, 2007 150 US I think this is a dumb question, but I'm stuck. I need to select part of the value in a field. I need to start at position 1 and only select to position 50. My attempt, which is wrong: SELECT left(fieldname,1,50) as newfield FROM table Thanks.
I think this is a dumb question, but I'm stuck. I need to select part of the value in a field. I need to start at position 1 and only select to position 50. My attempt, which is wrong: SELECT left(fieldname,1,50) as newfield FROM table Thanks.
May 19, 2010 1 #2 bborissov Programmer May 3, 2005 5,167 BG Code: SELECT LEFT(fieldname,50) FROM Table or Code: SELECT SUBSTRING(fieldname,1,50) FROM Table Borislav Borissov VFP9 SP2, SQL Server 2000,2005 & 2008. Upvote 0 Downvote
Code: SELECT LEFT(fieldname,50) FROM Table or Code: SELECT SUBSTRING(fieldname,1,50) FROM Table Borislav Borissov VFP9 SP2, SQL Server 2000,2005 & 2008.