Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 720
  • Last Modified:

sql trim text

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
johnkainn
Asked:
johnkainn
2 Solutions
 
Forefront_Data_SolutionsCommented:
Select Left([FieldName],10)
From SomeTable
0
 
Rajkumar GsSoftware EngineerCommented:
SELECT LEFT('Financial Times', 10)

Open in new window

0

Featured Post

NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now