Viewing 15 posts - 8,011 through 8,025 (of 26,490 total)
bluetea.55z (4/11/2013)
Write a query to display a daily report of all books sold this week including 0 sold, use temp tables.
Columns in the result...
April 11, 2013 at 9:33 pm
If provided all requested, we should be able to test and compare changes to original code in small workable chunks, breaking the code down piece by piece.
April 11, 2013 at 9:29 pm
Okay, this can be simplified but it isn't going to be easy. Some of this code is doing a lot more work than is needed. If you would...
April 11, 2013 at 9:24 pm
tammyf (4/11/2013)
If I put the following in a where clause:
CASEWHEN PATINDEX('%[^0-9 ]%',h.oe_po_no) = 0
THEN Cast(RTrim(LTrim(h.oe_po_no)) as BigInt)
ELSE 0
END =...
April 11, 2013 at 8:39 pm
Jeff Moden (4/11/2013)
Lynn Pettis (4/11/2013)
Steve Jones - SSC Editor (4/11/2013)
Lynn Pettis (4/11/2013)
Jan Van der Eecken (4/11/2013)
Lynn Pettis (4/11/2013)
This really makes one want to help, doesn't it.
Dunno, but it really looks...
April 11, 2013 at 5:25 pm
Lowell (4/11/2013)
i think you can use row_number() to get what you are after:
SELECT * FROM (
SELECT
ROW_NUMBER() OVER(PARTITION BY symbol ORDER BY quote_date...
April 11, 2013 at 2:18 pm
I'd start by looking at the row_number() windowing function. This makes what you need simple, that and a CTE.
April 11, 2013 at 2:17 pm
haiao2000 (4/11/2013)
Have you thought of an alternate solution like SQL replication, infacts merge replication is good way to go. create publisher/subscriber, then schedule it to synchonize once a week?
Why? ...
April 11, 2013 at 2:01 pm
Here is another option:
SELECT
Audit_ID,
EntID,
Field_A,
Field_B,
ActionDate,
rn3 = ROW_NUMBER()...
April 11, 2013 at 1:18 pm
As long as each backup file is independent (highly recommended whether you compression or not) as you can't mix compressed and uncompressed backups in the same file.
April 11, 2013 at 1:06 pm
Steve Jones - SSC Editor (4/11/2013)
Lynn Pettis (4/11/2013)
Jan Van der Eecken (4/11/2013)
Lynn Pettis (4/11/2013)
This really makes one want to help, doesn't it.
Dunno, but it really looks like he was dumped...
April 11, 2013 at 1:02 pm
I would start by putting the indexes into a spread sheet grouped by tables. Start by comparing the order of the equality columns (your WHERE or ON clauses would...
April 11, 2013 at 12:35 pm
Sounds fair.
April 11, 2013 at 12:20 pm
I would not automate this. Each index suggested needs to looked at with a critical eye, not just at the individual index but at al the other indexes suggested...
April 11, 2013 at 12:19 pm
Instead of deleting your question it would have been better to post what you found for others that may have a similar issue.
April 11, 2013 at 12:10 pm
Viewing 15 posts - 8,011 through 8,025 (of 26,490 total)