Viewing 15 posts - 4,876 through 4,890 (of 10,144 total)
sudhirnune (4/9/2013)
I need to make it dinamic so that based on the Scenario Formula should be Take and Calculated.
SCENARIO - TGT_PAYMENT_TYPE - PAYMENT_FORMULA
NORMAL ...
April 9, 2013 at 7:21 am
sudhirnune (4/9/2013)
I can not use the Static way of implimenting this.
Can you please help me...
April 9, 2013 at 6:44 am
sudhirnune (4/9/2013)
there are 3 formula....!SAL = SAL-ADV
COMM = ALL_1+ALL_2-ALL_3
BONUS = SAL * 1.1
Did you test the query I posted above somewhere?
April 9, 2013 at 6:36 am
SDG1 (4/9/2013)
April 9, 2013 at 6:12 am
An index on #d2 supporting this join ([#d2].MARIMSSALESID) = ([DynamicsV5Realtime].[dbo].[SALESTABLE].MARIMSSALESID) would reduce the exaggerated estimated row counts, but that's besides the point. This lot is unlikely to run well unless...
April 9, 2013 at 6:04 am
sudhirnune (4/9/2013)
TGT_PAYMENT_TYPEPAYMENT_FORMULA
SAL ...
April 9, 2013 at 5:42 am
vinu512 (4/9/2013)
...Nicely Done Chris.
Thank you, Vinu. Insufficient information yet to determine whether or not it will be useful...
April 9, 2013 at 5:24 am
How many rows does the table TEST_FORMULA contain?
Can you post a few rows please?
April 9, 2013 at 5:22 am
abhas (4/9/2013)
Hi Matak/Chris,I want to use starttime and endtime as varchar. is it possible?
Thanks
Abhas.
Yes:
DECLARE @STARTDATE DATETIME, @StartTimeChar CHAR(5), @EndTimeChar CHAR(5)
SELECT
@STARTDATE = CAST(GETDATE() AS DATE),
@StartTimeChar = '08:00',
@EndTimeChar = '10:00'
SELECT...
April 9, 2013 at 4:29 am
sudhirnune (4/9/2013)
Yes they has SAL.
Thanks.
DROP TABLE #Sampledata
CREATE TABLE #Sampledata (NAME VARCHAR(25), PAYMENT_TYPE VARCHAR(10), PAYMENT DECIMAL(5,2))
INSERT INTO #Sampledata (NAME, PAYMENT_TYPE, PAYMENT)
SELECT 'SUDHIR', 'SAL', 30.3 UNION ALL
SELECT 'SUDHIR', 'ADV', 10.3 UNION ALL
SELECT...
April 9, 2013 at 4:03 am
SSC has several related articles [/url]which may help. It's tricky and time consuming, and you may find it worthwhile purchasing a commercial application.
April 9, 2013 at 2:30 am
surendiran.balasubramanian (4/9/2013)
I cant use CTE..because the datawarehouse applicance wont support that....
all i need is single update statement with the required join condition
UPDATE c
SET CmDclnWdwnDt = s.DecWdrwnDt
FROM Claims...
April 9, 2013 at 2:28 am
greg.bull (4/9/2013)
Thanks for the posts - this is an old one that I solved a while back (just using case statements as I recall). Didn't expect any further postings...
April 9, 2013 at 2:13 am
I understand that you have multiple payment types, and an employee may have several rows with different payment types.
Do ALL employees have at least one row with payment type...
April 9, 2013 at 1:55 am
DECLARE @DecWdrwn as TABLE(CtryId smallint, CmId int, DecWdrwnDt int);
WITH s AS
(
SELECT
c.Ctryid, c.CmId,
-- Dt, not used
MaxDec = ISNULL(MAX(c.CmHistDtTmId),0),
x.MaxSet
FROM ClaimHistory c
OUTER APPLY (
SELECT MaxSet = ISNULL(MAX(l.CmHistDtTmId),0)
FROM...
April 9, 2013 at 1:52 am
Viewing 15 posts - 4,876 through 4,890 (of 10,144 total)