Viewing 15 posts - 676 through 690 (of 1,957 total)
Not sure what your question is there?
Having group by in your query won't matter one jot.
November 8, 2013 at 5:24 pm
peacesells (11/8/2013)
SGT_squeequal (11/8/2013)
November 8, 2013 at 5:09 pm
First you will need to include some column which ORDERS the data.
As it is your sample data cannot be ordered by anything to know whether activities are consecutive.
November 8, 2013 at 6:54 am
Mick, can I ask why you want to insert the 50 rows into a temp table?
Can't you just take the output from the "OUTPUT" clause and use that directly in...
November 4, 2013 at 4:57 pm
The standard way would be to use the format property with a value of "C2", then it will use the user's local region settings to display the value.
If you wanted...
November 4, 2013 at 4:43 pm
Jacob Pressures (11/3/2013)
Are you sure that Northwind is on the default instance?
Not exactly sure...
November 3, 2013 at 4:51 pm
I take it you know about REPLACE, so I can only assume that there is some other complication that prevents you using REPLACE...yes?
Maybe you don't know it will say Frog12...
November 3, 2013 at 4:17 pm
So, this is a web application running on the same machine (MIKE) as the SQL instance that contains database Northwind?
Are you sure that Northwind is on the default instance?
Have you...
November 3, 2013 at 4:00 pm
brad.mason5 (11/1/2013)
Monster Maghoul thank you for sharing! This is awesome now I just need to understand what is going on here. This guy will perform well under load too!
You...
November 2, 2013 at 5:42 am
Borrowing from Dwain's sample data and Tally, here is my submission:
--== Dwain's setup ==--
declare @t as table (ptr int identity, START time, ENDD time)
insert into @t (START, ENDD)
SELECT '09:30', '10:30'...
November 1, 2013 at 7:37 pm
You have your syntax wrong, try this:
;With aa AS (Select * from [temp_table] where c_date between @Begin_Date AND @End_Date)
INSERT @tmp1
SELECT [Year]
,[Month]
,[Customer]
FROM AA
October 29, 2013 at 6:48 pm
James Millar-305032 (10/25/2013)
October 25, 2013 at 12:07 pm
That part of the code is simply building an "on-the-fly" Tally/Numbers table, which will be used to address each character in the input string.
See This Article by Jeff Moden to...
October 25, 2013 at 8:23 am
Here you go
create function Mod97Checksum(@input varchar(30))
returns table
as
return
select sum(cast(substring(@input,N,1) as int) * N)%97 as check_sum
from (
select top(datalength(@input)) row_number() over (order by (select null)) as N
from (values(1),(1),(1),(1),(1),(1)) a(x)
,(values(1),(1),(1),(1),(1),(1)) b(x)
) Tally(N)
where substring(@input,N,1)...
October 24, 2013 at 4:46 pm
kevin.unglesbee (10/21/2013)
Thanks, this does exactly what I was looking for.
You're most welcome 🙂
October 21, 2013 at 8:22 am
Viewing 15 posts - 676 through 690 (of 1,957 total)