SlideShare ist ein Scribd-Unternehmen logo
1 von 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

Weitere ähnliche Inhalte

Was ist angesagt?

1. Introduction to DBMS
1. Introduction to DBMS1. Introduction to DBMS
1. Introduction to DBMSkoolkampus
 
Student information chatbot final report
Student information chatbot  final report Student information chatbot  final report
Student information chatbot final report jaysavani5
 
Object oriented database concepts
Object oriented database conceptsObject oriented database concepts
Object oriented database conceptsTemesgenthanks
 
Leaky Bucket & Tocken Bucket - Traffic shaping
Leaky Bucket & Tocken Bucket - Traffic shapingLeaky Bucket & Tocken Bucket - Traffic shaping
Leaky Bucket & Tocken Bucket - Traffic shapingVimal Dewangan
 
Operating System-Ch4.processes
Operating System-Ch4.processesOperating System-Ch4.processes
Operating System-Ch4.processesSyaiful Ahdan
 
Critical section problem in operating system.
Critical section problem in operating system.Critical section problem in operating system.
Critical section problem in operating system.MOHIT DADU
 
Library management system presentation
Library management system presentation Library management system presentation
Library management system presentation Smit Patel
 
Introduction to Database
Introduction to DatabaseIntroduction to Database
Introduction to DatabaseSiti Ismail
 
Client server architecture
Client server architectureClient server architecture
Client server architectureBhargav Amin
 
File Management in Operating System
File Management in Operating SystemFile Management in Operating System
File Management in Operating SystemJanki Shah
 
REPORT ON ASP.NET
REPORT ON ASP.NETREPORT ON ASP.NET
REPORT ON ASP.NETLOKESH
 
15. Transactions in DBMS
15. Transactions in DBMS15. Transactions in DBMS
15. Transactions in DBMSkoolkampus
 
Components and Advantages of DBMS
Components and Advantages of DBMSComponents and Advantages of DBMS
Components and Advantages of DBMSShubham Joon
 

Was ist angesagt? (20)

1. Introduction to DBMS
1. Introduction to DBMS1. Introduction to DBMS
1. Introduction to DBMS
 
Student information chatbot final report
Student information chatbot  final report Student information chatbot  final report
Student information chatbot final report
 
Object oriented database concepts
Object oriented database conceptsObject oriented database concepts
Object oriented database concepts
 
Stock Management System Documentation
Stock Management System DocumentationStock Management System Documentation
Stock Management System Documentation
 
Leaky Bucket & Tocken Bucket - Traffic shaping
Leaky Bucket & Tocken Bucket - Traffic shapingLeaky Bucket & Tocken Bucket - Traffic shaping
Leaky Bucket & Tocken Bucket - Traffic shaping
 
Operating System-Ch4.processes
Operating System-Ch4.processesOperating System-Ch4.processes
Operating System-Ch4.processes
 
Critical section problem in operating system.
Critical section problem in operating system.Critical section problem in operating system.
Critical section problem in operating system.
 
Difference between c, c++ and java
Difference between c, c++ and javaDifference between c, c++ and java
Difference between c, c++ and java
 
Library management system presentation
Library management system presentation Library management system presentation
Library management system presentation
 
Introduction to Database
Introduction to DatabaseIntroduction to Database
Introduction to Database
 
Client server architecture
Client server architectureClient server architecture
Client server architecture
 
Schema
SchemaSchema
Schema
 
File Management in Operating System
File Management in Operating SystemFile Management in Operating System
File Management in Operating System
 
Blue prism introduction
Blue prism introductionBlue prism introduction
Blue prism introduction
 
Scheduling algorithms
Scheduling algorithmsScheduling algorithms
Scheduling algorithms
 
File system structure
File system structureFile system structure
File system structure
 
REPORT ON ASP.NET
REPORT ON ASP.NETREPORT ON ASP.NET
REPORT ON ASP.NET
 
15. Transactions in DBMS
15. Transactions in DBMS15. Transactions in DBMS
15. Transactions in DBMS
 
Components and Advantages of DBMS
Components and Advantages of DBMSComponents and Advantages of DBMS
Components and Advantages of DBMS
 
Single Pass Assembler
Single Pass AssemblerSingle Pass Assembler
Single Pass Assembler
 

Ähnlich wie 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
 

Ähnlich wie 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)
 

Mehr von 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”
 

Kürzlich hochgeladen

Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
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
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
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
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 

Kürzlich hochgeladen (20)

INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
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
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
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
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 

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