Viewing 15 posts - 2,806 through 2,820 (of 5,504 total)
Would something along the following lines do the job?
Side note: the basic concept is to use a calendar based on month and cross join the users table to that calendar....
September 17, 2010 at 2:14 pm
I think all that's needed so far are 14 sample rows (one for each transactionCode value). If there are more than those 14 values mentioned so far you should include...
September 16, 2010 at 5:00 pm
What I'd basically do is to move the decision whether to use securityID1 or securityID2 into a CASE statement instead of a UNION to avoid running a table scan/seek more...
September 16, 2010 at 4:34 pm
Would that be an easy baseline?
SELECT
Acct_ID,
SUM( CASE WHEN Category IN ( 'a', 'bdq', 'rr') THEN Value1
...
September 16, 2010 at 3:32 pm
Try to write a query to select all rows from PeoplesCalender that should be deleted (use an inner join on PersonID and a WHERE clause to limit PeoplesCalender.date>Leavers.DateLeft).
Once you verified...
September 16, 2010 at 3:24 pm
Maybe a stupid question:
Would it help to detach the other DB's (assuming that option is available) and move the related mdf and ldf files to a different drive/server to free...
September 16, 2010 at 2:43 pm
... and here's the version to include the total amount right after the last month, based on the sample posted before.
;
WITH cte AS
(
SELECT
ID,
N+1 AS Pos,
STUFF(CONVERT(CHAR(11),DATEADD(mm,N,start_date),0),4,6,'''') AS col1,
total_amt/total_month...
September 16, 2010 at 2:07 pm
Jeff Moden (9/15/2010)
LutzM (9/15/2010)
...
I absolutely agree with what you say but consider the following... what if there is no "front end" for this task?? 😉 Remember... to a nail,...
September 16, 2010 at 1:20 pm
The requested output is not really something you should expect from a SQL statement:
a) It seems like you want to have "flexible column names" for each row which is totally...
September 15, 2010 at 2:54 pm
Craig Farrell (9/15/2010)
CirquedeSQLeil (9/15/2010)
Steve Jones - Editor (9/15/2010)
September 15, 2010 at 1:05 pm
Gianluca Sartori (9/15/2010)
Alvin Ramard (9/15/2010)
Steve Jones - Editor (9/15/2010)
And on an unrelated note. Who wants this job?Not the kind of job I'd want.
I had to stop it after 2...
September 15, 2010 at 11:13 am
I think the best I can recommend at this point is to get someone in to help those 3rd party folks improving their software asap. If there is such a...
September 15, 2010 at 10:45 am
Lynn Pettis (9/14/2010)
I'm guessing not many will jump to help bit boy if he runs into more trouble and posts a question on SSC again (if he does post again).
Based...
September 14, 2010 at 5:38 pm
You should still get the inserted message when successful.
The square bracket issue is weird. Possible any "non-standard" column names? (e.g. including space, comma or any other fancy stuff?)
September 14, 2010 at 5:00 pm
Brandie Tarvin (9/14/2010)
EDIT: Do either of these have some sort of alarm or notification broadcast...
September 14, 2010 at 4:55 pm
Viewing 15 posts - 2,806 through 2,820 (of 5,504 total)