300+ Database FAQs and Answers [Experienced / Freshers]

Database Interview Questions with Answers

Question: 1. Explain What Is Sqlite Transactions?

Answer:

The transaction is referred as a unit of work that is completed towards a database. It is the propagation of 1 or more adjustments to the database. Properties of transactions are decided via ACID.

Atomicity: It ensures that all work unit are correctly finished.
Consistency: It guarantees that the database changes states upon a successfully devoted transaction.
Isolation: It allows transactions to function independently of and obvious to every different.
Durability: It guarantees that the result or impact of a dedicated transaction persists in case of a system failure.
Question: 2. What Does Sql Stand For, And What Is It Used For?

Answer:

SQL stands for established question language, used with relational databases. It is used to query, replace, and retrieve the contents of databases.

Sybase Interview Questions
Question: three. List Out The Areas Where Sql Lite Works Well?

Answer:

SQL lite works properly with :

Embedded devices and the net of things.
Application document format.
Data Analysis.
Websites.
Cache for company statistics.
Server side database.
File files.
Internal or temporary databases.
Replacement for ad hoc disk files.
Experimental SQL language extensions.
Stand-in for an company database in the course of demos or testing.
Question: four. What Are Attributes?

Answer:

An characteristic is a column in a table.

MongoDB Tutorial
Question: 5. Differentiate Between A Having Clause And A Where Clause.

Answer:

HAVING CLAUSE :

HAVING CLAUSE is used only with the SELECT statement.
It is usually utilized in a GROUP BY clause in a query.
If GROUP BY is not used, HAVING works like a WHERE clause.
WHERE Clause :

It is implemented to every row earlier than they come to be part of the GROUP BY function in a query.
SSRS(SQL Server Reporting Services) Interview Questions
Question: 6. What Is Data Mining And How Can It Be Used?

Answer:

Data mining refers to any manner for collecting, analyzing, and summarizing the contents of a database. It may be used to judge the success of a enterprise, advertising campaigns, and to forecast destiny traits.

Question: 7. Mention What Are The Sql Lite Storage Classes?

Answer:

SQL lite garage classes include :

Null: The price is a NULL fee.
Integer: The value is a signed integer (1,2,three, and many others.).
Real: The cost is a floating factor price, stored as an eight byte IEEE floating factor number.
Text: The value is a text string, saved the usage of the database encoding ( UTF-eight, UTF-16BE).
BLOB (Binary Large Object): The price is a blob of records, exactly saved because it was enter.
Oracle Data Integrator (ODI) Interview Questions
Question: eight. What Is Database Normalization And Why Is It Done?

Answer:

This is the system of organizing facts in a database successfully, and it’s far done to make sure that connections and dependencies between facts make experience, and to take away redundant data.

Question: nine. What Do Constraints Do? What Are The Types Of Constraints?

Answer:

Constraints are used to prevent the database from dropping inner and outside integrity. The kinds are: test, now not null, unique, number one key, and foreign key.

Oracle RAC/ASM Interview Questions
Question: 10. What Are Fact Tables?

Answer:

Tables which music the development of a certain technique or interest, the number one tables of databases.

Question: eleven. Describe The Three Levels Of Data Abstraction?

Answer:

Physical stage: The lowest stage of abstraction describes how information are saved.
Logical level: The next higher level of abstraction, describes what statistics are stored in database and what courting among the ones statistics.
View degree: The maximum level of abstraction describes best a part of whole database.
Database Administration Interview Questions
Question: 12. Explain What Is The Use Of Sqlite Group By Clause?

Answer:

The SQLITE institution by clause is used in collaboration with the SELECT statement to arrange same records into businesses.

Sybase Interview Questions
Question: thirteen. When Is The Update_statistics Command Used?

Answer:

When the processing of large information is completed, this command is used.
Whenever massive quantity of deletions, amendment or replica takes place into the tables, the indexes want to be up to date to attend to those modifications. UPDATE_STATISTICS performs this activity.
Question: 14. Explain How Boolean Values In Sql Lite Are Stored?

Answer:

Boolean values in SQL lite are stored as integers 0 (fake) and 1 (authentic). SQL Lite does not have a separate Boolean storage class.

Question: 15. Explain What Is Sql Lite?

Answer:

SQL LITE is a primarily ACID compliant relational database management gadget contained in a tremendously small C programming library.

Oracle GoldenGate Interview Questions
Question: sixteen. Give A Comment On Transaction?

Answer:

Using transactions we will institution all SQL instructions into a unmarried unit.
The transaction starts offevolved with a few challenge and finishes only when all tasks inside it are over.
The transaction gets over correctly simplest while all commands in it are efficaciously over. Even if one command fails, the whole transaction fails.
The BEGIN TRANSACTION, ROLLBACK TRANSACTION, and COMMIT TRANSACTION statements are used to work with transactions.
A institution of duties starts offevolved with the begin declaration.
In case of any trouble, the rollback command is achieved to abort the transaction.
If all of the tasks run efficiently, all commands are accomplished via commit assertion.
Question: 17. List Out The Standard Sql Lite Commands?

Answer:

The preferred SQL Lite instructions interact with relational databases are just like SQL. They are

SELECT
CREATE
INSERT
UPDATE
DROP
DELETE
Based on their operational nature those instructions can be categorized.

MongoDB Interview Questions
Question: 18. Define The “integrity Rules”?

Answer:

There are two Integrity guidelines.

Entity Integrity: States that “Primary key can’t have NULL value”.

Referential Integrity: States that “Foreign Key can be both a NULL cost or ought to be Primary Key fee of other relation.

SSRS(SQL Server Reporting Services) Interview Questions
Question: 19. What Is Database?

Answer:

A database is a logically coherent series of facts with some inherent which means, representing some thing of actual world and that is designed, constructed and populated with statistics for a specific purpose.

Question: 20. Segregate Database Technology’s Development?

Answer:

The improvement of database era is split into:

Structure or information version
Navigational version
SQL/ relational version
Oracle Data Guard Interview Questions
Question: 21. What Are The Features Of Database Language?

Answer:

A database language may also include functions like:

DBMS-precise Configuration and control of garage engine. 
Computations to change of question outcomes with the aid of computations, like summing, counting, averaging, grouping, sorting and move-referencing Constraint enforcement Application Programming Interface.
Question: 22. What Do Database Languages Do?

Answer:

As unique-purpose languages, they have:

Data definition language
Data manipulation language
Query language
Question: 23. Define Database Model?

Answer:

A records version figuring out fundamentally how statistics may be stored, manipulated and organised and the structure of the database logically is referred to as database model.

Sql Server Dba Interview Questions
Question: 24. Enlist The Various Relationships Of Database?

Answer:

The diverse relationships of database are:

One-to-one: Single desk having drawn courting with every other desk having similar form of columns.
One-to-many: Two tables having primary and overseas key relation.
Many-to-many: Junction table having many tables associated with many tables.
Oracle Data Integrator (ODI) Interview Questions
Question: 25. Define Normalization?

Answer:

Organized statistics void of inconsistent dependency and redundancy within a database is known as normalization.

Question: 26. Enlist The Advantages Of Normalizing Database?

Answer:

Advantages of normalizing database are:

No duplicate entries
Saves garage area
Boasts the query performances.
Database Optimization Interview Questions
Question: 27. Define De Normalization?

Answer:

Boosting up database overall performance, adding of redundant statistics which in turn facilitates rid of complex facts is called denormalization.

Oracle RAC/ASM Interview Questions
Question: 28. Define Ddl And Dml?

Answer:

Managing houses and attributes of database is referred to as Data Definition Language(DDL).

Manipulating records in a database inclusive of placing, updating, deleting is described as Data Manipulation Language. (DML)

Question: 29. Enlist Some Commands Of Ddl?

Answer:

CREATE:  Create is used in the CREATE TABLE declaration.
Syntax is:     CREATE TABLE [column name] ( [column definitions] ) [ table parameters]

ALTER:  It enables in change of an present object of database.
Syntax is: ALTER objecttype objectname parameters.

DROP: It destroys an existing database, index, table or view.
Syntax is: DROP objecttype objectname.

Oracle Apps DBA Interview Questions
Question: 30. Define Union All Operator And Union?

Answer:

Full recordings of two tables is Union All operator.A distinct recording of two tables is Union.

Question: 31. Define Cursor?

Answer:

A database object which helps in manipulating statistics row by means of row representing a result set is known as cursor.

Question: 32. Enlist The Cursor Types?

Answer:

They are:

Dynamic: it displays changes while scrolling.

Static: doesn’t replicate adjustments while scrolling and works on recording of image.

Keyset: information modification with out reflection of new statistics is visible.

Question: 33. Define Sub-question?

Answer:

A question contained by means of a question is called Sub-query.

Database Administration Interview Questions
Question: 34. Why Is Group-clause Used?

Answer:

Group-clause makes use of aggregate values to be derived via accumulating similar information.

Question: 35. Compare Non-clustered And Clustered Index?

Answer:

Both having B-tree shape, non-clustered index has statistics pointers enabling one desk many non-clustered indexes while clustered index is wonderful for each desk.

Question: 36. Define Aggregate Functions?

Answer:

Functions which operate in opposition to a group of values and returning single value is referred to as aggregate functions.

Oracle GoldenGate Interview Questions
Question: 37. Define Scalar Functions?

Answer:

Scalar characteristic is trusted the argument given and returns sole cost.

Question: 38. What Restrictions Can You Apply When You Are Creating Views?

Answer:

Restrictions which might be applied are:

Only the present day database will have views.
You aren’t vulnerable to change any computed value in any specific view.
Integrity constants determine the capability of INSERT and DELETE.
Full-text index definitions cannot be carried out.
Temporary perspectives can not be created.
Temporary tables cannot include perspectives.
No affiliation with DEFAULT definitions.
Triggers consisting of INSTEAD OF is associated with perspectives.
Question: 39. Define “correlated Sub Queries”?

Answer:

A ‘correlated subquery’ is a sort of sub question however correlated subquery is reliant on every other question for a price that is again. In case of execution, the sub query is completed first and then the correlated query.

Question: forty. Define Data Warehousing?

Answer:

Storage and get right of entry to of records from the critical place with a purpose to take a few strategic choice is known as Data Warehousing. Enterprise management is used for dealing with the records whose framework is known as Data Warehousing.

MongoDB Interview Questions
Question: forty one. Define Join And Enlist Its Types?

Answer:

Joins assist in explaining the relation between one of a kind tables. They also permit you to select data with relation to data in every other table.

The various sorts are:

INNER JOINs: Blank rows are left inside the center while more than identical to 2 tables are joined.

OUTER JOINs: Divided into Left Outer Join and Right Outer Join. Blank rows are left at the specified facet via becoming a member of tables in different facet.
Other joins are CROSS JOINs, NATURAL JOINs, EQUI JOIN and NON-EQUI JOIN.

Question: forty two. What Do You Mean By Index Hunting?

Answer:

Indexes assist in enhancing the velocity in addition to the query overall performance of database. The technique of boosting the gathering of indexes is known as as Index searching.

Oracle Data Guard Interview Questions
Question: forty three. How Does Index Hunting Help In Improving Query Performance?

Answer:

Index looking facilitates in improving the velocity in addition to the query overall performance of database. The accompanied measures are done to do that:

The query optimizer is used to coordinate the study of queries with the workload and the high-quality use of queries counseled based totally in this.
Index, question distribution at the side of their overall performance is located to check the effect.
Tuning databases to a small collection of problem queries is likewise encouraged.
Question: 44. Enlist The Disadvantages Of Query?

Answer:

The negative aspects of question are:

No indexes
Stored processes are excessively compiled.
Triggers and approaches are without SET NOCOUNT ON.
Complicated joins making up inadequately written query.
Cursors and brief tables show off a horrific presentation.
Question: 45. Enlist Ways To Efficiently Code Transactions?

Answer:

Ways to effectively code transactions:

User input must not be allowed at the same time as transactions.
While browsing, transactions should no longer be opened of data.
Transactions need to be stored as small as viable.
Lower transaction segregation ranges.
Least information of records ought to be accessed while transacting.
Question: forty six. What Is Executive Plan?

Answer:

Executive plan can be described as:

SQL Server caches accrued technique or the plan of query execution and used thereafter by next calls.
An critical characteristic with regards to performance enhancement.
Data execution plan can be considered textually or graphically.
Question: forty seven. Define B-bushes?

Answer:

A facts shape within the form of tree which shops sorted facts and searches, insertions, sequential get entry to and deletions are allowed in logarithmic time.

Question: 48. Differentiate Table Scan From Index Scan?

Answer:

Iterating over all of the table rows is known as Table Scan whilst iterating over all of the index objects is described as Index Scan.

Question: forty nine. What Do You Mean By Fill Factor Concept With Respect To Indexes?

Answer:

Fill Factor can be defined as being that value which defines the share of left area on each leaf-level web page this is to be filled with statistics. A hundred is the default fee of Fill Factor.

Question: 50. Define Fragmentation?

Answer:

Fragmentation may be described as a database function of server that promotes manage on records which is stored at table level by means of the user.

Question: fifty one. What Do You Mean By Query Evaluation Engine?

Answer:

Query Evaluation Engine executes the low-level commands which might be generated with the aid of the compiler.

Question: fifty two. Define Ddl Interpreter?

Answer:

DDL statements are interpreted and recorded in tables known as metadata.

Question: fifty three. Define Database System?

Answer:

DBMS at the side of database is known as Database device.

Question: fifty four. Explain The Importance Of Partitioning?

Answer:

Splitting of 1 table that is massive into smaller database entities logically is referred to as database partitioning. Its blessings are:

To enhance question overall performance in situations dramatically when in general rows which are heavily accessed are in a single partition.
Accessing massive parts of a single partition.
Slower and less expensive storage media can be used for facts which is seldom used.
Question: fifty five. What Is Database Partitioning?

Answer:

Division of logical database into independent complete devices for improving its management, availability and performance is known as Database partitioning.

Question: 56. Define Atomicity And Aggregation?

Answer:

Atomicity: It’s an all or none concept which allows the consumer to be confident of incomplete transactions to be sorted. The moves regarding incomplete transactions are left undone in DBMS.

Aggregation: The gathered entities and their dating are aggregated in this version. It is mainly utilized in expressing relationships inside relationships.

Question: fifty seven. Enlist The Various Transaction Phases?

Answer:

The numerous transaction levels are:

Analysis Phase.
Redo Phase.
Undo Phase.
Question: 58. Define Object-orientated Model?

Answer:

Compilations of gadgets make up this model in which values are stored inside example variables that’s within the object. The object itself incorporates our bodies of object for its operation which are called techniques. Objects containing identical sort of variables and strategies are referred to as lessons.

Question: fifty nine. Define Entity?

Answer:

It can be defined as being a ‘element’ with an independent existence inside the real global.

Question: 60. Define Entity Set ?

Answer:

Compilation of all entries of any precise type of access within the database is called Entity Set.

Leave a Reply

Your email address will not be published. Required fields are marked *