Viewing 15 posts - 331 through 345 (of 2,462 total)
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...
-- Itzik Ben-Gan 2001
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...
-- Itzik Ben-Gan 2001
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...
-- Itzik Ben-Gan 2001
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...
-- Itzik Ben-Gan 2001
December 21, 2016 at 10:06 am
First some sample data:
USE tempdb; -- a safe place for testing on a dev/sandbox instance
GO
-- create table for storing sample data
CREATE TABLE dbo.TableA
(
AssetName nvarchar(50),
AssetID...
-- Itzik Ben-Gan 2001
December 20, 2016 at 9:09 pm
First, Welcome - you've definately come to the right place. SQLServerCentral.com is a goldmine.
Ditto everything Eric said. I would also highly recommend:
Star Schema The Complete Reference
Next, regarding the...
-- Itzik Ben-Gan 2001
December 16, 2016 at 12:24 pm
I've always found that error to be misleading and is usually a result (in my experience anyhow) of not including a record for a non-nullable column. This will give me...
-- Itzik Ben-Gan 2001
December 16, 2016 at 11:49 am
Me: "OK, I'll do it. You don't have to keep reminding me every 6 months!"
Unfortunately the wife and I don't always find the same things funny. :ermm:
-- Itzik Ben-Gan 2001
December 13, 2016 at 9:34 pm
Welcome to SSC!
I'm still not 100% clear on what the output should look like and this solution might not be complete but it's a start...
DECLARE @sampledata TABLE(ip varchar(12) NOT...
-- Itzik Ben-Gan 2001
December 13, 2016 at 3:30 pm
NewSSAS (12/12/2016)
It worked when I removed the DECLARE and Set from the query and I am trying to set the...
-- Itzik Ben-Gan 2001
December 13, 2016 at 8:41 am
Yes - this logic should be put into a stored proc. What the stored proc looks like will depend on what you are doing with @Current_College_year & @Prior_College_year.
If these...
-- Itzik Ben-Gan 2001
December 12, 2016 at 2:48 pm
Indianrock (12/9/2016)
-- Itzik Ben-Gan 2001
December 9, 2016 at 12:35 pm
sgmunson (12/8/2016)
Alan.B (12/8/2016)
-- Itzik Ben-Gan 2001
December 8, 2016 at 2:36 pm
That FULL JOIN solution was what I'd seen before - The HAVING solution works just as well. Excellent work, thanks Luis!
-- Itzik Ben-Gan 2001
December 8, 2016 at 1:56 pm
On a similar note, I really like CONCAT (available for SQL Serve 2012+) because it's cleaner and circumvents the need to do any casting/converting when dealing with numbers.
DECLARE @table...
-- Itzik Ben-Gan 2001
December 8, 2016 at 11:37 am
Viewing 15 posts - 331 through 345 (of 2,462 total)