Click here to Skip to main content
15,923,219 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Example:

Given:
height = 5
width = 7
unit = feet

Answer:
Fieldname dimension = 5 x 7 feet
Posted

i think this will help you
SQL
Select Cast(height as varchar(20)) + ' X ' + Cast(width as varchar(20)) + ' ' + unit from [Tablename]


also before asking the question. please search it first then ask the question.
 
Share this answer
 
v2
use this query

SQL
Select convert(varchar(20) , height  ) + ' x ' + convert(varchar(20) ,width ) + ' ' + unit from UrTable
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900