Examples of values I want to put in order
houseno
3-13-1
3-13-3/a
3-13-3/b
3-13-2/a
3-13-4
3-13-6
3-13-5/a
3-13-4/c
i want output like this below
houseno
3-13-1
3-13-2/a
3-13-3/a
3-13-3/b
3-13-4
3-13-4/c
3-13-5/a
3-13-6
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Hanook159 reputationPosted Nov 3, 2013, 11:55 PM EST
Hanook159 reputationPosted Nov 3, 2013, 11:24 PM EST
Hanook159 reputationPosted Nov 3, 2013, 11:29 PM EST
Simply you can query like this
SELECT * FROM TableName
ORDER BY houseno
JAYRAMRank #7,836 · 233 reputationPosted Nov 3, 2013, 11:43 PM EST
quarie not working...i mean not shown as above format..............
JAYRAMRank #7,836 · 233 reputationPosted Nov 4, 2013, 12:53 AM EST
Conversion failed when converting the varchar value '300, RJVGNHI NGR' to data type int.
Hanook159 reputationPosted Nov 4, 2013, 1:11 AM EST
It dependa on the input data.. can you tell me the format/sample data of houseno column...
In houseno column do you have complete address (like 300, RJVGNHI NGR) ?
Post the result of the follwoing query:
SELECT dbo.Thicky_Pants ( RIGHT(houseno, PATINDEX('%-%', REVERSE(houseno))-1) , '[abcdefghijklmnopqrstuvxyz0123456789/]', '')
FROM TableName