Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
SQL Server 2012 (major build version 11.00.xxxx). Please also tag sql-server.
0
votes
Is there a way to sort by an alphanumeric column?
I tried the following approach
select unitname
from units
cross apply(values(stuff(unitname,1,5,''))) s(u)
cross apply(values(cast(case when isnumeric(u) = 1
then u else left(u, len(u) - 1) end as in …
5
votes
3
answers
736
views
Is there a way to sort by an alphanumeric column? [duplicate]
I have a table units
unitname
unit 1
unit 2b
unit 2c
unit 2a
unit 10
unit 3a
unit 3c
unit 11
I want to sort the same as
unitname
unit 1
unit 2a
unit 2b
unit 2c
…
2
votes
2
answers
1k
views
How can I optimize the stored procedure and reduce table scans?
I have a stored procedure which identifies any changes in candidate information from the last SSIS job run. Then it proceeds to save the changes in a sync table.
CREATE PROCEDURE [dbo].[IdentifyCandid …