DBMS 面试题与答案
Test your skills through the online practice test: DBMS Quiz Online Practice Test
相关差异对比
问题 21. What is CROSS JOIN? or What is Cartesian product?
CROSS JOIN or CARTESIAN PRODUCT combines all rows from both tables. Number of rows will be product of the number of rows in each table. In real life scenario I can not imagine where we will want to use a Cartesian product. But there are scenarios where we would like permutation and combination probably Cartesian would be the easiest way to achieve it.
这有帮助吗?
添加评论
查看评论
问题 22. How to select the first record in a given set of rows?
Select top 1 * from wb.wbEmployees;
这有帮助吗?
添加评论
查看评论
问题 23. What is the default -SORT order for a SQL?
ASCENDING
这有帮助吗?
添加评论
查看评论
问题 24. What is a self-join?
If we want to join two instances of the same table we can use self-join.
这有帮助吗?
添加评论
查看评论
问题 25. Whats the difference between DELETE and TRUNCATE?
Following are difference between them:
- DELETE TABLE syntax logs the deletes thus making the delete operations low. TRUNCATE table does not log any information but it logs information about deallocation of data page of the table. So TRUNCATE table is faster as compared to delete table.
- DELETE table can have criteria while TRUNCATE can not.
- TRUNCATE table can not have triggers.
这有帮助吗?
添加评论
查看评论
用户评价最有帮助的内容:
- What is database or database management systems (DBMS)?
- What is SQL?
- What's the difference between file and database? Can files qualify as a database?
- What are E-R diagrams?
- Whats difference between DBMS and RDBMS?