Viewing 15 posts - 4,621 through 4,635 (of 8,761 total)
Carlo Romagnano (9/1/2015)
declare @sql nvarchar(max) = 'select 0 as dbid,0 as fileid WHERE 0=1'
UNION ALL SELECT '''+RIGHT(database_id,10)+''',fileid FROM...
September 6, 2015 at 10:13 pm
g7u (9/6/2015)
I really can't thank you enough. Thank you for the superb help and explanation. This was stumping me for quite some time.
You are very welcome and thank...
September 6, 2015 at 9:19 am
g7u (9/6/2015)
One more question...If I wanted to get a DATEDIFF between the two Dates, how would I accomplish that? Many thanks.
Simply add it to the last part of the...
September 6, 2015 at 8:10 am
Here is the code again with comments, let me know if you need further explanation.
😎
/* CTE (Common Table Expression for marking the sessions in
chronological order, creating an...
September 6, 2015 at 8:07 am
Quick solution
😎
USE tempdb;
GO
SET NOCOUNT ON;
GO
DECLARE @SAMPLE_DATA TABLE
(
[action] VARCHAR(10) NOT NULL
,[date] DATE ...
September 6, 2015 at 6:48 am
hegdesuchi (9/5/2015)
thank you very much. It does work.. But I have to repeat this scenario for 3 flags.. So I have to define CTE all three times.
Do we have...
September 6, 2015 at 1:32 am
QQ-485619 (9/5/2015)
I have a table with the follow row and sample data
RowID RecordType ...
September 5, 2015 at 4:46 pm
mar.ko (9/4/2015)
INSERT WITH SELECT HAS THIS:,Convert(Int,TARG_SALES) AS TARG_SALES
Treats the column as if it were formatted decimal !!
Looks more like a rounding trick in the insert, pretty certain the column's datatype...
September 5, 2015 at 8:25 am
J Livingston SQL (9/5/2015)
TomThomson (9/4/2015)
Eirikur Eiriksson (9/3/2015)
TomThomson (9/3/2015)
Ed Wagner (9/3/2015)
Those who have...
September 5, 2015 at 7:48 am
Quick thought, yes you will have to sum up the quantity, probably similar to the PackageTotals.TotalActualWeight
😎
Although one could try to decypher the query it is unlikely that answers derived from...
September 5, 2015 at 5:54 am
Quick thought, make certain that you use an inline table value function and NOT a scalar function, the performance of the latter is horrendous, see the simple test harness and...
September 5, 2015 at 5:16 am
jacksonandrew321 (9/5/2015)
September 5, 2015 at 4:16 am
MotivateMan1394 (9/5/2015)
Yes you are right.Thank you for your kindness.
It is complete and right;-):-P
You are very welcome and thank you for the feedback.
😎
September 5, 2015 at 3:35 am
MotivateMan1394 (9/5/2015)
If I Group by Cartid,SHCode , I get all records in my result.
I Need sort of Group BY cartid And get max(editDate) >>> at...
September 5, 2015 at 2:28 am
hegdesuchi (9/4/2015)
I have a scenario where ID has three flags.
For example
ID flag1 flag2 flag3
1 0 1 ...
September 5, 2015 at 12:41 am
Viewing 15 posts - 4,621 through 4,635 (of 8,761 total)