SlideShare a Scribd company logo
What is a database?
- Database offer a single point of mechanism for storing and retrieving information with the help
of tables.
- Table is made up of columns and rows where each column stores specific attribute and each
row displays a value for the corresponding attribute.
- It is a structure that stores information about the attributes of the entities and relationships
among them.
- It also stores data types for attributes and indexes.
- Well known DBMS include Oracle, ibm db2, Microsoft sql server, Microsoft access, mysql and
sqlLite.
What are the different types of storage systems available and which one is used by Oracle?
Two types of storage systems are available
- Relational Database Management System (RDBMS) and Hierarchical Storage Management
System (HSM)
- Most databases use RDBMS model, Oracle also uses RDBMS model.
- Hierarchical Storage Management System (HSM)
- Information Management System (IMS) from IBM.
- Integrated Database Management System (IDMS) from CA.
Explain some examples of join methods.
Join methods are of mainly 3 types.
Merge Join -
- Sorting both the tables using join key and then merge the rows which are sorted.
Nested loop join -
- It gets a result set after applying filter conditions based on the outer table.
- Then it joins the inner table with the respective result set.
Hash join -
- It uses hash algorithm first on smaller table and then on the other table to produce joined
columns. After that matching rows are returned.
What are the components of logical data model and list some differences between logical and
physical data model?
Components of logical data model are
Entity - Entity refers to an object that we use to store information. It has its own table.
Attribute - It represents the information of the entity that we are interested in. It is stored as a
column of the table and has specific datatype associated with it.
Record - It refers to a collection of all the properties associated with an entity for one specific
condition, represented as row in a table.
Domain - It is the set of all the possible values for a particular attribute.
Relation - Represents a relation between two entities.
Difference between Logical and Physical Data Model.
- Logical data model represents database in terms of logical objects, such as entities and
relationships.
- Physical data model represents database in terms of physical objects, such as tables and
constraints.
What is Normalization? What are the different forms of Normalization?
- Normalization is a process of organizing the fields and tables of a relational database to
minimize redundancy and dependency.
- It saves storage space and ensures consistency of our data.
There are six different normal forms
First Normal Form - If all underlying domains contain atomic values only.
Second Normal Form - If it is in first normal form and every non key attribute is fully functionally
dependent on primary key.
Third Normal Form - If it is in 2nd normal form and every non key attribute is non transitively
dependent on the primary key.
Boyce Codd Normal Form - A relation R is in BCNF if and only every determinant is a candidate
key.
Fourth Normal Form
Fifth Normal Form
Differentiate between a database and Instance and explain relation between them?
- Database is a collection of three important files which include data files, control files and redo
log files which physically exist on a disk
- Whereas instance is a combination of oracle background process (SMON, PMON, DBWR,
LGWR) and memory structure (SGA, PGA).
- Oracle background processes running on a computer share same memory area.
- An instance can mount and open only a single database, ever.
- A database may be mounted and opened by one or more instances (using RAC).
What are the components of SGA?
- SGA is used to store shared information across all database users.
- It mainly includes Library cache, Data Dictionary cache, Database Buffer Cache, Redo log Buffer
cache, Shared Pool.
Library cache - It is used to store Oracle statements.
Data Dictionary Cache - It contains the definition of Database objects and privileges granted to
users.
Data Base buffer cache - It holds copies of data blocks which are frequently accessed, so that
they can be retrieved faster for any future requests.
Redo log buffer cache - It records all changes made to the data files.
Difference between SGA and PGA.
- SGA (System Global Area) is a memory area allocated during an instance start up.
- SGA is allocated as 40% of RAM size by default.
- SGA size is controlled by DB_CACHE_SIZE parameter defined in initialization parameter file
(init.ora file or SPFILE).
- PGA (Program or Process Global Area) is a memory area that stores a user session specific
information.
- PGA is allocated as 10% of RAM size by default.
What are the disk components in Oracle?
These are the physical components which gets stored in the disk.
- Data files
- Redo Log files
- Control files
- Password files
- Parameter files
What is System Change Number (SCN)?
- SCN is a unique ID that Oracle generates for every committed transaction.
- It is recorded for every change in the redo entry.
- SCN is also generated for every checkpoint (CKPT) occurred.
- It is an ever increasing number which is updated for every 3 seconds
- You can get the SCN number by querying select SCN from v$database from SQLPLUS.
Difference between Rank ,row number
What is the purpose of CTE
OLAP and OLTP difference
DatawareHouse and Database difference
SELECT ProductNumber, Name, "Price Range" =
CASE
WHEN ListPrice = 0 THEN 'Mfg item - not for resale'
WHEN ListPrice < 50 THEN 'Under $50'
WHEN ListPrice >= 50 and ListPrice < 250 THEN 'Under $250'
WHEN ListPrice >= 250 and ListPrice < 1000 THEN 'Under $1000'
ELSE 'Over $1000'
END
FROM Production.Product
ORDER BY ProductNumber ;
GO
[ OR ]
UPDATE T1
set amount =
(case
when T1.Id = 1 then 1000
when T1.Id = 2 then 2000
when T1.Id = 3 then 3000
when T1.Id = 4 then 4000
end)
[OR]
UPDATE T1
set amount =
(case
when T1.Id = 1 then t1.id * 1000
when T1.Id = 2 then t1.id* 2000
when T1.Id = 3 then t1.id* 3000
when T1.Id = 4 then t1.id * 4000
end)
GO
[ OR ]
UPDATE T1
set amount =
(case
when T1.Id = 1 then 1000
when T1.Id = 2 then 2000
when T1.Id = 3 then 3000
when T1.Id = 4 then 4000
end)
[OR]
UPDATE T1
set amount =
(case
when T1.Id = 1 then t1.id * 1000
when T1.Id = 2 then t1.id* 2000
when T1.Id = 3 then t1.id* 3000
when T1.Id = 4 then t1.id * 4000
end)

More Related Content

What's hot

Ms sql-server
Ms sql-serverMs sql-server
Ms sql-server
Md.Mojibul Hoque
 
Database Architecture and Basic Concepts
Database Architecture and Basic ConceptsDatabase Architecture and Basic Concepts
Database Architecture and Basic Concepts
Tony Wong
 
Sql ppt
Sql pptSql ppt
Sql a practical introduction
Sql   a practical introductionSql   a practical introduction
Sql a practical introductionHasan Kata
 
Chapter 1 introduction to sql server
Chapter 1 introduction to sql serverChapter 1 introduction to sql server
Chapter 1 introduction to sql server
baabtra.com - No. 1 supplier of quality freshers
 
Sql Server Interview Question
Sql Server Interview QuestionSql Server Interview Question
Sql Server Interview Question
pukal rani
 
Database management system chapter12
Database management system chapter12Database management system chapter12
Database management system chapter12Md. Mahedi Mahfuj
 
Viva voce
Viva voceViva voce
PostgreSQL Tutorial For Beginners | Edureka
PostgreSQL Tutorial For Beginners | EdurekaPostgreSQL Tutorial For Beginners | Edureka
PostgreSQL Tutorial For Beginners | Edureka
Edureka!
 
Oracle/SQL For Beginners - DDL | DML | DCL | TCL - Quick Learning
Oracle/SQL For Beginners - DDL | DML | DCL | TCL - Quick LearningOracle/SQL For Beginners - DDL | DML | DCL | TCL - Quick Learning
Oracle/SQL For Beginners - DDL | DML | DCL | TCL - Quick Learning
eVideoTuition
 
Structured query language
Structured query languageStructured query language
Structured query language
Rashid Ansari
 
Unit 4 data storage and querying
Unit 4   data storage and queryingUnit 4   data storage and querying
Unit 4 data storage and querying
Ravindran Kannan
 
DDL And DML
DDL And DMLDDL And DML
DDL And DML
pnp @in
 
Sql commands
Sql commandsSql commands
Sql commands
Prof. Dr. K. Adisesha
 
Data base
Data baseData base
Data base
Girish Gowda
 
Relational Database Management System
Relational Database Management SystemRelational Database Management System
Relational Database Management System
sweetysweety8
 
Sql intro & ddl 1
Sql intro & ddl 1Sql intro & ddl 1
Sql intro & ddl 1
Dr. C.V. Suresh Babu
 
Data concepts
Data conceptsData concepts
Data concepts
Sachidananda M H
 
Getting Started with MySQL I
Getting Started with MySQL IGetting Started with MySQL I
Getting Started with MySQL I
Sankhya_Analytics
 

What's hot (20)

Ms sql-server
Ms sql-serverMs sql-server
Ms sql-server
 
Database Architecture and Basic Concepts
Database Architecture and Basic ConceptsDatabase Architecture and Basic Concepts
Database Architecture and Basic Concepts
 
Sql ppt
Sql pptSql ppt
Sql ppt
 
Sql a practical introduction
Sql   a practical introductionSql   a practical introduction
Sql a practical introduction
 
Chapter 1 introduction to sql server
Chapter 1 introduction to sql serverChapter 1 introduction to sql server
Chapter 1 introduction to sql server
 
Sql Server Interview Question
Sql Server Interview QuestionSql Server Interview Question
Sql Server Interview Question
 
Database management system chapter12
Database management system chapter12Database management system chapter12
Database management system chapter12
 
Viva voce
Viva voceViva voce
Viva voce
 
PostgreSQL Tutorial For Beginners | Edureka
PostgreSQL Tutorial For Beginners | EdurekaPostgreSQL Tutorial For Beginners | Edureka
PostgreSQL Tutorial For Beginners | Edureka
 
Oracle/SQL For Beginners - DDL | DML | DCL | TCL - Quick Learning
Oracle/SQL For Beginners - DDL | DML | DCL | TCL - Quick LearningOracle/SQL For Beginners - DDL | DML | DCL | TCL - Quick Learning
Oracle/SQL For Beginners - DDL | DML | DCL | TCL - Quick Learning
 
Structured query language
Structured query languageStructured query language
Structured query language
 
Unit 4 data storage and querying
Unit 4   data storage and queryingUnit 4   data storage and querying
Unit 4 data storage and querying
 
DDL And DML
DDL And DMLDDL And DML
DDL And DML
 
Sql commands
Sql commandsSql commands
Sql commands
 
Data base
Data baseData base
Data base
 
Relational Database Management System
Relational Database Management SystemRelational Database Management System
Relational Database Management System
 
PT- Oracle session01
PT- Oracle session01 PT- Oracle session01
PT- Oracle session01
 
Sql intro & ddl 1
Sql intro & ddl 1Sql intro & ddl 1
Sql intro & ddl 1
 
Data concepts
Data conceptsData concepts
Data concepts
 
Getting Started with MySQL I
Getting Started with MySQL IGetting Started with MySQL I
Getting Started with MySQL I
 

Similar to Database Administrator interview questions and answers

Bt0066 database management system1
Bt0066 database management system1Bt0066 database management system1
Bt0066 database management system1
Techglyphs
 
Oracle Database Overview
Oracle Database OverviewOracle Database Overview
Oracle Database Overviewhonglee71
 
Oracle DBA Tutorial for Beginners -Oracle training institute in bangalore
Oracle DBA Tutorial for Beginners -Oracle training institute in bangaloreOracle DBA Tutorial for Beginners -Oracle training institute in bangalore
Oracle DBA Tutorial for Beginners -Oracle training institute in bangalore
TIB Academy
 
Introduction to Oracle Database
Introduction to Oracle DatabaseIntroduction to Oracle Database
Introduction to Oracle Database
puja_dhar
 
Oracle tutorial
Oracle tutorialOracle tutorial
Oracle tutorial
Lalit Shaktawat
 
Overview of oracle database
Overview of oracle databaseOverview of oracle database
Overview of oracle database
Samar Prasad
 
Overview of oracle database
Overview of oracle databaseOverview of oracle database
Overview of oracle databaseSamar Prasad
 
Oracle architecture
Oracle architectureOracle architecture
Oracle architecture
Sandeep Kamath
 
1650607.ppt
1650607.ppt1650607.ppt
1650607.ppt
KalsoomTahir2
 
Introduction to oracle
Introduction to oracleIntroduction to oracle
Introduction to oracle
Sumit Tambe
 
Introduction to oracle(2)
Introduction to oracle(2)Introduction to oracle(2)
Introduction to oracle(2)
Sumit Tambe
 
Database system concepts
Database system conceptsDatabase system concepts
Database system conceptsKumar
 
Introduction to oracle
Introduction to oracleIntroduction to oracle
Introduction to oracle
Madhavendra Dutt
 
Programming concepts and data management
Programming concepts and data management Programming concepts and data management
Programming concepts and data management
Wulax37
 
Adv DB - Full Handout.pdf
Adv DB - Full Handout.pdfAdv DB - Full Handout.pdf
Adv DB - Full Handout.pdf
3BRBoruMedia
 

Similar to Database Administrator interview questions and answers (20)

Bt0066 database management system1
Bt0066 database management system1Bt0066 database management system1
Bt0066 database management system1
 
Oracle Database Overview
Oracle Database OverviewOracle Database Overview
Oracle Database Overview
 
Oracle DBA Tutorial for Beginners -Oracle training institute in bangalore
Oracle DBA Tutorial for Beginners -Oracle training institute in bangaloreOracle DBA Tutorial for Beginners -Oracle training institute in bangalore
Oracle DBA Tutorial for Beginners -Oracle training institute in bangalore
 
Lecture2 oracle ppt
Lecture2 oracle pptLecture2 oracle ppt
Lecture2 oracle ppt
 
Introduction to Oracle Database
Introduction to Oracle DatabaseIntroduction to Oracle Database
Introduction to Oracle Database
 
Oracle tutorial
Oracle tutorialOracle tutorial
Oracle tutorial
 
Sql server
Sql serverSql server
Sql server
 
Introduction to oracle
Introduction to oracleIntroduction to oracle
Introduction to oracle
 
Oracle archi ppt
Oracle archi pptOracle archi ppt
Oracle archi ppt
 
Overview of oracle database
Overview of oracle databaseOverview of oracle database
Overview of oracle database
 
Overview of oracle database
Overview of oracle databaseOverview of oracle database
Overview of oracle database
 
Oracle architecture
Oracle architectureOracle architecture
Oracle architecture
 
1650607.ppt
1650607.ppt1650607.ppt
1650607.ppt
 
Introduction to oracle
Introduction to oracleIntroduction to oracle
Introduction to oracle
 
Introduction to oracle(2)
Introduction to oracle(2)Introduction to oracle(2)
Introduction to oracle(2)
 
No sql
No sqlNo sql
No sql
 
Database system concepts
Database system conceptsDatabase system concepts
Database system concepts
 
Introduction to oracle
Introduction to oracleIntroduction to oracle
Introduction to oracle
 
Programming concepts and data management
Programming concepts and data management Programming concepts and data management
Programming concepts and data management
 
Adv DB - Full Handout.pdf
Adv DB - Full Handout.pdfAdv DB - Full Handout.pdf
Adv DB - Full Handout.pdf
 

Recently uploaded

一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
ewymefz
 
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
ukgaet
 
My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.
rwarrenll
 
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
AbhimanyuSinha9
 
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
John Andrews
 
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
u86oixdj
 
FP Growth Algorithm and its Applications
FP Growth Algorithm and its ApplicationsFP Growth Algorithm and its Applications
FP Growth Algorithm and its Applications
MaleehaSheikh2
 
一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单
enxupq
 
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
vcaxypu
 
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
vcaxypu
 
Predicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Predicting Product Ad Campaign Performance: A Data Analysis Project PresentationPredicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Predicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Boston Institute of Analytics
 
Q1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year ReboundQ1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year Rebound
Oppotus
 
一比一原版(NYU毕业证)纽约大学毕业证成绩单
一比一原版(NYU毕业证)纽约大学毕业证成绩单一比一原版(NYU毕业证)纽约大学毕业证成绩单
一比一原版(NYU毕业证)纽约大学毕业证成绩单
ewymefz
 
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
NABLAS株式会社
 
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
ewymefz
 
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
Timothy Spann
 
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
axoqas
 
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
pchutichetpong
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
ewymefz
 

Recently uploaded (20)

一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
 
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
 
My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.
 
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
 
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
 
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
 
FP Growth Algorithm and its Applications
FP Growth Algorithm and its ApplicationsFP Growth Algorithm and its Applications
FP Growth Algorithm and its Applications
 
一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单
 
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
 
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
 
Predicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Predicting Product Ad Campaign Performance: A Data Analysis Project PresentationPredicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Predicting Product Ad Campaign Performance: A Data Analysis Project Presentation
 
Q1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year ReboundQ1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year Rebound
 
一比一原版(NYU毕业证)纽约大学毕业证成绩单
一比一原版(NYU毕业证)纽约大学毕业证成绩单一比一原版(NYU毕业证)纽约大学毕业证成绩单
一比一原版(NYU毕业证)纽约大学毕业证成绩单
 
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
 
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
 
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
 
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
 
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
 

Database Administrator interview questions and answers

  • 1. What is a database? - Database offer a single point of mechanism for storing and retrieving information with the help of tables. - Table is made up of columns and rows where each column stores specific attribute and each row displays a value for the corresponding attribute. - It is a structure that stores information about the attributes of the entities and relationships among them. - It also stores data types for attributes and indexes. - Well known DBMS include Oracle, ibm db2, Microsoft sql server, Microsoft access, mysql and sqlLite. What are the different types of storage systems available and which one is used by Oracle? Two types of storage systems are available - Relational Database Management System (RDBMS) and Hierarchical Storage Management System (HSM) - Most databases use RDBMS model, Oracle also uses RDBMS model. - Hierarchical Storage Management System (HSM) - Information Management System (IMS) from IBM. - Integrated Database Management System (IDMS) from CA. Explain some examples of join methods. Join methods are of mainly 3 types. Merge Join - - Sorting both the tables using join key and then merge the rows which are sorted. Nested loop join - - It gets a result set after applying filter conditions based on the outer table. - Then it joins the inner table with the respective result set. Hash join - - It uses hash algorithm first on smaller table and then on the other table to produce joined columns. After that matching rows are returned.
  • 2. What are the components of logical data model and list some differences between logical and physical data model? Components of logical data model are Entity - Entity refers to an object that we use to store information. It has its own table. Attribute - It represents the information of the entity that we are interested in. It is stored as a column of the table and has specific datatype associated with it. Record - It refers to a collection of all the properties associated with an entity for one specific condition, represented as row in a table. Domain - It is the set of all the possible values for a particular attribute. Relation - Represents a relation between two entities. Difference between Logical and Physical Data Model. - Logical data model represents database in terms of logical objects, such as entities and relationships. - Physical data model represents database in terms of physical objects, such as tables and constraints. What is Normalization? What are the different forms of Normalization? - Normalization is a process of organizing the fields and tables of a relational database to minimize redundancy and dependency. - It saves storage space and ensures consistency of our data. There are six different normal forms First Normal Form - If all underlying domains contain atomic values only. Second Normal Form - If it is in first normal form and every non key attribute is fully functionally dependent on primary key. Third Normal Form - If it is in 2nd normal form and every non key attribute is non transitively dependent on the primary key. Boyce Codd Normal Form - A relation R is in BCNF if and only every determinant is a candidate key. Fourth Normal Form Fifth Normal Form
  • 3. Differentiate between a database and Instance and explain relation between them? - Database is a collection of three important files which include data files, control files and redo log files which physically exist on a disk - Whereas instance is a combination of oracle background process (SMON, PMON, DBWR, LGWR) and memory structure (SGA, PGA). - Oracle background processes running on a computer share same memory area. - An instance can mount and open only a single database, ever. - A database may be mounted and opened by one or more instances (using RAC). What are the components of SGA? - SGA is used to store shared information across all database users. - It mainly includes Library cache, Data Dictionary cache, Database Buffer Cache, Redo log Buffer cache, Shared Pool. Library cache - It is used to store Oracle statements. Data Dictionary Cache - It contains the definition of Database objects and privileges granted to users. Data Base buffer cache - It holds copies of data blocks which are frequently accessed, so that they can be retrieved faster for any future requests. Redo log buffer cache - It records all changes made to the data files. Difference between SGA and PGA. - SGA (System Global Area) is a memory area allocated during an instance start up. - SGA is allocated as 40% of RAM size by default. - SGA size is controlled by DB_CACHE_SIZE parameter defined in initialization parameter file (init.ora file or SPFILE). - PGA (Program or Process Global Area) is a memory area that stores a user session specific information. - PGA is allocated as 10% of RAM size by default. What are the disk components in Oracle? These are the physical components which gets stored in the disk.
  • 4. - Data files - Redo Log files - Control files - Password files - Parameter files What is System Change Number (SCN)? - SCN is a unique ID that Oracle generates for every committed transaction. - It is recorded for every change in the redo entry. - SCN is also generated for every checkpoint (CKPT) occurred. - It is an ever increasing number which is updated for every 3 seconds - You can get the SCN number by querying select SCN from v$database from SQLPLUS. Difference between Rank ,row number What is the purpose of CTE OLAP and OLTP difference DatawareHouse and Database difference SELECT ProductNumber, Name, "Price Range" = CASE WHEN ListPrice = 0 THEN 'Mfg item - not for resale' WHEN ListPrice < 50 THEN 'Under $50' WHEN ListPrice >= 50 and ListPrice < 250 THEN 'Under $250' WHEN ListPrice >= 250 and ListPrice < 1000 THEN 'Under $1000' ELSE 'Over $1000' END FROM Production.Product ORDER BY ProductNumber ;
  • 5. GO [ OR ] UPDATE T1 set amount = (case when T1.Id = 1 then 1000 when T1.Id = 2 then 2000 when T1.Id = 3 then 3000 when T1.Id = 4 then 4000 end) [OR] UPDATE T1 set amount = (case when T1.Id = 1 then t1.id * 1000 when T1.Id = 2 then t1.id* 2000 when T1.Id = 3 then t1.id* 3000 when T1.Id = 4 then t1.id * 4000 end)
  • 6. GO [ OR ] UPDATE T1 set amount = (case when T1.Id = 1 then 1000 when T1.Id = 2 then 2000 when T1.Id = 3 then 3000 when T1.Id = 4 then 4000 end) [OR] UPDATE T1 set amount = (case when T1.Id = 1 then t1.id * 1000 when T1.Id = 2 then t1.id* 2000 when T1.Id = 3 then t1.id* 3000 when T1.Id = 4 then t1.id * 4000 end)