Viewing 15 posts - 1,186 through 1,200 (of 1,957 total)
Jeff, did you tweak the CustomerID MOD value from 50000 at all for that?
March 29, 2012 at 7:26 pm
Jonathan AC Roberts (3/29/2012)
mister.magoo (3/29/2012)
Great Spackle, thanks!
In my tests, using your code to build a million row test, I found this method to be twice as fast for the...
March 29, 2012 at 5:27 pm
Hi Jeff,
Great Spackle, thanks!
In my tests, using your code to build a million row test, I found this method to be twice as fast for the same logical reads.
SELECT DISTINCT
CustomerID
FROM...
March 29, 2012 at 4:07 am
This is one way...but almost certainly not the best way....works ok on a million rows
BEGIN TRAN ; -- just for repeatability
CREATE TABLE #DATA(ID INT, VALUE1 INT,VALUE2 INT,TYPE INT);
INSERT #DATA(ID,VALUE1,VALUE2,TYPE)
SELECT 1,...
March 5, 2012 at 5:01 pm
Thanks for the feedback..
March 1, 2012 at 8:52 am
I can't tell exactly what is wrong from reading that code, but why not try REPLACE instead of your own function?
REPLACE(myString,"'","''")
February 29, 2012 at 4:52 pm
A1 --> B1
A2 --> B2
Count B = 2
A1 --> B1 --> C1
A1 --> B1 --> C2
A2 --> B2 --> C3
Count B = 3
What I mean : Row 1 in A...
February 27, 2012 at 4:54 pm
Do your users have email applications on their desktop?
If so, why not just use a mailto: action?
Go into the textbox properties, select Action, Go to URL and enter an expression...
November 28, 2011 at 7:29 am
bubs (11/20/2011)
The query works great for retrieving the remaining vacation to date.
However, the report allows the user to select a date range to query the remaining...
November 20, 2011 at 4:07 pm
Maybe something like this?
SELECT E.ID
, (E.LastName + ', ' + E.FirstName) AS Name
, V.TotalVacationDays
, V.RemainingVacationDays
, sum(CASE AH.AbsenceTypeID
WHEN 2 THEN
(datediff(DAY, AH.StartDate,...
November 19, 2011 at 7:35 pm
JonFox (11/19/2011)
mister.magoo (11/19/2011)
If you use JonFox' sample data...
SELECT RecordSeq, Account, ActivityDate, Rep,dense_rank() OVER(PARTITION BY Account ORDER BY rep)
from #Cases
If I'm understanding the OP correctly, that's not quite what he's looking...
November 19, 2011 at 7:20 pm
If you use JonFox' sample data...
SELECT RecordSeq, Account, ActivityDate, Rep,dense_rank() OVER(PARTITION BY Account ORDER BY rep)
from #Cases
November 19, 2011 at 7:00 pm
One word - ROWVERSION - I don't think you can break this...
BEGIN TRAN
-- Let's have a test table with an identity (to be forced out of order)
-- and a varchar...
November 19, 2011 at 6:55 pm
bubs (11/19/2011)
Can anyone please help me out?
Yes, but first can you answer these:
Why do you work in hours for absence history and days for vacation?
What is the meaning of TotalVacationDays...
November 19, 2011 at 5:57 pm
m0n (11/12/2011)
When I select table1.colA + table2.colA it return null value when colA is 0
At table1.colA and table2.colA I already use isnull function to convert null to 0 before
Please suggest.
Thank...
November 19, 2011 at 5:34 pm
Viewing 15 posts - 1,186 through 1,200 (of 1,957 total)