Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. qwertyguy

    Breaking up fields in a table

    How about: BEGIN TRAN UPDATE dbo.tbl SET AC=LEFT(RTRIM(LTRIM([Phone_Number])),3), Number=RIGHT(RTRIM(LTRIM([Phone_Number])), LEN(RTRIM(LTRIM([Phone_Number])))-3) WHERE LEN(RTRIM(LTRIM([Phone_Number])))>3 COMMIT TRAN
  2. qwertyguy

    union statement

    Not only do the fields have to be the same type, since you are aliasing the field names, the fields have to be identical in name as well

Part and Inventory Search

Back
Top