Database || Old paper solution 2016

  16. a) insert into users(‘Ram’, ‘12345’, ‘[email protected]’, ‘2002-01-01’, ‘m’, curdate()); b)SELECT * from users where dateOfBirth < ‘2000-01-01’; c) select categoryName from categories where categoryID not in (select categoryID from expenses)); d)select username from users where in(select userID from expenses where amount < (select amount from expenses where userID = 405)));

Continue Reading

Unit 4: Integrity Constraints

  Integrity Constraints Integrity constraints are a set of rules. It is used to maintain the quality of information. Integrity constraints ensure that the data insertion, updating, and other processes have to be performed in such a way that data integrity is not affected. Thus, integrity constraint is used to guard against accidental damage to […]

Continue Reading