Viewing 15 posts - 31 through 45 (of 122 total)
I would like to change this code little more.
Can we write a select query there to fetch value replacing @const1 ?
something like this ..
INSERT INTO PRIOR_DIST (_ID, COSTS_DST, IS_ACTIVE)
SELECT
...
January 5, 2017 at 6:21 am
thats an impressive code !
You are the SQL God.
Thanks for the quick post.
January 5, 2017 at 5:48 am
Thank you.
I wish to add one condition in my code i.e a zero value checking .
like this ...
if(@const1!=0)
INSERT INTO PRIOR_DIST (_ID, COSTS_DST, IS_ACTIVE)
SELECT
@_id,
COSTS_DST*@const1/@const2,
'Y'
FROM PRIOR_DIST
WHERE _ID = @id_prev;
else
INSERT INTO PRIOR_DIST...
January 5, 2017 at 4:55 am
DesNorton (1/5/2017)
INSERT INTO PRIOR_DIST (_ID, COSTS_DST, IS_ACTIVE)
SELECT
@_id,
COSTS_DST*@const1/@const2,
'Y'
FROM PRIOR_DIST
WHERE _ID = @id_prev;
Thanks for the code. I have understood this part.
Is it possible to round the result upto 10 decimal...
January 5, 2017 at 1:21 am
ChrisM@Work (12/13/2016)
spectra (12/13/2016)
CREATE TABLE #John (j datetime)
INSERT INTO #John VALUES ('2016-11-10 12:12:42.100')
SELECT j FROM #John
WHERE j BETWEEN '20161201' and '20161213'...
December 14, 2016 at 2:25 am
I would like to upgrade this query a bit ...
CREATE TABLE #John (j datetime)
INSERT INTO #John VALUES ('2016-11-10 12:12:42.100')
SELECT j FROM #John
WHERE j BETWEEN '20161201' and '20161213'
If I...
December 13, 2016 at 6:29 am
John Mitchell-245523 (12/13/2016)
CREATE TABLE #John (j datetime)
INSERT INTO #John VALUES ('2016-11-10 12:12:42.100')
SELECT j FROM #John
WHERE j BETWEEN '20161201' and '20161213'
[font="Courier New"](0 row(s) affected)[/font]
John
Tested .... but its not working...
December 13, 2016 at 6:16 am
John Mitchell-245523 (12/13/2016)
WHERE UPDATED_DATE BETWEEN '20161201' and '20161213'
Bear in mind that this won't capture anything that happened on 13th, unless it happened at midnight (20161213 00:00:00). If you...
December 13, 2016 at 5:35 am
John Mitchell-245523 (12/13/2016)
What data type is the UPDATED_DATE column?John
datetime
December 13, 2016 at 5:26 am
I have run that query ...and I checked those files are not present in the returned physical path result.
seems ...I can safely delete those files.
December 11, 2016 at 8:33 pm
Thanks for the post
September 22, 2016 at 6:47 am
>>>you could write your own query to return an INSERT statement for whatever table name you choose.
Could not get it. are you saying not to use generate script
September 15, 2016 at 5:41 am
Viewing 15 posts - 31 through 45 (of 122 total)