Viewing 15 posts - 2,806 through 2,820 (of 5,502 total)
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
avi-631555 (9/14/2010)
Inserting data into a table only if it doesnot exist and if does to show me the content of the table and...
September 14, 2010 at 4:21 pm
Viewing 15 posts - 2,806 through 2,820 (of 5,502 total)