Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
My notes
-- ///////////SCHEMA/////////////////////////////////////////////////// CREATE TABLE Animals ([animal] varchar(5), [legs] int, [colour] varchar(6)) ; INSERT INTO Animals ([animal], [legs], [colour]) VALUES ('cat', 4, 'red'), ('bird', 2, 'yellow'), ('dog', 4, 'red'), ('deer', 4, 'red'), ('fish', 0, 'blue'), ('dingo', 4, 'yellow') ; -- //////////////////////////////////////////////////////////////////// DECLARE @applicationId INT SET @applicationId = 0 insert into animals select animal, legs, 'red' from animals where legs = 4 EXCEPT select animal, legs, colour from animals where legs = 4 select * from animals
run
|
edit
|
history
|
help
0
https://rextester.com/IYRZ86271
Veterinary 1
exp7
First Query
begginer1
The relational division
tableA
Caronas
GKM_JOIN_1
BRYAN_BD