Viewing 15 posts - 2,416 through 2,430 (of 10,144 total)
vceklic (6/18/2015)
Can someone help me solve this:
I have 2 tables that look something like this:
Table Price:
id - int
price - varchar
validFrom - datetime
validTo - datetime
itemId - int
....
Table sales:
id - int
price...
June 18, 2015 at 5:48 am
Does this simplification work for you? We can add Clean and Unclean next.
SELECT
RES.method,
payment_id = SUM(CASE WHEN Filter = 1 THEN 1 ELSE 0 END),
[status] = SUM(CASE WHEN...
June 18, 2015 at 4:05 am
You will find this much easier to work with if you can reduce the clutter, and one way of doing this is to encapsulate sections of the code into other...
June 18, 2015 at 3:38 am
Hi Paul, and welcome to ssc.
Can you post the whole query please, it's generally easier to work with a whole query, there's less chance of something you haven't seen...
June 18, 2015 at 1:51 am
Sanz (6/17/2015)
The patterns are consistent. Length of NICK and SERVERS can vary..
Are you going to post up a few examples or keep Sean guessing?
June 17, 2015 at 8:36 am
salamlemon (6/17/2015)
Okay, thanks. So bottom line is that procedure has to be created to look at the execution plan, right?
Yes, but no. If there are no parameters, you can capture...
June 17, 2015 at 6:55 am
T2512 (6/17/2015)
June 17, 2015 at 6:45 am
j.grimanis (6/15/2015)
I have a procedure which inside I call two other Procedures, the first one is updating table Purchase Order and the second one is updating an intermediary table afterPurchase...
June 16, 2015 at 9:15 am
narengc (6/16/2015)
June 16, 2015 at 8:57 am
TomThomson (6/16/2015)
sgmunson (6/15/2015)
syed_3177 (6/14/2015)
I need a...
June 16, 2015 at 8:11 am
narengc (6/16/2015)
I have user defined type
CREATE TYPE [dbo].[PCS_SPEC_ATTR_VALUE] AS TABLE(
[ATTR_NAME] [varchar](256) NULL,
...
June 16, 2015 at 7:48 am
.Netter (6/16/2015)
I'm no expert in SQL, I dabble here and there.
I need to create a function which takes two bigint parameters and returns true or false depending on it a...
June 16, 2015 at 5:15 am
GonnaCatchIT (6/16/2015)
Thanks Chris, I will check and build my query based on this , will provide you the results. Thank you
It's a long shot without the execution plan and table...
June 16, 2015 at 5:02 am
-- Here's your query with some structural changes which I've made to
-- assist tuning.
SELECT
PPS.[No],
PPS.PID,
PPS.[Date],
PPS.Amnt1 + PPS.AMNT2 + PPS.Amnt3 - ISNULL(PPSL.Amnt4,0) + PPS.Amnt5
AS Amnts
FROM TPSTab PPS...
June 16, 2015 at 4:35 am
GonnaCatchIT (6/16/2015)
Hi,Unfortunately I do not have the execution plans handy , so I am not able to share it.
So if someone posts up some fantastic code for you, you're unable...
June 16, 2015 at 4:25 am
Viewing 15 posts - 2,416 through 2,430 (of 10,144 total)