Solved

sql trim text

Posted on 2011-03-01
2
675 Views
Last Modified: 2012-06-27
How do I trim a text that I select from a table, so that it returns max 10 char?
For example:  "Financial Times, said it was freezing shares" should be "Financial ..."
0
Comment
Question by:johnkainn
2 Comments
 
LVL 8

Assisted Solution

by:Forefront_Data_Solutions
Forefront_Data_Solutions earned 62 total points
ID: 35007887
Select Left([FieldName],10)
From SomeTable
0
 
LVL 23

Accepted Solution

by:
Rajkumar Gs earned 63 total points
ID: 35007890
SELECT LEFT('Financial Times', 10)

Open in new window

0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SQL Server 2012 r2 - calculations/operation on many Temp Tables 6 21
SQL Insert parts by customer 12 33
SQL Server 2012 r2 - Varible Table 3 24
Sql Server group by 10 27
Audit has been really one of the more interesting, most useful, yet difficult to maintain topics in the history of SQL Server. In earlier versions of SQL people had very few options for auditing in SQL Server. It typically meant using SQL Trace …
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question