Hello guys, if you are preparing for programming or technical interview then you must prepare for Database and SQL, these two are the most important skill for any programming or software development job be it a Java developer, C++ developer or a web developer. Earlier, I have shared 15 SQL Query Interview Questions and in this article, I am going to share 30 common database interview questions. I am not sharing the answer though as I expect you to already know the answers of these basic Database questions but if you struggle with any questions, ping me on comments section and I might just add the answers as well, depending upon what you guys like.
30 Database Interview Questions for Programmers and DBA
1) What is Database? What is Oracle, PostgreSQL, or MSQL?
2) What is a Relational Database? What is NoSQL? Is it also a database?
3) What is Normalization? Why it is important?
4) When do you Say a particular table is in 1st, 2nd, or 3rd normal form?
5) What is Boyce Code normal form or BCNF?
6) What is Referential Integrity in the database?
7) What are different Database Isolation levels?
8) Which Database you worked? What was the version?
9) What is ACID properties of a database transaction?
10) How do you rollback a transaction in SQL Server?
11) What are database indexes? How does it affect query performance?
12) Why not you create index for every column in table?
13) How do you create a table by copying data from another table?
14) What is the fastest way to empty a database?
15) How do you change the name of a column in a table?
16) How do you convert a NUMERIC column to FLOAT in SQL Server?
17) What is an IDENTITY column in a database?
18) What is database statistics?
19) What is temp table in database?
20) Name five different data types from your favorite database? e.g. Oracle, Or SQL Server?
21) What is a key? A candidate key? A primary key? An alternate key? A foreign key?
22) What are the data types available and when to use which ones?
23) What is stored procedure in database?
24) What is difference between implicit and explicit curser?
25) What is triggers? Why you use trigger?
26) What is View? Why you use should use?
27) Difference between INNER and OUTER JOIN?
28) What are some situations where you would de-normalize data?
29) What is SQL injection and how do you prevent it?
30) What is the largest database system you've worked on in terms of: # tables, # rows, # users.
31) What is the timestamp datatype used for in SQL Server?
32) How do you remove duplicate rows from a result set?
33) What is Execution Plan? How does it help you?
34) What is a cursor and when would you use it (or not) and why?
- Difference between UNION and UNION ALL in SQL
- MySQL vs NoSQL comparison
- 10 Examples of ALTER command in SQL
- How to use WHERE and HAVING clause in SQL
- How to use Stored Procedure in SQL?
- 4 Examples of CASE expression in SQL Server
- How to create and rollback transaction in database?
- What are T-SQL Window Functions?
- How to convert String to Date in SQL?
- Difference between Self and Equi join in SQL
- How to find top 10 Records in SQL
- Difference between Truncate, Drop, and Delete in SQL
No comments:
Post a Comment