SlideShare a Scribd company logo
1 of 17
Previous Question Papers
Presented By:
Mohammed Shabeeb KV
No:233
Data model tells how the logical structure of a database
is modeled. Data Models are fundamental entities to
introduce abstraction in DBMS. Data models define how
data is connected to each other and how it will be
processed and stored inside the system.
 Hierarchical Model
 Network Model
 Relational Model
Explain about various data models used to
describe the design of a database?
Hierarchical Model
 The hierarchical data model organizes data in a tree
structure.
 One to many relationship.
 The structure is based on the rule that one parent can
have many children but children are allowed only one
parent.
Network Model
Some data were more naturally modeled with more
than one parent per child. So, the network model
permitted the modelling of many-to-many
relationships in data.
Relational Model
It defines a database as a collection of tables
(relations) which contains all data. Each table has
multiple columns, and each column has a unique
name.
Properties of Relational Tables:
 Values are atomic.
 Each row is unique.
 Column values are of the same kind.
 The sequence of columns is insignificant.
 The sequence of rows is insignificant.
 Each column has a unique name.
Explain about the constraints in SQL?
 SQL constraints are used to specify rules for the data in
table.
 These constraints ensure database integrity and hence
they are often called database integrity constraints.
 The following are the constraints:
NOT NULL
 Column must always have a value.
 It can never be null.
UNIQUE
 No two rows can have the same value for the UNIQUE
KEY column or columns.
PRIMARY KEY
 No two rows in the table can have the same value.
 Primary key cannot contain a NULL value this constraint
must be defined only on the column defined as NOT
NULL.
DEFAULT
 Using this constraint, a default value can be set for a
column, when the user does not enter a value for the
column.
CHECK
 This constraint limits value that can be inserted into a
column of a table.
What is the difference between database
schema and a database instance?
 The overall design of a data base is called a schema.
 The collection of information stored in the database at a
particular moment is called instance of a database or database
state.
 A database schema is corresponds to the variable declaration in
a program.
 Each variable has a particular value at a given instant. The value
of variable in a program at a point in time correspond to an
instance of a database schema.
Explain about view and its advantages?
 Any relation that is not part of the logical model, but is
made visible to a user as a virtual relation is called view.
 A view is a relation that is derived from other relation . These
other relation could be a base relation or previously
defined view.
Advantages:
 View mechanism is that it provide the support for the
logical data independence.
 View are also valuable in the context of security.
 Data integrity.
 Shielding from change.
 Easier querying.
Distinguish between primary key, composite
key and candidate key?
PRIMARY KEY
 It is a candidate key that is used by the data base
designers for unique identification of each row in a
table.
 It can be consist of one or more attribute.
 Eg:- ID key is primary key.
CANDIDATE KEY
 It is defined as minimal super key.
 It is a combination of attribute that identifies the record
uniquely. But no one of it is proper subsets can identify
the records uniquely.
 Eg: 1.ID
2.Name,address
COMPOSITE KEY
 If we use multiple attribute to create a primary key then
that primary key is called composite key.
 Also called compound key or concatenated key.
 Eg:-If we have used second name , address as a
primary key then it will be our composite key.
What is meant by normalization?
Normalization is the process of decomposing
unsatisfactory bad relations by breaking up their
attributes to small relations.
NORMAL FORM
Condition using key & functional dependencies of a
relation to certify whether a relation schema is in a
particular normal form.
Explain the GROUP BY and HAVING clause
in SQL?
GROUP BY
 GROUP BY is an optional clause in a query. It follows
WHERE clause or the FROM clause if the WHERE clause
is missing.
 GROUP BY has the following general format:
GROUP BY column-1 [column-2]
 Each group we consist of tuples that have the same
value of attribute called grouping attribute.
HAVING
 The HAVING clause is associated with grouping queries
and aggregate queries.
 It is optional in both case.
 In grouping queries it follows the GROUP BY clause .
 In aggregate queries HAVING clause follows the WHERE
clause or the FROM clause if the WHERE clause missing.
 The HAVING clause has the following general format:
HAVING predicate
What are the purpose of database system?
Database management systems were developed to
handle the following difficulties of typical file-processing
systems supported by conventional operating systems:
 Data redundancy and inconsistency
 Difficulty in accessing data
 Data isolation – multiple files and formats
 Integrity problems
 Atomicity of updates
 Concurrent access by multiple users
 Security problems
Thank You

More Related Content

What's hot

What's hot (20)

Dbms 3: 3 Schema Architecture
Dbms 3: 3 Schema ArchitectureDbms 3: 3 Schema Architecture
Dbms 3: 3 Schema Architecture
 
Codd's rules
Codd's rulesCodd's rules
Codd's rules
 
Data Models
Data ModelsData Models
Data Models
 
2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS
 
Relational model
Relational modelRelational model
Relational model
 
Normalization in DBMS
Normalization in DBMSNormalization in DBMS
Normalization in DBMS
 
Page replacement algorithms
Page replacement algorithmsPage replacement algorithms
Page replacement algorithms
 
ER-Model-ER Diagram
ER-Model-ER DiagramER-Model-ER Diagram
ER-Model-ER Diagram
 
Architecture of dbms(lecture 3)
Architecture of dbms(lecture 3)Architecture of dbms(lecture 3)
Architecture of dbms(lecture 3)
 
DBMS Assignments Questions
DBMS Assignments QuestionsDBMS Assignments Questions
DBMS Assignments Questions
 
DDBMS Paper with Solution
DDBMS Paper with SolutionDDBMS Paper with Solution
DDBMS Paper with Solution
 
Dbms slides
Dbms slidesDbms slides
Dbms slides
 
Data models
Data modelsData models
Data models
 
Databases: Normalisation
Databases: NormalisationDatabases: Normalisation
Databases: Normalisation
 
Relational Data Model Introduction
Relational Data Model IntroductionRelational Data Model Introduction
Relational Data Model Introduction
 
Database Design
Database DesignDatabase Design
Database Design
 
Dbms classification according to data models
Dbms classification according to data modelsDbms classification according to data models
Dbms classification according to data models
 
The Relational Database Model
The Relational Database ModelThe Relational Database Model
The Relational Database Model
 
DBMS - RAID
DBMS - RAIDDBMS - RAID
DBMS - RAID
 
Entity Relationship Diagram
Entity Relationship DiagramEntity Relationship Diagram
Entity Relationship Diagram
 

Viewers also liked

FP304 DATABASE SYSTEM PAPER FINAL EXAM AGAIN
FP304 DATABASE SYSTEM  PAPER FINAL EXAM AGAINFP304 DATABASE SYSTEM  PAPER FINAL EXAM AGAIN
FP304 DATABASE SYSTEM PAPER FINAL EXAM AGAINSyahriha Ruslan
 
Fundamentals of Database Systems Questions and Answers
Fundamentals of Database Systems Questions and AnswersFundamentals of Database Systems Questions and Answers
Fundamentals of Database Systems Questions and AnswersAbdul Rahman Sherzad
 
Database Management System And Design Questions
Database Management System And Design QuestionsDatabase Management System And Design Questions
Database Management System And Design QuestionsSamir Sabry
 
2009 Punjab Technical University B.C.A Database Management System Question paper
2009 Punjab Technical University B.C.A Database Management System Question paper2009 Punjab Technical University B.C.A Database Management System Question paper
2009 Punjab Technical University B.C.A Database Management System Question paperMonica Sabharwal
 
FINAL PAPER FP304 DATABASE SYSTEM
FINAL PAPER FP304 DATABASE SYSTEMFINAL PAPER FP304 DATABASE SYSTEM
FINAL PAPER FP304 DATABASE SYSTEMAmira Dolce Farhana
 
Chapter 1 Fundamentals of Database Management System
Chapter 1 Fundamentals of Database Management SystemChapter 1 Fundamentals of Database Management System
Chapter 1 Fundamentals of Database Management SystemEddyzulham Mahluzydde
 
Mobile operating system by Shabeeb
Mobile operating system by ShabeebMobile operating system by Shabeeb
Mobile operating system by ShabeebShabeeb Shabi
 
Database constraints
Database constraintsDatabase constraints
Database constraintsFraboni Ec
 
Database Design E R 2009
Database Design E R 2009Database Design E R 2009
Database Design E R 2009Cathie101
 
Making a simple question into a complicated query
Making a simple question into a complicated queryMaking a simple question into a complicated query
Making a simple question into a complicated queryRichard Boulton
 
operating systems previous question papers
 operating systems previous question papers operating systems previous question papers
operating systems previous question papersbalajirao mahendrakar
 
Ch 17 disk storage, basic files structure, and hashing
Ch 17 disk storage, basic files structure, and hashingCh 17 disk storage, basic files structure, and hashing
Ch 17 disk storage, basic files structure, and hashingZainab Almugbel
 
Hvdc Transmission Jntu Model Paper{Www.Studentyogi.Com}
Hvdc Transmission Jntu Model Paper{Www.Studentyogi.Com}Hvdc Transmission Jntu Model Paper{Www.Studentyogi.Com}
Hvdc Transmission Jntu Model Paper{Www.Studentyogi.Com}guest3f9c6b
 
Fundamentals of database system - Data Modeling Using the Entity-Relationshi...
Fundamentals of database system  - Data Modeling Using the Entity-Relationshi...Fundamentals of database system  - Data Modeling Using the Entity-Relationshi...
Fundamentals of database system - Data Modeling Using the Entity-Relationshi...Mustafa Kamel Mohammadi
 

Viewers also liked (20)

FP304 DATABASE SYSTEM PAPER FINAL EXAM AGAIN
FP304 DATABASE SYSTEM  PAPER FINAL EXAM AGAINFP304 DATABASE SYSTEM  PAPER FINAL EXAM AGAIN
FP304 DATABASE SYSTEM PAPER FINAL EXAM AGAIN
 
Fundamentals of Database Systems Questions and Answers
Fundamentals of Database Systems Questions and AnswersFundamentals of Database Systems Questions and Answers
Fundamentals of Database Systems Questions and Answers
 
Database Management System And Design Questions
Database Management System And Design QuestionsDatabase Management System And Design Questions
Database Management System And Design Questions
 
2009 Punjab Technical University B.C.A Database Management System Question paper
2009 Punjab Technical University B.C.A Database Management System Question paper2009 Punjab Technical University B.C.A Database Management System Question paper
2009 Punjab Technical University B.C.A Database Management System Question paper
 
Dbms Final Examination Answer Key
Dbms Final Examination Answer KeyDbms Final Examination Answer Key
Dbms Final Examination Answer Key
 
Int306 04
Int306 04Int306 04
Int306 04
 
FINAL PAPER FP304 DATABASE SYSTEM
FINAL PAPER FP304 DATABASE SYSTEMFINAL PAPER FP304 DATABASE SYSTEM
FINAL PAPER FP304 DATABASE SYSTEM
 
enhanced er diagram
enhanced er diagramenhanced er diagram
enhanced er diagram
 
Chapter 1 Fundamentals of Database Management System
Chapter 1 Fundamentals of Database Management SystemChapter 1 Fundamentals of Database Management System
Chapter 1 Fundamentals of Database Management System
 
Introduction to database
Introduction to databaseIntroduction to database
Introduction to database
 
Mobile operating system by Shabeeb
Mobile operating system by ShabeebMobile operating system by Shabeeb
Mobile operating system by Shabeeb
 
Database constraints
Database constraintsDatabase constraints
Database constraints
 
Database Design E R 2009
Database Design E R 2009Database Design E R 2009
Database Design E R 2009
 
Making a simple question into a complicated query
Making a simple question into a complicated queryMaking a simple question into a complicated query
Making a simple question into a complicated query
 
operating systems previous question papers
 operating systems previous question papers operating systems previous question papers
operating systems previous question papers
 
Ch 17 disk storage, basic files structure, and hashing
Ch 17 disk storage, basic files structure, and hashingCh 17 disk storage, basic files structure, and hashing
Ch 17 disk storage, basic files structure, and hashing
 
DataBase ch2
DataBase ch2DataBase ch2
DataBase ch2
 
Hvdc Transmission Jntu Model Paper{Www.Studentyogi.Com}
Hvdc Transmission Jntu Model Paper{Www.Studentyogi.Com}Hvdc Transmission Jntu Model Paper{Www.Studentyogi.Com}
Hvdc Transmission Jntu Model Paper{Www.Studentyogi.Com}
 
Database design
Database designDatabase design
Database design
 
Fundamentals of database system - Data Modeling Using the Entity-Relationshi...
Fundamentals of database system  - Data Modeling Using the Entity-Relationshi...Fundamentals of database system  - Data Modeling Using the Entity-Relationshi...
Fundamentals of database system - Data Modeling Using the Entity-Relationshi...
 

Similar to Previous question papers of Database Management System (DBMS) By SHABEEB

Sql interview questions and answers
Sql interview questions and  answersSql interview questions and  answers
Sql interview questions and answerssheibansari
 
Relational Database Management System part II
Relational Database Management System part IIRelational Database Management System part II
Relational Database Management System part IIKavithaA19
 
Week 3 Classification of Database Management Systems & Data Modeling
Week 3 Classification of Database Management Systems & Data ModelingWeek 3 Classification of Database Management Systems & Data Modeling
Week 3 Classification of Database Management Systems & Data Modelingoudesign
 
database-model group presentation.pptx
database-model group   presentation.pptxdatabase-model group   presentation.pptx
database-model group presentation.pptxRuksanKarki
 
Database System Concepts AND architecture [Autosaved].pptx
Database System Concepts AND architecture [Autosaved].pptxDatabase System Concepts AND architecture [Autosaved].pptx
Database System Concepts AND architecture [Autosaved].pptxKoteswari Kasireddy
 
COMPUTERS Database
COMPUTERS Database COMPUTERS Database
COMPUTERS Database Rc Os
 
ICS Part 2 Computer Science Short Notes
ICS Part 2 Computer Science Short NotesICS Part 2 Computer Science Short Notes
ICS Part 2 Computer Science Short NotesAbdul Haseeb
 
Sql Interview Questions
Sql Interview QuestionsSql Interview Questions
Sql Interview Questionsarjundwh
 
153680 sqlinterview
153680  sqlinterview153680  sqlinterview
153680 sqlinterviewzdsgsgdf
 
Student POST  Database processing models showcase the logical s.docx
Student POST  Database processing models showcase the logical s.docxStudent POST  Database processing models showcase the logical s.docx
Student POST  Database processing models showcase the logical s.docxorlandov3
 

Similar to Previous question papers of Database Management System (DBMS) By SHABEEB (20)

Sql interview questions and answers
Sql interview questions and  answersSql interview questions and  answers
Sql interview questions and answers
 
Relational Database Management System part II
Relational Database Management System part IIRelational Database Management System part II
Relational Database Management System part II
 
Codds rules & keys
Codds rules & keysCodds rules & keys
Codds rules & keys
 
Week 3 Classification of Database Management Systems & Data Modeling
Week 3 Classification of Database Management Systems & Data ModelingWeek 3 Classification of Database Management Systems & Data Modeling
Week 3 Classification of Database Management Systems & Data Modeling
 
PPT_DBMS.pptx
PPT_DBMS.pptxPPT_DBMS.pptx
PPT_DBMS.pptx
 
database-model group presentation.pptx
database-model group   presentation.pptxdatabase-model group   presentation.pptx
database-model group presentation.pptx
 
ans_dbms.pdf
ans_dbms.pdfans_dbms.pdf
ans_dbms.pdf
 
RDBMS
RDBMSRDBMS
RDBMS
 
Database System Concepts AND architecture [Autosaved].pptx
Database System Concepts AND architecture [Autosaved].pptxDatabase System Concepts AND architecture [Autosaved].pptx
Database System Concepts AND architecture [Autosaved].pptx
 
Unit 2 DBMS.pptx
Unit 2 DBMS.pptxUnit 2 DBMS.pptx
Unit 2 DBMS.pptx
 
COMPUTERS Database
COMPUTERS Database COMPUTERS Database
COMPUTERS Database
 
ICS Part 2 Computer Science Short Notes
ICS Part 2 Computer Science Short NotesICS Part 2 Computer Science Short Notes
ICS Part 2 Computer Science Short Notes
 
Sql
SqlSql
Sql
 
Sql Interview Questions
Sql Interview QuestionsSql Interview Questions
Sql Interview Questions
 
Sql
SqlSql
Sql
 
Sql
SqlSql
Sql
 
153680 sqlinterview
153680  sqlinterview153680  sqlinterview
153680 sqlinterview
 
Student POST  Database processing models showcase the logical s.docx
Student POST  Database processing models showcase the logical s.docxStudent POST  Database processing models showcase the logical s.docx
Student POST  Database processing models showcase the logical s.docx
 
Data models
Data modelsData models
Data models
 
Data models
Data modelsData models
Data models
 

Recently uploaded

How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17Celine George
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptxmary850239
 
Mental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young mindsMental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young mindsPooky Knightsmith
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Projectjordimapav
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfPatidar M
 
4.11.24 Mass Incarceration and the New Jim Crow.pptx
4.11.24 Mass Incarceration and the New Jim Crow.pptx4.11.24 Mass Incarceration and the New Jim Crow.pptx
4.11.24 Mass Incarceration and the New Jim Crow.pptxmary850239
 
Multi Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP ModuleMulti Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP ModuleCeline George
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxGrade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxkarenfajardo43
 
Using Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea DevelopmentUsing Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea Developmentchesterberbo7
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfVanessa Camilleri
 
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQ-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQuiz Club NITW
 
MS4 level being good citizen -imperative- (1) (1).pdf
MS4 level   being good citizen -imperative- (1) (1).pdfMS4 level   being good citizen -imperative- (1) (1).pdf
MS4 level being good citizen -imperative- (1) (1).pdfMr Bounab Samir
 
Narcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfNarcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfPrerana Jadhav
 
Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research DiscourseAnita GoswamiGiri
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxVanesaIglesias10
 

Recently uploaded (20)

INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptxINCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
 
How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx
 
Mental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young mindsMental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young minds
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Project
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdf
 
4.11.24 Mass Incarceration and the New Jim Crow.pptx
4.11.24 Mass Incarceration and the New Jim Crow.pptx4.11.24 Mass Incarceration and the New Jim Crow.pptx
4.11.24 Mass Incarceration and the New Jim Crow.pptx
 
Multi Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP ModuleMulti Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP Module
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxGrade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
 
Faculty Profile prashantha K EEE dept Sri Sairam college of Engineering
Faculty Profile prashantha K EEE dept Sri Sairam college of EngineeringFaculty Profile prashantha K EEE dept Sri Sairam college of Engineering
Faculty Profile prashantha K EEE dept Sri Sairam college of Engineering
 
prashanth updated resume 2024 for Teaching Profession
prashanth updated resume 2024 for Teaching Professionprashanth updated resume 2024 for Teaching Profession
prashanth updated resume 2024 for Teaching Profession
 
Using Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea DevelopmentUsing Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea Development
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdf
 
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQ-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
 
MS4 level being good citizen -imperative- (1) (1).pdf
MS4 level   being good citizen -imperative- (1) (1).pdfMS4 level   being good citizen -imperative- (1) (1).pdf
MS4 level being good citizen -imperative- (1) (1).pdf
 
Narcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfNarcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdf
 
Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research Discourse
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptx
 

Previous question papers of Database Management System (DBMS) By SHABEEB

  • 1. Previous Question Papers Presented By: Mohammed Shabeeb KV No:233
  • 2. Data model tells how the logical structure of a database is modeled. Data Models are fundamental entities to introduce abstraction in DBMS. Data models define how data is connected to each other and how it will be processed and stored inside the system.  Hierarchical Model  Network Model  Relational Model Explain about various data models used to describe the design of a database?
  • 3. Hierarchical Model  The hierarchical data model organizes data in a tree structure.  One to many relationship.  The structure is based on the rule that one parent can have many children but children are allowed only one parent.
  • 4. Network Model Some data were more naturally modeled with more than one parent per child. So, the network model permitted the modelling of many-to-many relationships in data.
  • 5. Relational Model It defines a database as a collection of tables (relations) which contains all data. Each table has multiple columns, and each column has a unique name. Properties of Relational Tables:  Values are atomic.  Each row is unique.  Column values are of the same kind.  The sequence of columns is insignificant.  The sequence of rows is insignificant.  Each column has a unique name.
  • 6. Explain about the constraints in SQL?  SQL constraints are used to specify rules for the data in table.  These constraints ensure database integrity and hence they are often called database integrity constraints.  The following are the constraints: NOT NULL  Column must always have a value.  It can never be null.
  • 7. UNIQUE  No two rows can have the same value for the UNIQUE KEY column or columns. PRIMARY KEY  No two rows in the table can have the same value.  Primary key cannot contain a NULL value this constraint must be defined only on the column defined as NOT NULL. DEFAULT  Using this constraint, a default value can be set for a column, when the user does not enter a value for the column. CHECK  This constraint limits value that can be inserted into a column of a table.
  • 8. What is the difference between database schema and a database instance?  The overall design of a data base is called a schema.  The collection of information stored in the database at a particular moment is called instance of a database or database state.  A database schema is corresponds to the variable declaration in a program.  Each variable has a particular value at a given instant. The value of variable in a program at a point in time correspond to an instance of a database schema.
  • 9. Explain about view and its advantages?  Any relation that is not part of the logical model, but is made visible to a user as a virtual relation is called view.  A view is a relation that is derived from other relation . These other relation could be a base relation or previously defined view. Advantages:  View mechanism is that it provide the support for the logical data independence.  View are also valuable in the context of security.  Data integrity.  Shielding from change.  Easier querying.
  • 10. Distinguish between primary key, composite key and candidate key? PRIMARY KEY  It is a candidate key that is used by the data base designers for unique identification of each row in a table.  It can be consist of one or more attribute.  Eg:- ID key is primary key.
  • 11. CANDIDATE KEY  It is defined as minimal super key.  It is a combination of attribute that identifies the record uniquely. But no one of it is proper subsets can identify the records uniquely.  Eg: 1.ID 2.Name,address
  • 12. COMPOSITE KEY  If we use multiple attribute to create a primary key then that primary key is called composite key.  Also called compound key or concatenated key.  Eg:-If we have used second name , address as a primary key then it will be our composite key.
  • 13. What is meant by normalization? Normalization is the process of decomposing unsatisfactory bad relations by breaking up their attributes to small relations. NORMAL FORM Condition using key & functional dependencies of a relation to certify whether a relation schema is in a particular normal form.
  • 14. Explain the GROUP BY and HAVING clause in SQL? GROUP BY  GROUP BY is an optional clause in a query. It follows WHERE clause or the FROM clause if the WHERE clause is missing.  GROUP BY has the following general format: GROUP BY column-1 [column-2]  Each group we consist of tuples that have the same value of attribute called grouping attribute.
  • 15. HAVING  The HAVING clause is associated with grouping queries and aggregate queries.  It is optional in both case.  In grouping queries it follows the GROUP BY clause .  In aggregate queries HAVING clause follows the WHERE clause or the FROM clause if the WHERE clause missing.  The HAVING clause has the following general format: HAVING predicate
  • 16. What are the purpose of database system? Database management systems were developed to handle the following difficulties of typical file-processing systems supported by conventional operating systems:  Data redundancy and inconsistency  Difficulty in accessing data  Data isolation – multiple files and formats  Integrity problems  Atomicity of updates  Concurrent access by multiple users  Security problems