Viewing 15 posts - 121 through 135 (of 3,956 total)
Interesting solutions there gentleman, but regardless of how you set up your PRIMARY KEY/INDEXing, might this not be just a tad simpler?
SELECT name,
=MAX(
)
FROM
(
SELECT name,
='TableA'
...
April 20, 2015 at 6:21 pm
Making the assumption that APHQualified comes from your vwStudentsFiltered table, maybe this is what you really wanted.
--alter view vwStudentsAPHQualificationSummary as
select DistrictNum, DistrictName, APHQualified, sum(QualificationCount) as QualificationCount
from
(
select...
April 20, 2015 at 6:09 pm
I think this does the same thing and it looks a little easier on my eyes.
--alter view vwStudentsAPHQualificationSummary as
WITH StudentAPH_CTE (DistrictNum, DistrictName, APHQualified, QualificationCount)
AS
(
select st.DistrictNum,
...
April 20, 2015 at 6:00 pm
ScottPletcher (4/20/2015)
dwain.c (4/19/2015)
ScottPletcher (4/17/2015)
April 20, 2015 at 5:37 pm
domingo.sqlservercentral (4/20/2015)
CONSTRAINT chk_Person CHECK (P_Id>0 AND City='Sandnes')
but... it works independly for these columns, as two simple check constraints. I need a rule for...
April 20, 2015 at 5:36 pm
domingo.sqlservercentral (4/19/2015)
I'm sorry for error in the topic title, intentional is:
"validation rule" on a row of table?
I'm looking for validation data in the table - when inserting or updating the...
April 19, 2015 at 6:36 pm
dwain.c (4/19/2015)
Eirikur Eiriksson (4/19/2015)
Grant Fritchey (4/19/2015)
Eirikur Eiriksson (4/19/2015)
spaghettidba (4/19/2015)
April 19, 2015 at 5:38 pm
Eirikur Eiriksson (4/19/2015)
Grant Fritchey (4/19/2015)
Eirikur Eiriksson (4/19/2015)
spaghettidba (4/19/2015)
April 19, 2015 at 5:36 pm
ScottPletcher (4/17/2015)
April 19, 2015 at 5:30 pm
Naive, eh Eirikur? Hehe. I like that.
As I said it's been awhile since I was playing around with functional encapsulation of this process, and because of the elapsed...
April 17, 2015 at 6:51 am
dwain.c (4/16/2015)
Why has no one mentioned using an INSTEAD OF INSERT TRIGGER?It would seem to me that this would take care of the audit issue.
Here's a quick example:
CREATE TABLE dbo.MYTABLE(
ID...
April 17, 2015 at 2:53 am
Oh yes, I forgot to mention the reason why you can't use that CROSS JOIN to repeatedly update is A Hazard of Using the SQL Update Statement [/url]
April 16, 2015 at 9:54 pm
Alan.B called me out through a PM to this thread, so you can thank him for what follows assuming it works for you.
If I understand correctly, this is an operation...
April 16, 2015 at 9:52 pm
Jeff Moden (4/16/2015)
Ummm.... are you sure that's ANSI Pig Latin??? 😀
Not sure. Where's Joe Celko when you need him?
April 16, 2015 at 6:49 pm
Why has no one mentioned using an INSTEAD OF INSERT TRIGGER?
It would seem to me that this would take care of the audit issue.
April 16, 2015 at 6:03 pm
Viewing 15 posts - 121 through 135 (of 3,956 total)