Core Database Concepts and SQL
Test your knowledge of fundamental database management system concepts including SQL transactions, normalization forms, table joins, and query writing with date functions.
Questions
Question 1 Multiple Choice (Single Answer)
Which of the following commands is used to make all the changes permanent in a transaction?
- Commit
- Rollback
- Save
- Savepoint
- Set transaction
Question 2 Multiple Choice (Single Answer)
A relational schema in BCNF(3.5 NF) can still have which of the following dependencies?
- Partial dependency
- Transitive dependency
- Multivalued dependency
- Join dependency
- Both 3 and 4
Question 3 Multiple Choice (Single Answer)
Which of the following joins is implicitly employed on two tables, when nothing is specified?
- Outer join
- Inner join
- Cartesian join
- Left inner join
- Right inner join
Question 4 Multiple Choice (Single Answer)
Which of the following commands is used to delete the transaction and undo all the changes?
- Commit
- Rollback
- Undo
- Cancel transaction
- None of these
Question 5 Multiple Choice (Single Answer)
Consider the following table.
| empid | empname | joiningdate |
| 1 | John | 2013-08-10 |
| 2 | Micky | 2012-08-10 |
Write a query to retrieve all th employee names, who have worked for more than 200 days.
- select empname from emp where datediff(curdate(),joiningdate)>20;
- select empname from emp where datediff(curdate(),joiningdate)>200;
- select empname from emp where datediff(joiningdate,curdate())>200;
- select from emp where datediff(curdate(),joiningdate)>200;
- none of these