Commonly asked DBMS interview questionsSet 1
Commonly asked DBMS interview questionsSet 1
Commonly asked
DBMS interview
questions
Last Updated : 15 Jun, 2024
9. What is Join?
An SQL Join is used to combine data from
two or more tables, based on a common
field between them. For example, consider
the following two tables.
CourseID EnrollNo
1 1000
2 1000
3 1000
1 1002
2 1003
SELECT StudentCourse.CourseID,
Student.StudentName
FROM StudentCourse
INNER JOIN Student
ON
StudentCourse.EnrollNo =
Student.EnrollNo
ORDER BY
StudentCourse.CourseID;
CourseID StudentName
1 geek1
1 geek3
2 geek1
3 geek1
9. What is Identity?
Identity (or AutoNumber) is a column that
automatically generates numeric values. A
start and increment value can be set, but
most DBA leave these at 1. A GUID
column also generates numbers; the value
of this cannot be controlled. Identity/GUID
columns do not need to be indexed.
Denormalization is a database
optimization technique in which we add
redundant data to one or more tables.
Query-by-example represents a
visual/graphical approach for accessing
information in a database through the use
of query templates called skeleton tables.
It is used by entering example values
directly into a query template to represent
what is to be achieved. QBE is used by
many database systems for personal
computers. QBE is a very powerful facility
that gives the user the capability to access
the information a user wants without the
knowledge of any programming language.
Queries in QBE are expressed by skeleton
tables. QBE has two distinct features:
Purpose of normalization:
They include:
SELECT EmpId
from (SELECT rowno,EmpId
from Emp) WHERE mod(rowno,2)=1;
SELECT EmpId
from (SELECT rowno,EmpId
from Emp) WHERE mod(rowno,2)=0;
Example:
Logical
Physic
Parameters Database
D
Design
Maps or
transforms the
conceptual The speci
schema (or an stored da
ER schema) from of phy
Task the high-level structures,
data model into a placement
relational are design
database
schema.
DDL statements
in the language
of the chosen
DBMS that
specify the
conceptual and
external level
An initial
schemas of the
storage st
database system.
access p
But if the DDL
database
Result statements
correspon
include some
the intern
physical design
terms of
parameters, a
Definition
complete DDL
specification
must wait until
after the physical
database design
phase
is completed.
Statement Failure·
Bad data type
Insufficient space
Insufficient Privileges (e.g., object
privileges to a role)
User Process Failure
The user performed an
abnormal disconnect
The user’s session was
abnormally terminated
The user’s program raised an
address exception
User Error
The user drops a table
User damages data
by modification
Instance Failure
Media Failure
The user drops a table
User damages data
by modification
Alert Logs
Records informational and
error messages
All Instance startups and
shutdowns are recorded in
the log
GeeksforGeeks 298
Similar Reads
Company
About Us
Legal
Careers
In Media
Contact Us
Advertise with us
GFG Corporate Solution
Placement Training Program
Explore
Job-A-Thon Hiring Challenge
Hack-A-Thon
GfG Weekly Contest
Offline Classes (Delhi/NCR)
DSA in JAVA/C++
Master System Design
Master CP
GeeksforGeeks Videos
Geeks Community
Languages
Python
Java
C++
PHP
GoLang
SQL
R Language
Android Tutorial
DSA
Data Structures
Algorithms
DSA for Beginners
Basic DSA Problems
DSA Roadmap
DSA Interview Questions
Competitive Programming
Web Technologies
HTML
CSS
JavaScript
TypeScript
ReactJS
NextJS
NodeJs
Bootstrap
Tailwind CSS
Python Tutorial
Python Programming Examples
Django Tutorial
Python Projects
Python Tkinter
Web Scraping
OpenCV Tutorial
Python Interview Question
Computer Science
GATE CS Notes
Operating Systems
Computer Network
Database Management System
Software Engineering
Digital Logic Design
Engineering Maths
DevOps
Git
AWS
Docker
Kubernetes
Azure
GCP
DevOps Roadmap
System Design
High Level Design
Low Level Design
UML Diagrams
Interview Guide
Design Patterns
OOAD
System Design Bootcamp
Interview Questions
School Subjects
Mathematics
Physics
Chemistry
Biology
Social Science
English Grammar
Commerce
Accountancy
Business Studies
Economics
Management
HR Management
Finance
Income Tax
Databases
SQL
MYSQL
PostgreSQL
PL/SQL
MongoDB
Preparation Corner
Company-Wise Recruitment Process
Resume Templates
Aptitude Preparation
Puzzles
Company-Wise Preparation
Companies
Colleges
Competitive Exams
JEE Advanced
UGC NET
UPSC
SSC CGL
SBI PO
SBI Clerk
IBPS PO
IBPS Clerk
More Tutorials
Software Development
Software Testing
Product Management
Project Management
Linux
Excel
All Cheat Sheets
Recent Articles
@GeeksforGeeks, Sanchhaya
Open In Education
App Private Limited,
All rights reserved