SlideShare ist ein Scribd-Unternehmen logo
1 von 33
IT2301 Database Management Systems [email_address] PREPARING FOR THE BIT  Preparing for BIT 09/08/2001
Instructions for providing answers Use black or blue ink  ball point pens  OR. Use a good quality  HB2 pencil . Announcements b a c d  e 
Exam Admission Cards and Model Papers were posted. Few Corrections were made to some model papers and the corrections published on the web. There were  OS  questions using  C , these would be changed to  Java . Students need not know C as a programming language for this module Announcements
IT2301 Model Question Paper Last Time (Q) 9-18 Today (Q) 19-25
19) Which of the following characteristic(s) is (are)  not  suitable for use as the  primary key  of an employee? (a) Employee identity no. (b) Date of birth (c) Address of employee (d) Full name of employee (e) Photograph of employee
Primary Key Uniqueness property, Fixed Length, Small  in size if used to link tables (a) Employee identity no. (b) Date of birth (c) Address of employee (d) Full name of employee (e) Photograph of employee
20) Which of the following statement(s) is (are)  true  with respect to  data types ? (a) FLOAT data type can store twice as many digits as SMALLFLOAT. (b) INTEGER data type can store  decimal numbers exceeding that number 32,767 (c) VARCHAR data type often reduces disk storage wastage when compared to CHAR data type. (d) BLOB data is streams of bytes of fixed length. (e) BYTE data type cannot store any type of binary data.
Data Types (a) FLOAT data type can store twice as many digits as SMALLFLOAT. Refers to Precision and Not Large in Number FLOAT (DOUBLE PRECISION)   Double Precision  14-16  significant digits SMALLFLOAT (REAL) Single Precision 7-8  significant digits
Data Types (b) INTEGER data type can store  decimal numbers exceeding that number 32,767 INTEGER can store whole numbers Not  Decimals
Data Types (c) VARCHAR data type often reduces disk storage wastage when compared to CHAR data type. CHAR  fixed  length of specified value VARCHAR  variable  length up to specified maximum
Data Types (d) BLOB data is streams of bytes of fixed length. Binary Large Object (BLOB) is a streams of bytes of  arbitrary  value and length. A BLOB might be a digitised image or sound
Data Types (e) BYTE data type cannot store any type of binary data. BYTE is a type of BLOB Stores non-character-based information such as digitised images, sound Therefore, can store binary data.
21) Which of the following may happen during the process of  normalization ? (a) creation of new tables, (b) splitting of a table into several tables, (c) merging of several tables into one table, (d) removing some relationships among existing relations of the scheme, (e) removing existing constraints.
Normalisation (a) creation of new tables functional dependencies on part of key and transitive dependencies are removed by putting these attributes in separate tables. Thus we create new tables. As well as split existing tables.  (b) splitting of a table into several tables
Normalisation (c) merging of several tables into one table merging of tables is required only to  denormalised  relations (d) removing some relationships among existing relations of the scheme, (e) removing existing constraints last two options has nothing to do with normalisation process.
22) Which  set of operators  represent the complete set for  relational algebra ? (a) Union, Difference, Projection, Selection, Cartesian Product (b) Selection, Cartesian Product, Projection, Union, Intersection (c) Cartesian Product, Projection, Selection, Difference, Intersection (d) Join, Union, Projection, Selection, Difference (e) Difference, Projection, Selection, Join, Intersection
Relational Algebra Set Operators Union, Difference (Minus), Intersection Relational Operators Projection, Selection (Restrict), Cartesian Product, Join, Natural Join, Divide The complete set is sufficient to reconstruct any other operator. E.g. Intersection, Join etc may be reconstructed using this set. (a) Union, Difference, Projection, Selection, Cartesian Product
23) Which of the following are supported by  Entry-level   SQL-92 standard ? (a) Embedded SQL (b) Integrity enhancement (c) System catalogs (d) Triggers and stored procedures (e) Outer Join
Entry Level SQL-92 ,[object Object],[object Object],[object Object],[object Object],[object Object]
Full SQL89  ,[object Object],[object Object],[object Object],[object Object],[object Object]
Entry Level SQL92 ,[object Object],[object Object],[object Object],[object Object],[object Object]
Intermediate  Level SQL92 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Full  Level SQL92 ,[object Object],[object Object],[object Object],[object Object]
SQL3 ,[object Object],[object Object],[object Object],[object Object]
24) Which set of key words  cannot  be used with  SQL INSERT  statement to enter data? (a) Insert, Select, Into, Set, Where (b) Insert, Into, Values, Copy (c) Select, Into, From, Where, Having (d) Into, Insert, Values, Null (e) From, Distinct, To, Insert, Having
SQL INSERT ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
25) Select the statement(s) that is (are)  correct  with respect to the use of  JOIN (a) A table can join to itself creating a self-referencing join called a SELF-JOIN. (b) An EQUI-JOIN between two tables in a SELECT statement returns only the rows that have matching values in the join columns. (c) In an OUTER-JOIN, all of the rows of the dominant table are retrieved regardless of whether there are corresponding rows in the other table. (d) In an OUTER-JOIN, a join condition does not need to have the WHERE clause. (e) OUTER-JOIN cannot be used to join 3 tables.
JOIN (a) A table can join to itself creating a self-referencing join called a SELF-JOIN. Employee( empno , name, supervisor, deptno) SELECT e.empno, e.name, s.name FROM   Employee e, Employee s WHERE   e.empno=s.supervisor
JOIN (b) An EQUI-JOIN between two tables in a SELECT statement returns only the rows that have matching values in the join columns. Employee( empno , name, supervisor, deptno) Department( deptno , name) SELECT  e.empno, e.name, d.name FROM   Employee e, Department d WHERE   e.deptno=d.deptno
JOIN (c) In an OUTER-JOIN, all of the rows of the dominant table are retrieved regardless of whether there are corresponding rows in the other table. SELECT  e.empno, e.name, d.name FROM  Employee e,  OUTER JOIN  Department d WHERE  e.deptno=d.deptno Retrieve all employee data regardless of match. Use NULL for those not matched.
JOIN (d) In an OUTER-JOIN, a join condition does not need to have the WHERE clause. SELECT  e.empno, e.name, d.name FROM  Employee e,  OUTER JOIN  Department d WHERE  e.deptno=d.deptno  OR SELECT  e.empno, e.name, d.name FROM  (Employee AS e  OUTER JOIN  Department AS d ON e.deptno=d.deptno)
JOIN (e) OUTER-JOIN cannot be used to join 3 tables.
Contact ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

Weitere ähnliche Inhalte

Was ist angesagt?

Auto cad workbook2d hartnell college engineering technology
Auto cad workbook2d   hartnell college engineering technologyAuto cad workbook2d   hartnell college engineering technology
Auto cad workbook2d hartnell college engineering technologyAlFakir Fikri AlTakiri
 
Ecs40 winter 2017 homework 3
Ecs40 winter 2017 homework 3Ecs40 winter 2017 homework 3
Ecs40 winter 2017 homework 3JenniferBall44
 
R Data Visualization Tutorial: Bar Plots
R Data Visualization Tutorial: Bar PlotsR Data Visualization Tutorial: Bar Plots
R Data Visualization Tutorial: Bar PlotsRsquared Academy
 
Data Visualization 2020_21
Data Visualization 2020_21Data Visualization 2020_21
Data Visualization 2020_21Sangita Panchal
 
Assg2 b 19121033-converted
Assg2 b 19121033-convertedAssg2 b 19121033-converted
Assg2 b 19121033-convertedSUSHANTPHALKE2
 
Learning sql from w3schools
Learning sql from w3schoolsLearning sql from w3schools
Learning sql from w3schoolsfarhan516
 
Introduction to matlab lecture 2 of 4
Introduction to matlab lecture 2 of 4Introduction to matlab lecture 2 of 4
Introduction to matlab lecture 2 of 4Randa Elanwar
 
Introduction to matlab lecture 3 of 4
Introduction to matlab lecture 3 of 4Introduction to matlab lecture 3 of 4
Introduction to matlab lecture 3 of 4Randa Elanwar
 
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
 
PBDJ 19-4(woolley rev)
PBDJ 19-4(woolley rev)PBDJ 19-4(woolley rev)
PBDJ 19-4(woolley rev)Buck Woolley
 
CIS 336 Final Exam 2 (Devry)
CIS 336 Final Exam 2 (Devry) CIS 336 Final Exam 2 (Devry)
CIS 336 Final Exam 2 (Devry) critter03
 
RDataMining slides-network-analysis-with-r
RDataMining slides-network-analysis-with-rRDataMining slides-network-analysis-with-r
RDataMining slides-network-analysis-with-rYanchang Zhao
 
FP304 DATABASE SYSTEM FINAL PAPER
FP304    DATABASE SYSTEM FINAL PAPERFP304    DATABASE SYSTEM FINAL PAPER
FP304 DATABASE SYSTEM FINAL PAPERSyahriha Ruslan
 

Was ist angesagt? (20)

Auto cad workbook2d hartnell college engineering technology
Auto cad workbook2d   hartnell college engineering technologyAuto cad workbook2d   hartnell college engineering technology
Auto cad workbook2d hartnell college engineering technology
 
Lab
LabLab
Lab
 
Ecs40 winter 2017 homework 3
Ecs40 winter 2017 homework 3Ecs40 winter 2017 homework 3
Ecs40 winter 2017 homework 3
 
R Data Visualization Tutorial: Bar Plots
R Data Visualization Tutorial: Bar PlotsR Data Visualization Tutorial: Bar Plots
R Data Visualization Tutorial: Bar Plots
 
Data Visualization 2020_21
Data Visualization 2020_21Data Visualization 2020_21
Data Visualization 2020_21
 
Introduction to r
Introduction to rIntroduction to r
Introduction to r
 
Assg2 b 19121033-converted
Assg2 b 19121033-convertedAssg2 b 19121033-converted
Assg2 b 19121033-converted
 
PPT
PPTPPT
PPT
 
Learning sql from w3schools
Learning sql from w3schoolsLearning sql from w3schools
Learning sql from w3schools
 
Introduction to matlab lecture 2 of 4
Introduction to matlab lecture 2 of 4Introduction to matlab lecture 2 of 4
Introduction to matlab lecture 2 of 4
 
Introduction to matlab lecture 3 of 4
Introduction to matlab lecture 3 of 4Introduction to matlab lecture 3 of 4
Introduction to matlab lecture 3 of 4
 
Pandas Series
Pandas SeriesPandas Series
Pandas Series
 
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
 
PBDJ 19-4(woolley rev)
PBDJ 19-4(woolley rev)PBDJ 19-4(woolley rev)
PBDJ 19-4(woolley rev)
 
R studio
R studio R studio
R studio
 
CIS 336 Final Exam 2 (Devry)
CIS 336 Final Exam 2 (Devry) CIS 336 Final Exam 2 (Devry)
CIS 336 Final Exam 2 (Devry)
 
RDataMining slides-network-analysis-with-r
RDataMining slides-network-analysis-with-rRDataMining slides-network-analysis-with-r
RDataMining slides-network-analysis-with-r
 
Datarepresentation2
Datarepresentation2Datarepresentation2
Datarepresentation2
 
Dbms record
Dbms recordDbms record
Dbms record
 
FP304 DATABASE SYSTEM FINAL PAPER
FP304    DATABASE SYSTEM FINAL PAPERFP304    DATABASE SYSTEM FINAL PAPER
FP304 DATABASE SYSTEM FINAL PAPER
 

Ähnlich wie Preparing for BIT – IT2301 Database Management Systems 2001f

Db2考试测试题
Db2考试测试题Db2考试测试题
Db2考试测试题fm2008
 
Gate Previous Years Papers
Gate Previous Years PapersGate Previous Years Papers
Gate Previous Years PapersRahul Jain
 
MCQ Select the correct answer.1. What does SQL stand fora.pdf
MCQ  Select the correct answer.1. What does SQL stand fora.pdfMCQ  Select the correct answer.1. What does SQL stand fora.pdf
MCQ Select the correct answer.1. What does SQL stand fora.pdfsaxenaavnish1
 
Dbms ii mca-ch7-sql-2013
Dbms ii mca-ch7-sql-2013Dbms ii mca-ch7-sql-2013
Dbms ii mca-ch7-sql-2013Prosanta Ghosh
 
Data structure using c bcse 3102 pcs 1002
Data structure using c bcse 3102 pcs 1002Data structure using c bcse 3102 pcs 1002
Data structure using c bcse 3102 pcs 1002SANTOSH RATH
 
Gate Previous Years Papers It2005
Gate Previous Years Papers It2005Gate Previous Years Papers It2005
Gate Previous Years Papers It2005Rahul Jain
 
Introduction to sql new
Introduction to sql newIntroduction to sql new
Introduction to sql newSANTOSH RATH
 
Suppose that a PRODUCT table contains two attributes, PROD_CODE an.docx
Suppose that a PRODUCT table contains two attributes, PROD_CODE an.docxSuppose that a PRODUCT table contains two attributes, PROD_CODE an.docx
Suppose that a PRODUCT table contains two attributes, PROD_CODE an.docxpicklesvalery
 

Ähnlich wie Preparing for BIT – IT2301 Database Management Systems 2001f (20)

50058334 informatica
50058334 informatica50058334 informatica
50058334 informatica
 
Db2考试测试题
Db2考试测试题Db2考试测试题
Db2考试测试题
 
SQL Overview
SQL OverviewSQL Overview
SQL Overview
 
Gate Previous Years Papers
Gate Previous Years PapersGate Previous Years Papers
Gate Previous Years Papers
 
Cs101 endsem 2014
Cs101 endsem 2014Cs101 endsem 2014
Cs101 endsem 2014
 
MCQ Select the correct answer.1. What does SQL stand fora.pdf
MCQ  Select the correct answer.1. What does SQL stand fora.pdfMCQ  Select the correct answer.1. What does SQL stand fora.pdf
MCQ Select the correct answer.1. What does SQL stand fora.pdf
 
Presentation.pdf
Presentation.pdfPresentation.pdf
Presentation.pdf
 
Db1 lecture4
Db1 lecture4Db1 lecture4
Db1 lecture4
 
Gate-Cs 1998
Gate-Cs 1998Gate-Cs 1998
Gate-Cs 1998
 
Gate-Cs 1994
Gate-Cs 1994Gate-Cs 1994
Gate-Cs 1994
 
Gate-Cs 1996
Gate-Cs 1996Gate-Cs 1996
Gate-Cs 1996
 
Dbms ii mca-ch7-sql-2013
Dbms ii mca-ch7-sql-2013Dbms ii mca-ch7-sql-2013
Dbms ii mca-ch7-sql-2013
 
Data structure using c bcse 3102 pcs 1002
Data structure using c bcse 3102 pcs 1002Data structure using c bcse 3102 pcs 1002
Data structure using c bcse 3102 pcs 1002
 
Gate Previous Years Papers It2005
Gate Previous Years Papers It2005Gate Previous Years Papers It2005
Gate Previous Years Papers It2005
 
Introduction to sql new
Introduction to sql newIntroduction to sql new
Introduction to sql new
 
Gate-Cs 1995
Gate-Cs 1995Gate-Cs 1995
Gate-Cs 1995
 
Computer Science Assignment Help
Computer Science Assignment Help Computer Science Assignment Help
Computer Science Assignment Help
 
CS_PQMS.pdf
CS_PQMS.pdfCS_PQMS.pdf
CS_PQMS.pdf
 
Suppose that a PRODUCT table contains two attributes, PROD_CODE an.docx
Suppose that a PRODUCT table contains two attributes, PROD_CODE an.docxSuppose that a PRODUCT table contains two attributes, PROD_CODE an.docx
Suppose that a PRODUCT table contains two attributes, PROD_CODE an.docx
 
Physical Design and Development
Physical Design and DevelopmentPhysical Design and Development
Physical Design and Development
 

Mehr von Gihan Wikramanayake

Using ICT to Promote Learning in a Medical Faculty
Using ICT to Promote Learning in a Medical FacultyUsing ICT to Promote Learning in a Medical Faculty
Using ICT to Promote Learning in a Medical FacultyGihan Wikramanayake
 
Evaluation of English and IT skills of new entrants to Sri Lankan universities
Evaluation of English and IT skills of new entrants to Sri Lankan universitiesEvaluation of English and IT skills of new entrants to Sri Lankan universities
Evaluation of English and IT skills of new entrants to Sri Lankan universitiesGihan Wikramanayake
 
Broadcasting Technology: Overview
Broadcasting  Technology: OverviewBroadcasting  Technology: Overview
Broadcasting Technology: OverviewGihan Wikramanayake
 
Importance of Information Technology for Sports
Importance of Information Technology for SportsImportance of Information Technology for Sports
Importance of Information Technology for SportsGihan Wikramanayake
 
Improving student learning through assessment for learning using social media...
Improving student learning through assessment for learning using social media...Improving student learning through assessment for learning using social media...
Improving student learning through assessment for learning using social media...Gihan Wikramanayake
 
Exploiting Tourism through Data Warehousing
Exploiting Tourism through Data WarehousingExploiting Tourism through Data Warehousing
Exploiting Tourism through Data WarehousingGihan Wikramanayake
 
Speaker Search and Indexing for Multimedia Databases
Speaker Search and Indexing for Multimedia DatabasesSpeaker Search and Indexing for Multimedia Databases
Speaker Search and Indexing for Multimedia DatabasesGihan Wikramanayake
 
Authropometry of Sri Lankan Sportsmen and Sportswomen, with Special Reference...
Authropometry of Sri Lankan Sportsmen and Sportswomen, with Special Reference...Authropometry of Sri Lankan Sportsmen and Sportswomen, with Special Reference...
Authropometry of Sri Lankan Sportsmen and Sportswomen, with Special Reference...Gihan Wikramanayake
 
Analysis of Multiple Choice Question Papers with Special Reference to those s...
Analysis of Multiple Choice Question Papers with Special Reference to those s...Analysis of Multiple Choice Question Papers with Special Reference to those s...
Analysis of Multiple Choice Question Papers with Special Reference to those s...Gihan Wikramanayake
 
Assisting Migration and Evolution of Relational Legacy Databases
Assisting Migration and Evolution of Relational Legacy DatabasesAssisting Migration and Evolution of Relational Legacy Databases
Assisting Migration and Evolution of Relational Legacy DatabasesGihan Wikramanayake
 
ICT ප්‍රාරම්භක ඩිප්ලෝමා පාඨමාලාව දිනමිණ, පරිගණක දැනුම
ICT ප්‍රාරම්භක ඩිප්ලෝමා පාඨමාලාව   දිනමිණ, පරිගණක දැනුමICT ප්‍රාරම්භක ඩිප්ලෝමා පාඨමාලාව   දිනමිණ, පරිගණක දැනුම
ICT ප්‍රාරම්භක ඩිප්ලෝමා පාඨමාලාව දිනමිණ, පරිගණක දැනුමGihan Wikramanayake
 
වෘත්තීය අවස්ථා වැඩි පරිගණක ක්ෂේත‍්‍රය දිනමිණ, පරිගණක දැනුම
වෘත්තීය අවස්ථා වැඩි පරිගණක ක්ෂේත‍්‍රය   දිනමිණ, පරිගණක දැනුමවෘත්තීය අවස්ථා වැඩි පරිගණක ක්ෂේත‍්‍රය   දිනමිණ, පරිගණක දැනුම
වෘත්තීය අවස්ථා වැඩි පරිගණක ක්ෂේත‍්‍රය දිනමිණ, පරිගණක දැනුමGihan Wikramanayake
 
පරිගණක ක්ෂේත‍්‍රයේ වෘත්තීය අවස්ථා දිනමිණ, පරිගණක දැනුම
පරිගණක ක්ෂේත‍්‍රයේ වෘත්තීය අවස්ථා   දිනමිණ, පරිගණක දැනුමපරිගණක ක්ෂේත‍්‍රයේ වෘත්තීය අවස්ථා   දිනමිණ, පරිගණක දැනුම
පරිගණක ක්ෂේත‍්‍රයේ වෘත්තීය අවස්ථා දිනමිණ, පරිගණක දැනුමGihan Wikramanayake
 
Balanced Scorecard and its relationship to UMM
Balanced Scorecard and its relationship to UMMBalanced Scorecard and its relationship to UMM
Balanced Scorecard and its relationship to UMMGihan Wikramanayake
 
Web Usage Mining based on Heuristics: Drawbacks
Web Usage Mining based on Heuristics: DrawbacksWeb Usage Mining based on Heuristics: Drawbacks
Web Usage Mining based on Heuristics: DrawbacksGihan Wikramanayake
 
Evolving and Migrating Relational Legacy Databases
Evolving and Migrating Relational Legacy DatabasesEvolving and Migrating Relational Legacy Databases
Evolving and Migrating Relational Legacy DatabasesGihan Wikramanayake
 
Re-Engineering Databases using Meta-Programming Technology
Re-Engineering Databases using Meta-Programming TechnologyRe-Engineering Databases using Meta-Programming Technology
Re-Engineering Databases using Meta-Programming TechnologyGihan Wikramanayake
 

Mehr von Gihan Wikramanayake (20)

Using ICT to Promote Learning in a Medical Faculty
Using ICT to Promote Learning in a Medical FacultyUsing ICT to Promote Learning in a Medical Faculty
Using ICT to Promote Learning in a Medical Faculty
 
Evaluation of English and IT skills of new entrants to Sri Lankan universities
Evaluation of English and IT skills of new entrants to Sri Lankan universitiesEvaluation of English and IT skills of new entrants to Sri Lankan universities
Evaluation of English and IT skills of new entrants to Sri Lankan universities
 
Learning beyond the classroom
Learning beyond the classroomLearning beyond the classroom
Learning beyond the classroom
 
Broadcasting Technology: Overview
Broadcasting  Technology: OverviewBroadcasting  Technology: Overview
Broadcasting Technology: Overview
 
Importance of Information Technology for Sports
Importance of Information Technology for SportsImportance of Information Technology for Sports
Importance of Information Technology for Sports
 
Improving student learning through assessment for learning using social media...
Improving student learning through assessment for learning using social media...Improving student learning through assessment for learning using social media...
Improving student learning through assessment for learning using social media...
 
Exploiting Tourism through Data Warehousing
Exploiting Tourism through Data WarehousingExploiting Tourism through Data Warehousing
Exploiting Tourism through Data Warehousing
 
Speaker Search and Indexing for Multimedia Databases
Speaker Search and Indexing for Multimedia DatabasesSpeaker Search and Indexing for Multimedia Databases
Speaker Search and Indexing for Multimedia Databases
 
Authropometry of Sri Lankan Sportsmen and Sportswomen, with Special Reference...
Authropometry of Sri Lankan Sportsmen and Sportswomen, with Special Reference...Authropometry of Sri Lankan Sportsmen and Sportswomen, with Special Reference...
Authropometry of Sri Lankan Sportsmen and Sportswomen, with Special Reference...
 
Analysis of Multiple Choice Question Papers with Special Reference to those s...
Analysis of Multiple Choice Question Papers with Special Reference to those s...Analysis of Multiple Choice Question Papers with Special Reference to those s...
Analysis of Multiple Choice Question Papers with Special Reference to those s...
 
Assisting Migration and Evolution of Relational Legacy Databases
Assisting Migration and Evolution of Relational Legacy DatabasesAssisting Migration and Evolution of Relational Legacy Databases
Assisting Migration and Evolution of Relational Legacy Databases
 
ICT ප්‍රාරම්භක ඩිප්ලෝමා පාඨමාලාව දිනමිණ, පරිගණක දැනුම
ICT ප්‍රාරම්භක ඩිප්ලෝමා පාඨමාලාව   දිනමිණ, පරිගණක දැනුමICT ප්‍රාරම්භක ඩිප්ලෝමා පාඨමාලාව   දිනමිණ, පරිගණක දැනුම
ICT ප්‍රාරම්භක ඩිප්ලෝමා පාඨමාලාව දිනමිණ, පරිගණක දැනුම
 
වෘත්තීය අවස්ථා වැඩි පරිගණක ක්ෂේත‍්‍රය දිනමිණ, පරිගණක දැනුම
වෘත්තීය අවස්ථා වැඩි පරිගණක ක්ෂේත‍්‍රය   දිනමිණ, පරිගණක දැනුමවෘත්තීය අවස්ථා වැඩි පරිගණක ක්ෂේත‍්‍රය   දිනමිණ, පරිගණක දැනුම
වෘත්තීය අවස්ථා වැඩි පරිගණක ක්ෂේත‍්‍රය දිනමිණ, පරිගණක දැනුම
 
පරිගණක ක්ෂේත‍්‍රයේ වෘත්තීය අවස්ථා දිනමිණ, පරිගණක දැනුම
පරිගණක ක්ෂේත‍්‍රයේ වෘත්තීය අවස්ථා   දිනමිණ, පරිගණක දැනුමපරිගණක ක්ෂේත‍්‍රයේ වෘත්තීය අවස්ථා   දිනමිණ, පරිගණක දැනුම
පරිගණක ක්ෂේත‍්‍රයේ වෘත්තීය අවස්ථා දිනමිණ, පරිගණක දැනුම
 
Producing Employable Graduates
Producing Employable GraduatesProducing Employable Graduates
Producing Employable Graduates
 
Balanced Scorecard and its relationship to UMM
Balanced Scorecard and its relationship to UMMBalanced Scorecard and its relationship to UMM
Balanced Scorecard and its relationship to UMM
 
An SMS-Email Reader
An SMS-Email ReaderAn SMS-Email Reader
An SMS-Email Reader
 
Web Usage Mining based on Heuristics: Drawbacks
Web Usage Mining based on Heuristics: DrawbacksWeb Usage Mining based on Heuristics: Drawbacks
Web Usage Mining based on Heuristics: Drawbacks
 
Evolving and Migrating Relational Legacy Databases
Evolving and Migrating Relational Legacy DatabasesEvolving and Migrating Relational Legacy Databases
Evolving and Migrating Relational Legacy Databases
 
Re-Engineering Databases using Meta-Programming Technology
Re-Engineering Databases using Meta-Programming TechnologyRe-Engineering Databases using Meta-Programming Technology
Re-Engineering Databases using Meta-Programming Technology
 

Kürzlich hochgeladen

Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesShubhangi Sonawane
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxNikitaBankoti2
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfChris Hunter
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 

Kürzlich hochgeladen (20)

Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 

Preparing for BIT – IT2301 Database Management Systems 2001f

  • 1. IT2301 Database Management Systems [email_address] PREPARING FOR THE BIT Preparing for BIT 09/08/2001
  • 2. Instructions for providing answers Use black or blue ink ball point pens OR. Use a good quality HB2 pencil . Announcements b a c d  e 
  • 3. Exam Admission Cards and Model Papers were posted. Few Corrections were made to some model papers and the corrections published on the web. There were OS questions using C , these would be changed to Java . Students need not know C as a programming language for this module Announcements
  • 4. IT2301 Model Question Paper Last Time (Q) 9-18 Today (Q) 19-25
  • 5. 19) Which of the following characteristic(s) is (are) not suitable for use as the primary key of an employee? (a) Employee identity no. (b) Date of birth (c) Address of employee (d) Full name of employee (e) Photograph of employee
  • 6. Primary Key Uniqueness property, Fixed Length, Small in size if used to link tables (a) Employee identity no. (b) Date of birth (c) Address of employee (d) Full name of employee (e) Photograph of employee
  • 7. 20) Which of the following statement(s) is (are) true with respect to data types ? (a) FLOAT data type can store twice as many digits as SMALLFLOAT. (b) INTEGER data type can store decimal numbers exceeding that number 32,767 (c) VARCHAR data type often reduces disk storage wastage when compared to CHAR data type. (d) BLOB data is streams of bytes of fixed length. (e) BYTE data type cannot store any type of binary data.
  • 8. Data Types (a) FLOAT data type can store twice as many digits as SMALLFLOAT. Refers to Precision and Not Large in Number FLOAT (DOUBLE PRECISION) Double Precision 14-16 significant digits SMALLFLOAT (REAL) Single Precision 7-8 significant digits
  • 9. Data Types (b) INTEGER data type can store decimal numbers exceeding that number 32,767 INTEGER can store whole numbers Not Decimals
  • 10. Data Types (c) VARCHAR data type often reduces disk storage wastage when compared to CHAR data type. CHAR fixed length of specified value VARCHAR variable length up to specified maximum
  • 11. Data Types (d) BLOB data is streams of bytes of fixed length. Binary Large Object (BLOB) is a streams of bytes of arbitrary value and length. A BLOB might be a digitised image or sound
  • 12. Data Types (e) BYTE data type cannot store any type of binary data. BYTE is a type of BLOB Stores non-character-based information such as digitised images, sound Therefore, can store binary data.
  • 13. 21) Which of the following may happen during the process of normalization ? (a) creation of new tables, (b) splitting of a table into several tables, (c) merging of several tables into one table, (d) removing some relationships among existing relations of the scheme, (e) removing existing constraints.
  • 14. Normalisation (a) creation of new tables functional dependencies on part of key and transitive dependencies are removed by putting these attributes in separate tables. Thus we create new tables. As well as split existing tables. (b) splitting of a table into several tables
  • 15. Normalisation (c) merging of several tables into one table merging of tables is required only to denormalised relations (d) removing some relationships among existing relations of the scheme, (e) removing existing constraints last two options has nothing to do with normalisation process.
  • 16. 22) Which set of operators represent the complete set for relational algebra ? (a) Union, Difference, Projection, Selection, Cartesian Product (b) Selection, Cartesian Product, Projection, Union, Intersection (c) Cartesian Product, Projection, Selection, Difference, Intersection (d) Join, Union, Projection, Selection, Difference (e) Difference, Projection, Selection, Join, Intersection
  • 17. Relational Algebra Set Operators Union, Difference (Minus), Intersection Relational Operators Projection, Selection (Restrict), Cartesian Product, Join, Natural Join, Divide The complete set is sufficient to reconstruct any other operator. E.g. Intersection, Join etc may be reconstructed using this set. (a) Union, Difference, Projection, Selection, Cartesian Product
  • 18. 23) Which of the following are supported by Entry-level SQL-92 standard ? (a) Embedded SQL (b) Integrity enhancement (c) System catalogs (d) Triggers and stored procedures (e) Outer Join
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25. 24) Which set of key words cannot be used with SQL INSERT statement to enter data? (a) Insert, Select, Into, Set, Where (b) Insert, Into, Values, Copy (c) Select, Into, From, Where, Having (d) Into, Insert, Values, Null (e) From, Distinct, To, Insert, Having
  • 26.
  • 27. 25) Select the statement(s) that is (are) correct with respect to the use of JOIN (a) A table can join to itself creating a self-referencing join called a SELF-JOIN. (b) An EQUI-JOIN between two tables in a SELECT statement returns only the rows that have matching values in the join columns. (c) In an OUTER-JOIN, all of the rows of the dominant table are retrieved regardless of whether there are corresponding rows in the other table. (d) In an OUTER-JOIN, a join condition does not need to have the WHERE clause. (e) OUTER-JOIN cannot be used to join 3 tables.
  • 28. JOIN (a) A table can join to itself creating a self-referencing join called a SELF-JOIN. Employee( empno , name, supervisor, deptno) SELECT e.empno, e.name, s.name FROM Employee e, Employee s WHERE e.empno=s.supervisor
  • 29. JOIN (b) An EQUI-JOIN between two tables in a SELECT statement returns only the rows that have matching values in the join columns. Employee( empno , name, supervisor, deptno) Department( deptno , name) SELECT e.empno, e.name, d.name FROM Employee e, Department d WHERE e.deptno=d.deptno
  • 30. JOIN (c) In an OUTER-JOIN, all of the rows of the dominant table are retrieved regardless of whether there are corresponding rows in the other table. SELECT e.empno, e.name, d.name FROM Employee e, OUTER JOIN Department d WHERE e.deptno=d.deptno Retrieve all employee data regardless of match. Use NULL for those not matched.
  • 31. JOIN (d) In an OUTER-JOIN, a join condition does not need to have the WHERE clause. SELECT e.empno, e.name, d.name FROM Employee e, OUTER JOIN Department d WHERE e.deptno=d.deptno OR SELECT e.empno, e.name, d.name FROM (Employee AS e OUTER JOIN Department AS d ON e.deptno=d.deptno)
  • 32. JOIN (e) OUTER-JOIN cannot be used to join 3 tables.
  • 33.