Viewing 15 posts - 316 through 330 (of 2,458 total)
I think Luis' solution is the way to go. To answer your question about the trailing hyphen - you could go with:
AND QuestionableColumn NOT LIKE '%-'
As Drew mentioned, this will...
January 4, 2017 at 12:52 pm
January 3, 2017 at 9:45 pm
Sean Lange (1/3/2017)
January 3, 2017 at 9:39 pm
mcfarlandparkway (1/3/2017)
Here we are returning 4 columns as I mentioned only one @NUM.There is another reason to use table valued function.
Switching gears a little... If your statement is in response...
January 3, 2017 at 7:38 pm
drew.allen (1/3/2017)
Alan.B (1/3/2017)
January 3, 2017 at 1:53 pm
I'm no expert at either but have worked with both. I'm going to assume that by, "Postgres on AWS" you are talking about Redshift.
My experience has been that a beefy...
January 3, 2017 at 1:08 pm
So what you want is the MAX(COUNT) of sales for each (e.g. "GROUP BY") EmployeeID by Month and Year. Let's start with some sample data; since you did not provide...
January 3, 2017 at 12:51 pm
Great post Steve, 5 stars.
I found out a few weeks back that my department is moving to Phoenix AZ. I did not chose to transfer so I'll be back...
January 3, 2017 at 11:57 am
sgmunson (1/2/2017)
Jeff Moden (12/28/2016)
January 2, 2017 at 8:35 am
Zososql (12/31/2016)
December 31, 2016 at 5:58 pm
Phil Parkin (12/27/2016)
Nice, Alan. I saw the word 'split' and I was off like one of Pavlov's four-legged friends. Did not even consider alternatives.
😛
I did make the assumption that there...
December 27, 2016 at 7:42 pm
mcfarlandparkway (12/27/2016)
How to parse(split) this 9000430944:7|Information
-> 9000430944 - emp number
-- 7 - stud number
--Information - Description
How to split on pipe? and How to...
December 27, 2016 at 6:19 pm
comic_rage (12/27/2016)
Thanks for the input, is this correct approach,
In my VIEW, vMyTable
select col1,
isnull(column50,1) as column50,
column51
from dbo.MyTable
where Column50 = 1
In the MyTable indexes, I added the following script
create nonclustered index ixIndex_Column50...
December 27, 2016 at 4:51 pm
I'm with Jeff, there is no substitute for T-SQL expertise and database design. SQL Server Developer edition (2014 and 2016) is identical to SQL Server Enterprise except that you can't...
December 21, 2016 at 5:28 pm
I don't see any problem with using a leading bit column for an index. I can think of many more examples where it would be appropriate as part of a...
December 21, 2016 at 10:06 am
Viewing 15 posts - 316 through 330 (of 2,458 total)