Viewing 8 posts - 1 through 8 (of 8 total)
If table Teaching2 is defined as
CREATE TABLE dbo.Teaching2
(
StudentId INT,
InstructorId INT
)
Then how can the (StudentId,CourseId) combination be the candidate key?
February 8, 2021 at 1:31 pm
EXCELLENT Article!
All I can say is more, more... I want to read more articles like this one!
You can bet I will be sharing this one with...
October 7, 2016 at 5:34 am
Could the if statement be simplified to be...
if datediff(dd,dateadd(yy,@age,@dob),@getdate) < 0
set @age = @age - 1
December 2, 2014 at 6:21 am
If you have the query...
SELECT
.[ID]
, .[Item]
, .[Price]
, .[OrderDate]
, .[Units]
, .[ShipmentDate]
FROM [#Source]
EXCEPT
SELECT [T].[ID]
, [T].[Item]
, [T].[Price]
, [T].[OrderDate]
, [T].[Units]
, [T].[ShipmentDate]
FROM [#Target] [T];
And are thinking about speeding up the query as...
March 26, 2014 at 5:32 am
FootyRef (3/25/2014)
SELECT...
March 25, 2014 at 2:14 pm
Yes, young Grasshopper. The example doesn't demonstrate the purpose of the article. If new records were inserted into one of the tables, or records deleted from either table,...
March 25, 2014 at 1:30 pm
In other words, the article shows how to use [font="Courier New"]EXCEPT[/font] to do something really cool. Compare records with matching primary keys to see if they are identical. ...
March 25, 2014 at 6:20 am
I have on my clipboard the identical query posted by deroby (I hope I'm pronouncing that correctly.) LEFT OUTER JOIN ... WHERE <somefield> IS NULL is a good step...
November 12, 2013 at 5:58 am
Viewing 8 posts - 1 through 8 (of 8 total)