SlideShare une entreprise Scribd logo
1  sur  32
for 5th Sem.
B.Sc. (SAE5B) & BCA (SAZ5A)
Unit II
• Query Basics
• Computation Using Queries
• Subtotals and GROUP BY Command
• Queries with Multiple Tables
• Subqueries
• Joins
• DDL & DML
• Testing Queries
Unit III
• Effective Design of Forms and Reports –
• Form Layout –
• Creating Forms –
• Graphical Objects –
• Reports –
• Procedural Languages –
• Data on Forms –
• Programs to Retrieve and Save Data –
• Error Handling.
Form Layout
Effective Design of Forms
• Collect data
• Display query data
• Display analysis and
computation result
• Switch board
• Direct manipulation of
object like Graphics
• For organize the overall
system.
Creating Forms
Types of Forms
• Tabular Forms
• Single-Row or Columnar
Forms
• Subform Forms
• Switchboard
Event driven Programming
Private Sub Command1_Click()
MsgBox "Hello, World!“
End Sub
Database connection
• ADO Data Control
• Data Grid Connection
Graphical Objects
Methods Description
Print
Print is the simplest graphic method in Visual Basic 6. This method has been used
throughout the earlier versions of the language. It prints some text on the form or on
the PictureBox control. It displays texts.
Cls
The Cls method is another simple graphic method that is used to clear the surface of
the form or the PictureBox control. If some texts are present, you can use the Cls
method to remove the texts. It clears any drawing created by the graphic methods.
Point
The Point method returns the color value from an image for a pixel at a particular
point. This method is generally used to retrieve color values from bitmaps.
Refresh
The refresh method redraws a control or object. In other words, it refreshes the control.
Generally, controls are refreshed automatically most of the times. But in some cases,
you need to refresh a control’s appearance manually by explicitly invoking the Refresh
method.
PSet
The PSet method sets the color of a single pixel on the form. This method is used to
draw points.
Line
The Line method draws a line. Using the Line method, you can also draw other
geometric shapes such as rectangle, triangle etc.
Circle
The Circle method draws a circle. Using the Circle method, you can also draw other
geometric shapes such ellipses, arcs etc.
PaintPicture The PaintPicture method displays an image on the form at run-time.
TextHeight The TextHeight method returns the height of a string on the form at run-time.
TextWidth The TextWidth method returns the width of a string on the form at run-time.
• Design a form with appropriate triggers to
implement the main menu interface of your
application. The minimal functions provided
should be four buttons for Student,
Instructor/Faculty, Administration, Exit. Each of
the buttons should take the user to another form
or interface for an action like log in. Proper and
complete navigation from this main form with
appropriate alerts and messages to the next
interface completes this question.
Reports
• Reports are
important and
useful in many
respects because
they provide useful
and meaningful
information
concerning a set of
data. Figure 5.1 Types of Reports
Types of reports
• Tabular Report
• Master/Detail Report
• Form Letter
• Form Report
• Mailing Label
• Matrix Report
Report Design
Report
Header
Contains the text that appears at the very
beginning of a report, such as the report title,
author, or database name. If you want the
Report Header to be the first page in the report,
set its ForcePageBreak property to
rptPageBreakAfter.
Page Header Contains information that goes at the top of
every page, such as the report's title.
Group
Header/Foot
er
Contains a "repeating" section of the data report.
Each group header is matched with group
footer. The header and footer pair is associated
with a single Command object in the Data
Environment designer.
Details Contains the innermost "repeating" part (the
records) of the report. The details section is
associated with the lowest-level Command
object in a Data Environment hierarchy.
Page Footer Contains the information that goes at the bottom
of every page, such as the page no.
Report
Footer
Contains the text that appears at the very end of
the report, such as summary information, or an
address or contact name.
Forms vs Reports
Forms Reports
Forms are sometimes referred to as "data
entry screens."
Reports are used to summarize and present
data in the tables
Forms are intended more for simple/limited
data interaction
Reports are used to present, typically, larger
volumes of data.
Most database users prefer to use forms for
viewing, entering, and editing data in the
tables.
Each report can be formatted to present the
information in the most readable way possible
You can change the values of underlying data
with a form.
You cannot change the value of the
underlying data for a report with a control
object from the toolbox as you can with forms
Forms are a generic term for windows
used to interact with users. A form can
accept data from a user for data entry or
to provide input to a query. A form can
present data to a user, e.g. the results of a
query.
Reports are only used to extract and
present data for viewing and printing.
Forms provide datasheet view. Reports do not provide a Datasheet view.
Only Print Preview and Report Design
views are available.
• How do you bring a report up into the Report
Previewer using Reports Runtime
interactively? How can you accomplish the
same task from the command line?
• Which type of report is commonly used for
SQL*Plus output? What sort of report might
be used to display a select statement
containing a group by clause?
PL/SQL
• PL/SQL (Procedural Language /SQL) is a
technology and not an independent product.
Think of this technology as an engine that
executes PL/SQL statements. This engine can
be installed in an oracle server of in
application tool. It bridges the gap between
database technology and procedural
programming language.
Basic code structure
DECLARE
-- Declaration block (optional)
BEGIN
-- Program proper
EXCEPTION
-- Exception-handling (optional)
END
/* Sample comment spanning Multiple
lines... */
TRIGGER
• Advantages of Triggers:
– Applying Complex Business rules.
– Security.
– Auditing.
Program 1: Create a database Trigger corresponding to emp table which is
not going to allow the user to insert the employee’s salary more than 5000.
Error Handling
• There are number of
reasons due to which
run time errors may be
raised during the
execution of a PL/SQL
block. With PL/SQL, a
mechanism called
exception handling lets
you “bulletproof” your
program so that it can
continue operating in
the presence of errors.
Figure 6.1 Exception handling
Unit IV
• Power of Application Structure
• User Interface Features
• Transaction
• Forms Events
• Custom Reports
• Distributing Application
• Table Operations
• Data Storage Methods
• Storing Data Columns
• Data Clustering and Partitioning.
Power of Application Structure
Database applications in many different ways
• Standalone
• Shared file
• Shared database
• Web server applications
Figure 7.1 Standalone
Figure 7.2 Shared
User interfaces for databases
Figure 7.4 User interfaces for databases
Transaction
• Example (pseudo code):
BEGIN TRANSACTION; /*move $$$$ from account A to account B*/
UPDATE account A; /*Withdrawal*/
UPDATE account B; /* Deposit*/
IF everything worked fine
THEN COMMIT; /* Normal end*/
ELSE ROLLBACK; /*abnormal end*/
END IF;
Distributing Application
– Make the application stand alone
• Runs completely from your forms
• Never needs to use the database menu (tables, queries, forms,
reports)
• Automatically starts when the database is opened
– Tools| Database Utilities| Startup.
– AutoExec macro
– Application format
• Standard database format files
• Encrypted files
– Run-time package (developer’s edition)
– Security
– Installation package
Table Operations
1. retrieving data,
2. storing data and
3. reorganizing the database.
Data Storage Methods
• Sequential storage
• Pointers
• Indexes
• Linked lists
• B+-Tree
• Hash Table
Centralized vs Distributed Data Storage
Figure 8.2a Centralized Data Storage
Figure 8.2b Distributed Data Storage
RAID Storage
• Redundant Array of Inexpensive Disks or
Redundant Array of Independent Disks
Figure 8.3 RAID Storage

Contenu connexe

Tendances

World wide web architecture presentation
World wide web architecture presentationWorld wide web architecture presentation
World wide web architecture presentationImMe Khan
 
distributed shared memory
 distributed shared memory distributed shared memory
distributed shared memoryAshish Kumar
 
Complete dbms notes
Complete dbms notesComplete dbms notes
Complete dbms notesTanya Makkar
 
Transaction states and properties
Transaction states and propertiesTransaction states and properties
Transaction states and propertiesChetan Mahawar
 
Cohen-Sutherland Line Clipping Algorithm
Cohen-Sutherland Line Clipping AlgorithmCohen-Sutherland Line Clipping Algorithm
Cohen-Sutherland Line Clipping AlgorithmMaruf Abdullah (Rion)
 
Network security - OSI Security Architecture
Network security - OSI Security ArchitectureNetwork security - OSI Security Architecture
Network security - OSI Security ArchitectureBharathiKrishna6
 
Coupling and cohesion
Coupling and cohesionCoupling and cohesion
Coupling and cohesionSutha31
 
Centralised and distributed database
Centralised and distributed databaseCentralised and distributed database
Centralised and distributed databaseSantosh Singh
 
Introduction to Operating Systems
Introduction to Operating SystemsIntroduction to Operating Systems
Introduction to Operating SystemsShweta Shah
 
Maintain equipment and consumables
Maintain equipment and consumablesMaintain equipment and consumables
Maintain equipment and consumablesGera Paulos
 
3 Level Architecture
3 Level Architecture3 Level Architecture
3 Level ArchitectureAdeel Rasheed
 
Introduction to computer programming
Introduction to computer programmingIntroduction to computer programming
Introduction to computer programmingNSU-Biliran Campus
 

Tendances (20)

World wide web architecture presentation
World wide web architecture presentationWorld wide web architecture presentation
World wide web architecture presentation
 
distributed shared memory
 distributed shared memory distributed shared memory
distributed shared memory
 
OSI Model
OSI ModelOSI Model
OSI Model
 
Complete dbms notes
Complete dbms notesComplete dbms notes
Complete dbms notes
 
Transaction states and properties
Transaction states and propertiesTransaction states and properties
Transaction states and properties
 
Cohen-Sutherland Line Clipping Algorithm
Cohen-Sutherland Line Clipping AlgorithmCohen-Sutherland Line Clipping Algorithm
Cohen-Sutherland Line Clipping Algorithm
 
Xml applications
Xml applicationsXml applications
Xml applications
 
Anomalies in database
Anomalies in databaseAnomalies in database
Anomalies in database
 
Clipping
ClippingClipping
Clipping
 
Network security - OSI Security Architecture
Network security - OSI Security ArchitectureNetwork security - OSI Security Architecture
Network security - OSI Security Architecture
 
Word processing
Word processingWord processing
Word processing
 
Coupling and cohesion
Coupling and cohesionCoupling and cohesion
Coupling and cohesion
 
Centralised and distributed database
Centralised and distributed databaseCentralised and distributed database
Centralised and distributed database
 
Web controls
Web controlsWeb controls
Web controls
 
DBMS Unit - 3 - Relational query languages
DBMS Unit - 3 - Relational query languagesDBMS Unit - 3 - Relational query languages
DBMS Unit - 3 - Relational query languages
 
Introduction to Operating Systems
Introduction to Operating SystemsIntroduction to Operating Systems
Introduction to Operating Systems
 
Maintain equipment and consumables
Maintain equipment and consumablesMaintain equipment and consumables
Maintain equipment and consumables
 
File system vs DBMS
File system vs DBMSFile system vs DBMS
File system vs DBMS
 
3 Level Architecture
3 Level Architecture3 Level Architecture
3 Level Architecture
 
Introduction to computer programming
Introduction to computer programmingIntroduction to computer programming
Introduction to computer programming
 

Similaire à Dbms fast track 2/3

bi-publisher.pptx
bi-publisher.pptxbi-publisher.pptx
bi-publisher.pptxkjkombrink
 
Oracle application express ppt
Oracle application express pptOracle application express ppt
Oracle application express pptAbhinaw Kumar
 
Power bi slide share pdf it is a very important
Power bi slide share pdf it is a very importantPower bi slide share pdf it is a very important
Power bi slide share pdf it is a very importantSatyabratarath5
 
Agile Methodology Approach to SSRS Reporting
Agile Methodology Approach to SSRS ReportingAgile Methodology Approach to SSRS Reporting
Agile Methodology Approach to SSRS ReportingDanielson Samuel
 
Crystal Reports Review
Crystal Reports ReviewCrystal Reports Review
Crystal Reports ReviewJustin R. Rue
 
3-Tier Architecture Step By Step Exercises
3-Tier Architecture Step By Step Exercises3-Tier Architecture Step By Step Exercises
3-Tier Architecture Step By Step ExercisesMiranda Anderson
 
Oracle application express
Oracle application expressOracle application express
Oracle application expressAbhinaw Kumar
 
Tableau Basic Questions
Tableau Basic QuestionsTableau Basic Questions
Tableau Basic QuestionsSooraj Vinodan
 
HARJOT.ppt
HARJOT.pptHARJOT.ppt
HARJOT.pptsatgup78
 
Siebel Open UI Presentation
Siebel Open UI PresentationSiebel Open UI Presentation
Siebel Open UI PresentationAjeeth Pingle
 
SAP ABAP Latest Interview Questions
SAP ABAP Latest  Interview Questions SAP ABAP Latest  Interview Questions
SAP ABAP Latest Interview Questions piyushchawala
 
Oracle D2K reports
Oracle D2K reports Oracle D2K reports
Oracle D2K reports Rajesh Ch
 
Database Design
Database DesignDatabase Design
Database Designlearnt
 
Demo Guidebook 040110
Demo Guidebook 040110Demo Guidebook 040110
Demo Guidebook 040110Brad Ganas
 
Découverte d'Einstein Analytics (Tableau CRM)
Découverte d'Einstein Analytics (Tableau CRM)Découverte d'Einstein Analytics (Tableau CRM)
Découverte d'Einstein Analytics (Tableau CRM)Doria Hamelryk
 

Similaire à Dbms fast track 2/3 (20)

bi-publisher.pptx
bi-publisher.pptxbi-publisher.pptx
bi-publisher.pptx
 
PowerBI Training
PowerBI Training PowerBI Training
PowerBI Training
 
SAP Adobe forms
SAP Adobe formsSAP Adobe forms
SAP Adobe forms
 
Fundamentals of Computing Chapter 8
Fundamentals of Computing Chapter 8Fundamentals of Computing Chapter 8
Fundamentals of Computing Chapter 8
 
oracle-reports6i
oracle-reports6ioracle-reports6i
oracle-reports6i
 
Oracle application express ppt
Oracle application express pptOracle application express ppt
Oracle application express ppt
 
Power bi slide share pdf it is a very important
Power bi slide share pdf it is a very importantPower bi slide share pdf it is a very important
Power bi slide share pdf it is a very important
 
Agile Methodology Approach to SSRS Reporting
Agile Methodology Approach to SSRS ReportingAgile Methodology Approach to SSRS Reporting
Agile Methodology Approach to SSRS Reporting
 
Crystal Reports Review
Crystal Reports ReviewCrystal Reports Review
Crystal Reports Review
 
3-Tier Architecture Step By Step Exercises
3-Tier Architecture Step By Step Exercises3-Tier Architecture Step By Step Exercises
3-Tier Architecture Step By Step Exercises
 
Oracle application express
Oracle application expressOracle application express
Oracle application express
 
Tableau Basic Questions
Tableau Basic QuestionsTableau Basic Questions
Tableau Basic Questions
 
HARJOT.ppt
HARJOT.pptHARJOT.ppt
HARJOT.ppt
 
Siebel Open UI Presentation
Siebel Open UI PresentationSiebel Open UI Presentation
Siebel Open UI Presentation
 
SAP ABAP Latest Interview Questions
SAP ABAP Latest  Interview Questions SAP ABAP Latest  Interview Questions
SAP ABAP Latest Interview Questions
 
Oracle D2K reports
Oracle D2K reports Oracle D2K reports
Oracle D2K reports
 
Database Design
Database DesignDatabase Design
Database Design
 
Demo Guidebook 040110
Demo Guidebook 040110Demo Guidebook 040110
Demo Guidebook 040110
 
Project report
Project report Project report
Project report
 
Découverte d'Einstein Analytics (Tableau CRM)
Découverte d'Einstein Analytics (Tableau CRM)Découverte d'Einstein Analytics (Tableau CRM)
Découverte d'Einstein Analytics (Tableau CRM)
 

Plus de Dr. C.V. Suresh Babu (20)

Data analytics with R
Data analytics with RData analytics with R
Data analytics with R
 
Association rules
Association rulesAssociation rules
Association rules
 
Clustering
ClusteringClustering
Clustering
 
Classification
ClassificationClassification
Classification
 
Blue property assumptions.
Blue property assumptions.Blue property assumptions.
Blue property assumptions.
 
Introduction to regression
Introduction to regressionIntroduction to regression
Introduction to regression
 
DART
DARTDART
DART
 
Mycin
MycinMycin
Mycin
 
Expert systems
Expert systemsExpert systems
Expert systems
 
Dempster shafer theory
Dempster shafer theoryDempster shafer theory
Dempster shafer theory
 
Bayes network
Bayes networkBayes network
Bayes network
 
Bayes' theorem
Bayes' theoremBayes' theorem
Bayes' theorem
 
Knowledge based agents
Knowledge based agentsKnowledge based agents
Knowledge based agents
 
Rule based system
Rule based systemRule based system
Rule based system
 
Formal Logic in AI
Formal Logic in AIFormal Logic in AI
Formal Logic in AI
 
Production based system
Production based systemProduction based system
Production based system
 
Game playing in AI
Game playing in AIGame playing in AI
Game playing in AI
 
Diagnosis test of diabetics and hypertension by AI
Diagnosis test of diabetics and hypertension by AIDiagnosis test of diabetics and hypertension by AI
Diagnosis test of diabetics and hypertension by AI
 
A study on “impact of artificial intelligence in covid19 diagnosis”
A study on “impact of artificial intelligence in covid19 diagnosis”A study on “impact of artificial intelligence in covid19 diagnosis”
A study on “impact of artificial intelligence in covid19 diagnosis”
 
A study on “impact of artificial intelligence in covid19 diagnosis”
A study on “impact of artificial intelligence in covid19 diagnosis”A study on “impact of artificial intelligence in covid19 diagnosis”
A study on “impact of artificial intelligence in covid19 diagnosis”
 

Dernier

Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxPooja Bhuva
 
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
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17Celine George
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
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
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
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
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxPooja Bhuva
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 

Dernier (20)

Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
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
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
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
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
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
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 

Dbms fast track 2/3

  • 1.
  • 2. for 5th Sem. B.Sc. (SAE5B) & BCA (SAZ5A)
  • 3. Unit II • Query Basics • Computation Using Queries • Subtotals and GROUP BY Command • Queries with Multiple Tables • Subqueries • Joins • DDL & DML • Testing Queries
  • 4. Unit III • Effective Design of Forms and Reports – • Form Layout – • Creating Forms – • Graphical Objects – • Reports – • Procedural Languages – • Data on Forms – • Programs to Retrieve and Save Data – • Error Handling.
  • 6. Effective Design of Forms • Collect data • Display query data • Display analysis and computation result • Switch board • Direct manipulation of object like Graphics • For organize the overall system.
  • 8. Types of Forms • Tabular Forms • Single-Row or Columnar Forms • Subform Forms • Switchboard
  • 9.
  • 10. Event driven Programming Private Sub Command1_Click() MsgBox "Hello, World!“ End Sub
  • 11. Database connection • ADO Data Control • Data Grid Connection
  • 12. Graphical Objects Methods Description Print Print is the simplest graphic method in Visual Basic 6. This method has been used throughout the earlier versions of the language. It prints some text on the form or on the PictureBox control. It displays texts. Cls The Cls method is another simple graphic method that is used to clear the surface of the form or the PictureBox control. If some texts are present, you can use the Cls method to remove the texts. It clears any drawing created by the graphic methods. Point The Point method returns the color value from an image for a pixel at a particular point. This method is generally used to retrieve color values from bitmaps. Refresh The refresh method redraws a control or object. In other words, it refreshes the control. Generally, controls are refreshed automatically most of the times. But in some cases, you need to refresh a control’s appearance manually by explicitly invoking the Refresh method. PSet The PSet method sets the color of a single pixel on the form. This method is used to draw points. Line The Line method draws a line. Using the Line method, you can also draw other geometric shapes such as rectangle, triangle etc. Circle The Circle method draws a circle. Using the Circle method, you can also draw other geometric shapes such ellipses, arcs etc. PaintPicture The PaintPicture method displays an image on the form at run-time. TextHeight The TextHeight method returns the height of a string on the form at run-time. TextWidth The TextWidth method returns the width of a string on the form at run-time.
  • 13. • Design a form with appropriate triggers to implement the main menu interface of your application. The minimal functions provided should be four buttons for Student, Instructor/Faculty, Administration, Exit. Each of the buttons should take the user to another form or interface for an action like log in. Proper and complete navigation from this main form with appropriate alerts and messages to the next interface completes this question.
  • 14. Reports • Reports are important and useful in many respects because they provide useful and meaningful information concerning a set of data. Figure 5.1 Types of Reports
  • 15. Types of reports • Tabular Report • Master/Detail Report • Form Letter • Form Report • Mailing Label • Matrix Report
  • 16. Report Design Report Header Contains the text that appears at the very beginning of a report, such as the report title, author, or database name. If you want the Report Header to be the first page in the report, set its ForcePageBreak property to rptPageBreakAfter. Page Header Contains information that goes at the top of every page, such as the report's title. Group Header/Foot er Contains a "repeating" section of the data report. Each group header is matched with group footer. The header and footer pair is associated with a single Command object in the Data Environment designer. Details Contains the innermost "repeating" part (the records) of the report. The details section is associated with the lowest-level Command object in a Data Environment hierarchy. Page Footer Contains the information that goes at the bottom of every page, such as the page no. Report Footer Contains the text that appears at the very end of the report, such as summary information, or an address or contact name.
  • 17. Forms vs Reports Forms Reports Forms are sometimes referred to as "data entry screens." Reports are used to summarize and present data in the tables Forms are intended more for simple/limited data interaction Reports are used to present, typically, larger volumes of data. Most database users prefer to use forms for viewing, entering, and editing data in the tables. Each report can be formatted to present the information in the most readable way possible You can change the values of underlying data with a form. You cannot change the value of the underlying data for a report with a control object from the toolbox as you can with forms Forms are a generic term for windows used to interact with users. A form can accept data from a user for data entry or to provide input to a query. A form can present data to a user, e.g. the results of a query. Reports are only used to extract and present data for viewing and printing. Forms provide datasheet view. Reports do not provide a Datasheet view. Only Print Preview and Report Design views are available.
  • 18. • How do you bring a report up into the Report Previewer using Reports Runtime interactively? How can you accomplish the same task from the command line? • Which type of report is commonly used for SQL*Plus output? What sort of report might be used to display a select statement containing a group by clause?
  • 19. PL/SQL • PL/SQL (Procedural Language /SQL) is a technology and not an independent product. Think of this technology as an engine that executes PL/SQL statements. This engine can be installed in an oracle server of in application tool. It bridges the gap between database technology and procedural programming language.
  • 20. Basic code structure DECLARE -- Declaration block (optional) BEGIN -- Program proper EXCEPTION -- Exception-handling (optional) END /* Sample comment spanning Multiple lines... */
  • 21. TRIGGER • Advantages of Triggers: – Applying Complex Business rules. – Security. – Auditing.
  • 22. Program 1: Create a database Trigger corresponding to emp table which is not going to allow the user to insert the employee’s salary more than 5000.
  • 23. Error Handling • There are number of reasons due to which run time errors may be raised during the execution of a PL/SQL block. With PL/SQL, a mechanism called exception handling lets you “bulletproof” your program so that it can continue operating in the presence of errors. Figure 6.1 Exception handling
  • 24. Unit IV • Power of Application Structure • User Interface Features • Transaction • Forms Events • Custom Reports • Distributing Application • Table Operations • Data Storage Methods • Storing Data Columns • Data Clustering and Partitioning.
  • 25. Power of Application Structure Database applications in many different ways • Standalone • Shared file • Shared database • Web server applications Figure 7.1 Standalone Figure 7.2 Shared
  • 26. User interfaces for databases Figure 7.4 User interfaces for databases
  • 27. Transaction • Example (pseudo code): BEGIN TRANSACTION; /*move $$$$ from account A to account B*/ UPDATE account A; /*Withdrawal*/ UPDATE account B; /* Deposit*/ IF everything worked fine THEN COMMIT; /* Normal end*/ ELSE ROLLBACK; /*abnormal end*/ END IF;
  • 28. Distributing Application – Make the application stand alone • Runs completely from your forms • Never needs to use the database menu (tables, queries, forms, reports) • Automatically starts when the database is opened – Tools| Database Utilities| Startup. – AutoExec macro – Application format • Standard database format files • Encrypted files – Run-time package (developer’s edition) – Security – Installation package
  • 29. Table Operations 1. retrieving data, 2. storing data and 3. reorganizing the database.
  • 30. Data Storage Methods • Sequential storage • Pointers • Indexes • Linked lists • B+-Tree • Hash Table
  • 31. Centralized vs Distributed Data Storage Figure 8.2a Centralized Data Storage Figure 8.2b Distributed Data Storage
  • 32. RAID Storage • Redundant Array of Inexpensive Disks or Redundant Array of Independent Disks Figure 8.3 RAID Storage