Viewing 15 posts - 1,771 through 1,785 (of 26,488 total)
If you really want help you will need to post details about what you are trying to accomplish. We aren't mind readers and we can't see what you are doing...
March 19, 2018 at 2:02 pm
I got something like this to return all, including a rollup of all the non other entries:
declare @jobdata table
(rundate datetime,
jobnbr varchar(8),
tasknbr VARCHAR(3),
jobstatus...
March 19, 2018 at 1:58 pm
March 19, 2018 at 1:06 pm
March 19, 2018 at 12:37 pm
Another option:
SELECT
Account
,LEN(Account)
,STUFF(STUFF(ISNULL(STUFF(Account,14,0,'-'),Account),10,0,'-'),6,0,'-')
FROM (VALUES
('1234512341234')
,('1234512341234123')
,('12345123412341234')
,('123451234123412345')
,('1234512341234123456')
)dt(Account);
March 19, 2018 at 12:27 pm
Like this:
SELECT
Account
,LEN(Account)
,STUFF(STUFF(CASE WHEN LEN(Account) >= 14 THEN STUFF(Account,14,0,'-') ELSE Account END,10,0,'-'),6,0,'-')
FROM (VALUES
('1234512341234')
,('1234512341234123')
,('12345123412341234')
,('123451234123412345')
,('1234512341234123456')
)dt(Account);
March 19, 2018 at 12:01 pm
March 19, 2018 at 10:51 am
March 19, 2018 at 10:43 am
March 19, 2018 at 10:41 am
I'm a new user to...
March 19, 2018 at 10:25 am
I have a large table that has around 11 million rows and is growing...
March 19, 2018 at 9:50 am
Here are some routines: http://www.sqlservercentral.com/blogs/lynnpettis/2009/03/25/some-common-date-routines/
March 19, 2018 at 9:46 am
March 19, 2018 at 8:51 am
randyetheridge - Friday, March 16, 2018 4:11 PMpartitionkey is a field in tdataseg
picture below of table tdataseg
Okay, so the [?]...
March 16, 2018 at 4:14 pm
Viewing 15 posts - 1,771 through 1,785 (of 26,488 total)