Viewing 15 posts - 331 through 345 (of 2,458 total)
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...
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...
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...
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:
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...
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...
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...
December 12, 2016 at 2:48 pm
Indianrock (12/9/2016)
December 9, 2016 at 12:35 pm
sgmunson (12/8/2016)
Alan.B (12/8/2016)
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!
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...
December 8, 2016 at 11:37 am
Jeff Moden (12/7/2016)
This Saturday, 12/10, marks the anniversary of a very unhappy event for me...
Ditto.
December 8, 2016 at 10:09 am
Doing some code cleanup today, running into lots of this
insert into <someTable>
select <a bunch of stuff>
...
December 8, 2016 at 10:00 am
Manic Star (12/8/2016)
Luis Cazares (12/8/2016)
Ed Wagner (12/8/2016)
Revenant (12/8/2016)
Kaye Cahs (12/8/2016)
Manic Star (12/8/2016)
crookj (12/8/2016)
Brandie Tarvin (12/8/2016)
Stuart Davies (12/8/2016)
Ray K (12/7/2016)
whereisSQL? (12/7/2016)
Manic Star (12/7/2016)
Ed Wagner (12/7/2016)
djj (12/7/2016)
Luis Cazares (12/7/2016)
Ed Wagner (12/7/2016)
DamianC (12/7/2016)
Revenant...
December 8, 2016 at 9:56 am
You don't need coalesce here. NULL values are neither equal nor unequal when compared to other because NULL is unknown. Does a bag with an unknown number of apples have...
December 6, 2016 at 8:19 am
Viewing 15 posts - 331 through 345 (of 2,458 total)