Viewing 15 posts - 1,006 through 1,020 (of 10,144 total)
ma701ss (1/3/2017)
January 4, 2017 at 1:27 am
thbaig (1/3/2017)
No. It return all rows all time.I have updated description
If you want results from either one table or the other, then use IF EXISTS()
January 3, 2017 at 6:58 am
thbaig (1/3/2017)
because if table2 has Reference_No, i want to display only these. Left join will display table1 data all the time
Do you mean this?
SELECT Reference_No
FROM (
SELECT Reference_No
FROM dbo.tblOptionalRefNo
UNION ALL
SELECT...
January 3, 2017 at 6:41 am
thbaig (1/3/2017)
because if table2 has Reference_No, i want to display only these. Left join will display table1 data all the time
Can you write a better description of what you are...
January 3, 2017 at 6:35 am
Ed Wagner (1/3/2017)
I hope everyone had a safe and happy New Year celebration. Welcome back to work.
You too, Ed. Best wishes for 2017.
January 3, 2017 at 6:28 am
ma701ss (1/1/2017)
What I'm not understanding is why the return value is not either -1, -2 or 1. Why...
January 3, 2017 at 5:20 am
Phil Parkin (12/28/2016)
Note also thatCASE WHEN height IS NULL THEN 0 ELSE 1 END
may be shortened to
IIF(Height IS NULL, 0, 1)
It's shortened...but is it fastened too? :-))
December 28, 2016 at 6:15 am
"Twitter" wasn't one of the answers, so I used this clue instead.
December 28, 2016 at 2:59 am
drew.allen (12/19/2016)
SELECT *
FROM (
SELECT
*,
rn = ROW_NUMBER() OVER(PARTITION BY ProductId, ObjectId ORDER BY CheckNumber DESC)
FROM EuroLuxProductBE.dbo.pdt_multidimensions m
CROSS APPLY (
SELECT...
December 28, 2016 at 2:49 am
SELECT
[Source],
[Target],
StartDate,
EndDate = ISNULL(EndDate,LEAD(StartDate,1) OVER(PARTITION BY Source, Target ORDER BY StartDate,EndDate) - 1)
FROM #TEMP
December 23, 2016 at 5:11 am
greeshatu (12/23/2016)
That is what I exactly want . Could pls help me out
Actually My data will be huge So When I use the...
December 23, 2016 at 4:39 am
The sample data set has a row where both columns have the same value which messes up rCTE's unless you remove it. Even then, some of the parent values have...
December 22, 2016 at 9:47 am
Hi Richard, how many rows are you expecting back from this query?
December 22, 2016 at 9:25 am
nadersam (12/22/2016)
I am trying to execute an array of comma delimited SQLs in a stored procedure.
I call it as below
declare @Parameter as nvarchar(max)
set @Parameter ='insert into Orderlog (trans_no)...
December 22, 2016 at 5:51 am
That's not bad, Joe - I think MOD is the way to go with this.
The code can be trimmed down and tuned a little:
SELECT ShiftLabel = CASE WHEN n...
December 22, 2016 at 2:05 am
Viewing 15 posts - 1,006 through 1,020 (of 10,144 total)