Viewing 15 posts - 2,116 through 2,130 (of 2,169 total)
In most DBMSs, a GROUP BY is a more efficient way to eliminate duplicate rows compared with the DISTINCT keyword. The reason for this is that a GROUP BY invokes...
June 9, 2006 at 2:34 pm
Using without an aggregate causes the resultset to behave like DISTINCT, and is faster.
June 9, 2006 at 12:58 pm
(sum of DATALENGTH for all columns) multiplied with the number of rows gives a rough estimate of the amount of data sent.
June 9, 2006 at 7:46 am
Nice. Well done!
I was so focused on producing the groups, I didn't see the obvious.
June 9, 2006 at 3:49 am
yes, that is doable.
First you must create some kind of a lookup table where every attachment (path & filename) is stored with an ID.
Second, create another lookup table where you match each...
June 8, 2006 at 11:19 pm
Maybe parsing the query and searching for "FROM " / "UPDATE " / "INSERT INTO " / "INSERT " text, and then a space after that, should give a table...
June 8, 2006 at 1:52 pm
True. I didn't really think...
WHILE EXIST (SELECT * FROM Account WITH (NOLOCK) WHERE ProviderID = 70 AND IsActive = 0 AND Status <> 'Deleted')
UPDATE Listing
SET Status...
June 8, 2006 at 1:45 pm
Have you tried
SET @x = @@rowcount
PRINT @x
SET @cnt = @cnt + @x
to see what @x gives?
Otherwise
WHILE EXIST (SELECT * FROM Account WITH (NOLOCK) WHERE ProviderID = 70 AND IsActive...
June 8, 2006 at 11:41 am
Or do you simple want this?
-- Populate test data
declare @t table (prog varchar(8), cost float)
insert @t
select 'Prog A', 32.600187121827403 union all
select 'Prog B',...
June 8, 2006 at 3:56 am
There are three 77.358114112521619
I ask you the same question again, how would you like ties (same numbers) to be ranked?
How do you differentiate between equal numbers?
June 8, 2006 at 3:48 am
Something like this?
In this example, IDs must be consecutive, otherwise just create a table variable with ID as IDENTITY and insert into that table first, ordered by...
June 8, 2006 at 3:03 am
-- Populate test data
declare @t table (aDate datetime, otherdata varchar(50))
insert @t
select '2006-01-01', 'a' union all
select '2006-01-15', 'b' union all
select '2006-02-01', 'c' union all
select '2006-02-02', 'd' union all
select '2006-02-03', 'e'
-- Do the work efficient
select...
June 8, 2006 at 2:22 am
Is this same group
11 2004-05-13 16:54:58.000 C
12 2004-05-18 12:29:42.000 C
13 2004-05-18 12:29:43.000 C
Even if date has changed?
Could you...
June 8, 2006 at 2:18 am
-- Populate test date
declare @t table (prog varchar(8), cost int)
insert @t
select 'Prog-A', 16000 union all
select 'Prog-B' ,16000 union all
select 'Prog-C', 21000 union all
select...
June 7, 2006 at 10:54 pm
Viewing 15 posts - 2,116 through 2,130 (of 2,169 total)