Viewing 15 posts - 616 through 630 (of 2,458 total)
SELECT
p.ProjectNo,
ProjectType = CASE WHEN p.ProjectType = 'new' AND x.ProjectType IS NOT NULL THEN 'new' ELSE '' END,
p.Location,
ChildDef = ISNULL(ChildDef,'')
FROM dbo.projects p
LEFT...
July 1, 2016 at 1:13 pm
Or this:
SELECT *
FROM dbo.projects
WHERE Location IN
(
SELECT Location
FROM dbo.projects
WHERE ProjectType = 'new'
)
July 1, 2016 at 12:54 pm
DiabloSlayer (6/26/2016)
Hi Alan Burstein,...Secondly, can you point me where I can learn the contents in your script so I can decipher it and learn it for the future?
Ok, my final...
July 1, 2016 at 9:32 am
Sergiy (6/30/2016)
That's a big bunch of code!
Compare to this (using the table I've posted above):
DECLARE @StartDate SMALLDATETIME, @EndDate DATE, @WeekStartsFrom VARCHAR(50)
SET @StartDate = '20160501'
SET @ENDDATE = '20160531'
SET @WeekStartsFrom =...
July 1, 2016 at 8:58 am
DiabloSlayer (6/30/2016)
Thank you for the update and help !!
So I ran the update script for the period of 05/01/2016 to 05/31/2016 and I'm not sure why I'm getting two...
June 30, 2016 at 1:51 pm
TheSQLGuru (6/30/2016)
Alan.B (6/30/2016)
June 30, 2016 at 12:34 pm
Kevin said a lot of what I was going to say especially about fixing that sort with the tempdb spill - that's going to kill you. An index on [WOEC].[WOE].[ORDER_ITEM].ORDER_ITEM_UID,...
June 30, 2016 at 12:11 pm
DiabloSlayer (6/26/2016)
I ended up using your solution so thank you VERY MUCH 🙂
I just have two questions for you, first, how can I change the start date to...
June 30, 2016 at 8:50 am
Luis Cazares (6/29/2016)
oradbguru (6/29/2016)
WHERE ' ' = ' '
Any ideas what...
June 29, 2016 at 2:08 pm
Forgive me if I'm wrong (it's been many years since I was a DBA) but I believe they would also need at least public access to the msdb database.
June 29, 2016 at 2:03 pm
Solomon Rutzky (6/26/2016)
June 28, 2016 at 12:50 pm
johnmackintosh (6/23/2016)
I had no idea this was possible in SQL Server.
I've done some text mining work using n-grams using R, but I imagine it will...
June 28, 2016 at 12:46 pm
Smendle (6/27/2016)
Alan.B (6/24/2016)
If user selects CA then 'CA' is passed to the stored proc....
June 27, 2016 at 12:58 pm
You'll need to post the DDL for the tables you are querying for a better answer. Im not at a SQL Server so I can't look at the execution plan...
June 25, 2016 at 7:03 am
If it's a multi-select then SSRS passes the SSRS parameter values as a comma delimited string.
If user selects CA then 'CA' is passed to the stored proc. If the...
June 24, 2016 at 9:45 am
Viewing 15 posts - 616 through 630 (of 2,458 total)