Beruflich Dokumente
Kultur Dokumente
4) How do you maintain database integrity where deletions from one table
will automatically cause deletions in another table?
You create a trigger that will automatically delete elements in the second table when
elements from the first table are removed.
5) What port does SQL server run on?
1433 is the standard port for SQL server.
4) What is the SQL CASE statement used for and give an example?
It allows you to embed an if-else like clause in the SELECT clause.
SELECT Employee_Name, CASE Location
ELSE Bonus
END
"New Bonus"
FROM Employee;