This document provides an overview of object-oriented databases including:
- Definitions of objects and their structures using type constructors.
- Object-oriented concepts like encapsulation and inheritance.
- What an object-oriented database is and advantages it provides.
- Examples of the Object Query Language (OQL) and how it differs from SQL.
- SQL3 which adds object-oriented features to SQL like user-defined data types.
This document provides an overview of object-oriented databases including:
- Definitions of objects and their structures using type constructors.
- Object-oriented concepts like encapsulation and inheritance.
- What an object-oriented database is and advantages it provides.
- Examples of the Object Query Language (OQL) and how it differs from SQL.
- SQL3 which adds object-oriented features to SQL like user-defined data types.
This document provides an introduction to object-oriented databases (OODBMS). It discusses key concepts like objects having an identity, structure and type constructor. An OODBMS allows for complex object structures, encapsulation of operations, inheritance and relationships between objects using object identifiers. It provides advantages over traditional databases for applications requiring complex data types and application-specific operations.
This document provides an overview of object-oriented databases including:
- Definitions of objects and their structures using type constructors.
- Object-oriented concepts like encapsulation and inheritance.
- What an object-oriented database is and its advantages over relational databases.
- Examples of the Object Query Language (OQL) and SQL3 for querying objects and complex data types.
- How methods can be defined and associated with tables to handle more complex queries.
The document discusses the fundamentals of object-oriented databases (OODBs), detailing key concepts such as object identity, encapsulation, and inheritance. It highlights the structure and types of object definitions, including basic constructors and user-defined types. The chapter concludes by emphasizing the ability of OODBs to manage complex data structures and encapsulate operations through methods and persistent objects.
Object relational database management systemSaibee Alam
The document provides an overview of Object Relational Database Management Systems (ORDBMS), explaining their integration of object-oriented features into traditional relational databases. It describes advantages such as enhanced data management capabilities and compatibility with existing systems, while also noting disadvantages including complexity and cost. Key comparisons are made between ORDBMS, RDBMS, and OODBMS, alongside details about SQL3 and user-defined abstract data types.
This document discusses concepts related to object-oriented databases. It begins by outlining the objectives of examining object-oriented database design concepts and understanding the transition from relational to object-oriented databases. It then provides background on how object-oriented databases arose from advancements in relational database management systems and how they integrate object-oriented programming concepts. The key aspects of object-oriented databases are described as objects serving as the basic building blocks organized into classes with methods and inheritance. The document also covers object-oriented programming concepts like encapsulation, polymorphism, and abstraction that characterize object-oriented management systems. Examples are provided of object database structures and queries.
1) Object oriented databases were developed to directly represent complex objects from emerging applications that could not be effectively modeled in the relational model. 2) Embedded SQL allows SQL queries to be embedded within a general purpose programming language to access and manipulate database objects. 3) Object oriented database management systems can be either pure object oriented programming languages with persistence or extend relational databases with object oriented features as defined in the SQL3 standard.
Object relational and extended relational databasesSuhad Jihad
This document discusses object-relational and extended relational databases. It begins with an introduction and agenda. It then covers database design for ORDBMS, including complex data types, structured types, type inheritance, and array/multiset types. It discusses creating and querying collection-valued attributes. Finally, it covers nesting and unnesting relations to transform between normalized and denormalized forms. The key topics covered in 3 sentences or less are: database design for ORDBMS supports objects, classes, and inheritance; structured types allow user-defined complex attributes; type inheritance and subtables allow modeling specialization hierarchies; and arrays and multisets allow modeling ordered and unordered collections as attributes.
The document discusses object database systems and their advantages over relational database management systems (RDBMS). It notes problems with representing real-world entities in RDBMSs and describes how object-oriented and object-relational database models address these issues better by allowing for inheritance, complex data types, and encapsulation of both data and behavior. The key advantages of object database systems include more closely modeling real-world entities and supporting reuse through inheritance. Object-relational database systems combine object and relational approaches for increased flexibility.
This document outlines a course on advances in database management systems. The course covers object and object-relational databases over 9 hours. Topics include object database concepts, object extensions to SQL, the ODMG object model and ODL language, object database design, and the OQL query language. The course is taught by Dr. M.K. Jayanthi Kannan at JAIN Deemed To-Be University.
Object-oriented databases (OODB) are designed to address the limitations of traditional databases by supporting complex data structures and relationships, making them suitable for various applications like engineering and multimedia. They incorporate object-oriented programming principles, including encapsulation, inheritance, and unique identifiers for object persistence, thus allowing greater flexibility and efficiency in data management. Key features of OOBDs include complex type structures, operator overloading, and type hierarchies, enabling a robust framework for defining and managing database objects.
The document provides an overview of object-oriented databases and SQL3. It defines objects, object structures, and object-oriented concepts. It then discusses object-oriented database systems (OODBS), the Object Query Language (OQL) with an example query, and SQL3 which supports both relational and object-oriented features such as user-defined data types and methods.
The document presents an overview of object-oriented databases (OODBs) and key concepts including object definitions, structures, and query languages like OQL. It discusses the characteristics of objects, advantages of OODBs, examples of object queries, and the integration of object-oriented features with SQL. Additionally, it highlights the benefits of using OODBs for managing complex data types and structures in applications.
DDL. data defination language for creating databaseSHAKIR325211
This document provides an overview of how to create and manage tables in a database using DDL statements. It covers topics such as the structure of tables, data types, naming rules, the creation and alteration of tables, and essential commands like CREATE, ALTER, and DROP. It emphasizes the importance of proper privilege and syntax for effective database management.
The document discusses Chapter 21 of an object database course. It provides an overview of object database standards, languages, and conceptual design. Specifically, it outlines the Object Data Management Group (ODMG) standard, which includes the Object Definition Language (ODL) and Object Query Language (OQL). It also describes the ODMG object model and how relationships, inheritance, and operations are handled differently in object databases compared to relational databases.
Object-oriented Development with PL-SQLDonald Bales
This document discusses object-oriented development with PL/SQL. It begins with an introduction to object-oriented concepts like polymorphism, encapsulation, and inheritance. It then covers how to define object types and type bodies in PL/SQL, including attributes, methods, and inheritance. It provides examples of defining constructor, member, map, and static methods. It also discusses how to declare PL/SQL variables of an object type and access object attributes and methods.
Object oriented development with PL/SQLDonald Bales
The document discusses object-oriented development using PL/SQL, focusing on concepts such as types, object tables, encapsulation, inheritance, and polymorphism. It explains how to define types, create object-oriented methods, and implement encapsulation and inheritance in PL/SQL programming. Additionally, it provides examples and procedures for creating and using objects and their attributes in the context of PL/SQL.
The document discusses Oracle as a database management system (DBMS) that facilitates the management and querying of databases. It highlights various tools for database design, querying, and reporting, alongside features like object types, triggers, and replication methods. Additionally, it covers support for large data loads and optimization of queries across distributed databases.
The document discusses object-oriented databases and their advantages over traditional relational databases, including their ability to model more complex objects and data types. It covers fundamental concepts of object-oriented data models like classes, objects, inheritance, encapsulation, and polymorphism. Examples are provided to illustrate object identity, object structure using type constructors, and how an object-oriented model can represent relational data.
The document discusses the use of object-oriented programming (OOP) concepts in Oracle databases, including topics like object types, identity, encapsulation, inheritance, and polymorphism. It provides examples of creating object types and methods, detailing how Oracle handles object storage, references, and type evolution. The document emphasizes the challenges and considerations when implementing OOP principles in a relational database context.
This document provides an overview of object-relational database management systems (ORDBMS). It discusses why vendors extended relational database systems to include object-oriented features, such as user-defined types, inheritance, polymorphism and complex objects. It covers the advantages of ORDBMS in resolving weaknesses of RDBMS while preserving existing relational applications. The document also reviews new object-oriented features introduced in SQL:2003, including row types, user-defined types, reference types, user-defined routines, subtypes/supertypes, and collection types.
The document discusses object-relational and extended relational databases. It covers how an ORDBMS supports both relational and object-oriented aspects by allowing objects, classes, inheritance and other OO concepts in database schemas and queries. It provides examples of using ADTs and structured types to store complex data like videos more efficiently compared to a traditional RDBMS. Query processing and optimization techniques for ORDBMS are also discussed, such as user-defined aggregates, method caching and pointer swizzling.
The document discusses Structured Query Language (SQL). It describes SQL as a declarative query language used to define database schemas, manipulate data through queries, and perform operations like insert, update, delete. It also outlines SQL's data definition language for defining database structure and data types, and its data manipulation language for conducting queries and CRUD operations. The document provides a brief history of SQL and describes the SQL standard.
This document provides an overview of key concepts in database management systems including:
- The main components of a DBMS including the query processor, storage manager, and disk storage.
- The three schema architecture separating the conceptual, internal, and external schemas.
- Database languages like DDL, DML, DCL, and TCL and their purposes.
- Entity-relationship modeling including entities, attributes, relationships, and extensions.
- Different types of database users such as administrators, designers, programmers, and end users.
This document provides an overview of key concepts in database management systems including:
- The main components of a DBMS including the query processor, storage manager, and disk storage.
- The three schema architecture separating the conceptual, internal, and external schemas.
- Database languages like DDL, DML, DCL, and TCL and their purposes.
- Entity-relationship modeling including entities, attributes, relationships, and extensions.
- Different types of database users such as administrators, designers, programmers, and end users.
- An object-relational database (ORD) or object-relational database management system (ORDBMS) supports objects, classes, and inheritance directly in the database schema and query language, while also retaining the relational model.
- An ORDBMS supports an extended form of SQL called SQL3 for handling abstract data types. It allows storage of complex data types like images and location data.
- Key advantages of ORDBMS include reuse and sharing of code through inheritance, increased productivity for developers and users, and more powerful query capabilities. Key challenges include complexity, immaturity of the technology, and increased costs.
Object relational and extended relational databasesSuhad Jihad
This document discusses object-relational and extended relational databases. It begins with an introduction and agenda. It then covers database design for ORDBMS, including complex data types, structured types, type inheritance, and array/multiset types. It discusses creating and querying collection-valued attributes. Finally, it covers nesting and unnesting relations to transform between normalized and denormalized forms. The key topics covered in 3 sentences or less are: database design for ORDBMS supports objects, classes, and inheritance; structured types allow user-defined complex attributes; type inheritance and subtables allow modeling specialization hierarchies; and arrays and multisets allow modeling ordered and unordered collections as attributes.
The document discusses object database systems and their advantages over relational database management systems (RDBMS). It notes problems with representing real-world entities in RDBMSs and describes how object-oriented and object-relational database models address these issues better by allowing for inheritance, complex data types, and encapsulation of both data and behavior. The key advantages of object database systems include more closely modeling real-world entities and supporting reuse through inheritance. Object-relational database systems combine object and relational approaches for increased flexibility.
This document outlines a course on advances in database management systems. The course covers object and object-relational databases over 9 hours. Topics include object database concepts, object extensions to SQL, the ODMG object model and ODL language, object database design, and the OQL query language. The course is taught by Dr. M.K. Jayanthi Kannan at JAIN Deemed To-Be University.
Object-oriented databases (OODB) are designed to address the limitations of traditional databases by supporting complex data structures and relationships, making them suitable for various applications like engineering and multimedia. They incorporate object-oriented programming principles, including encapsulation, inheritance, and unique identifiers for object persistence, thus allowing greater flexibility and efficiency in data management. Key features of OOBDs include complex type structures, operator overloading, and type hierarchies, enabling a robust framework for defining and managing database objects.
The document provides an overview of object-oriented databases and SQL3. It defines objects, object structures, and object-oriented concepts. It then discusses object-oriented database systems (OODBS), the Object Query Language (OQL) with an example query, and SQL3 which supports both relational and object-oriented features such as user-defined data types and methods.
The document presents an overview of object-oriented databases (OODBs) and key concepts including object definitions, structures, and query languages like OQL. It discusses the characteristics of objects, advantages of OODBs, examples of object queries, and the integration of object-oriented features with SQL. Additionally, it highlights the benefits of using OODBs for managing complex data types and structures in applications.
DDL. data defination language for creating databaseSHAKIR325211
This document provides an overview of how to create and manage tables in a database using DDL statements. It covers topics such as the structure of tables, data types, naming rules, the creation and alteration of tables, and essential commands like CREATE, ALTER, and DROP. It emphasizes the importance of proper privilege and syntax for effective database management.
The document discusses Chapter 21 of an object database course. It provides an overview of object database standards, languages, and conceptual design. Specifically, it outlines the Object Data Management Group (ODMG) standard, which includes the Object Definition Language (ODL) and Object Query Language (OQL). It also describes the ODMG object model and how relationships, inheritance, and operations are handled differently in object databases compared to relational databases.
Object-oriented Development with PL-SQLDonald Bales
This document discusses object-oriented development with PL/SQL. It begins with an introduction to object-oriented concepts like polymorphism, encapsulation, and inheritance. It then covers how to define object types and type bodies in PL/SQL, including attributes, methods, and inheritance. It provides examples of defining constructor, member, map, and static methods. It also discusses how to declare PL/SQL variables of an object type and access object attributes and methods.
Object oriented development with PL/SQLDonald Bales
The document discusses object-oriented development using PL/SQL, focusing on concepts such as types, object tables, encapsulation, inheritance, and polymorphism. It explains how to define types, create object-oriented methods, and implement encapsulation and inheritance in PL/SQL programming. Additionally, it provides examples and procedures for creating and using objects and their attributes in the context of PL/SQL.
The document discusses Oracle as a database management system (DBMS) that facilitates the management and querying of databases. It highlights various tools for database design, querying, and reporting, alongside features like object types, triggers, and replication methods. Additionally, it covers support for large data loads and optimization of queries across distributed databases.
The document discusses object-oriented databases and their advantages over traditional relational databases, including their ability to model more complex objects and data types. It covers fundamental concepts of object-oriented data models like classes, objects, inheritance, encapsulation, and polymorphism. Examples are provided to illustrate object identity, object structure using type constructors, and how an object-oriented model can represent relational data.
The document discusses the use of object-oriented programming (OOP) concepts in Oracle databases, including topics like object types, identity, encapsulation, inheritance, and polymorphism. It provides examples of creating object types and methods, detailing how Oracle handles object storage, references, and type evolution. The document emphasizes the challenges and considerations when implementing OOP principles in a relational database context.
This document provides an overview of object-relational database management systems (ORDBMS). It discusses why vendors extended relational database systems to include object-oriented features, such as user-defined types, inheritance, polymorphism and complex objects. It covers the advantages of ORDBMS in resolving weaknesses of RDBMS while preserving existing relational applications. The document also reviews new object-oriented features introduced in SQL:2003, including row types, user-defined types, reference types, user-defined routines, subtypes/supertypes, and collection types.
The document discusses object-relational and extended relational databases. It covers how an ORDBMS supports both relational and object-oriented aspects by allowing objects, classes, inheritance and other OO concepts in database schemas and queries. It provides examples of using ADTs and structured types to store complex data like videos more efficiently compared to a traditional RDBMS. Query processing and optimization techniques for ORDBMS are also discussed, such as user-defined aggregates, method caching and pointer swizzling.
The document discusses Structured Query Language (SQL). It describes SQL as a declarative query language used to define database schemas, manipulate data through queries, and perform operations like insert, update, delete. It also outlines SQL's data definition language for defining database structure and data types, and its data manipulation language for conducting queries and CRUD operations. The document provides a brief history of SQL and describes the SQL standard.
This document provides an overview of key concepts in database management systems including:
- The main components of a DBMS including the query processor, storage manager, and disk storage.
- The three schema architecture separating the conceptual, internal, and external schemas.
- Database languages like DDL, DML, DCL, and TCL and their purposes.
- Entity-relationship modeling including entities, attributes, relationships, and extensions.
- Different types of database users such as administrators, designers, programmers, and end users.
This document provides an overview of key concepts in database management systems including:
- The main components of a DBMS including the query processor, storage manager, and disk storage.
- The three schema architecture separating the conceptual, internal, and external schemas.
- Database languages like DDL, DML, DCL, and TCL and their purposes.
- Entity-relationship modeling including entities, attributes, relationships, and extensions.
- Different types of database users such as administrators, designers, programmers, and end users.
- An object-relational database (ORD) or object-relational database management system (ORDBMS) supports objects, classes, and inheritance directly in the database schema and query language, while also retaining the relational model.
- An ORDBMS supports an extended form of SQL called SQL3 for handling abstract data types. It allows storage of complex data types like images and location data.
- Key advantages of ORDBMS include reuse and sharing of code through inheritance, increased productivity for developers and users, and more powerful query capabilities. Key challenges include complexity, immaturity of the technology, and increased costs.
This presentation has been made keeping in mind the students of undergraduate and postgraduate level. In this slide try to present the brief history of Chaulukyas of Gujrat up to Kumarpala To keep the facts in a natural form and to display the material in more detail, the help of various books, websites and online medium has been taken. Whatever medium the material or facts have been taken from, an attempt has been made by the presenter to give their reference at the end.
Chaulukya or Solanki was one of the Rajputs born from Agnikul. In the Vadnagar inscription, the origin of this dynasty is told from Brahma's Chauluk or Kamandalu. They ruled in Gujarat from the latter half of the tenth century to the beginning of the thirteenth century. Their capital was in Anahilwad. It is not certain whether it had any relation with the Chalukya dynasty of the south or not. It is worth mentioning that the name of the dynasty of the south was 'Chaluky' while the dynasty of Gujarat has been called 'Chaulukya'. The rulers of this dynasty were the supporters and patrons of Jainism.
Energy Balances Of Oecd Countries 2011 Iea Statistics 1st Edition Oecdrazelitouali
Energy Balances Of Oecd Countries 2011 Iea Statistics 1st Edition Oecd
Energy Balances Of Oecd Countries 2011 Iea Statistics 1st Edition Oecd
Energy Balances Of Oecd Countries 2011 Iea Statistics 1st Edition Oecd
Analysis of Quantitative Data Parametric and non-parametric tests.pptxShrutidhara2
This presentation covers the following points--
Parametric Tests
• Testing the Significance of the Difference between Means
• Analysis of Variance (ANOVA) - One way and Two way
• Analysis of Co-variance (One-way)
Non-Parametric Tests:
• Chi-Square test
• Sign test
• Median test
• Sum of Rank test
• Mann-Whitney U-test
Moreover, it includes a comparison of parametric and non-parametric tests, a comparison of one-way ANOVA, two-way ANOVA, and one-way ANCOVA.
ROLE PLAY: FIRST AID -CPR & RECOVERY POSITION.pptxBelicia R.S
Role play : First Aid- CPR, Recovery position and Hand hygiene.
Scene 1: Three friends are shopping in a mall
Scene 2: One of the friend becomes victim to electric shock.
Scene 3: Arrival of a first aider
Steps:
Safety First
Evaluate the victim‘s condition
Call for help
Perform CPR- Secure an open airway, Chest compression, Recuse breaths.
Put the victim in Recovery position if unconscious and breathing normally.
Paper 108 | Thoreau’s Influence on Gandhi: The Evolution of Civil DisobedienceRajdeep Bavaliya
Dive into the powerful journey from Thoreau’s 19th‑century essay to Gandhi’s mass movement, and discover how one man’s moral stand became the backbone of nonviolent resistance worldwide. Learn how conscience met strategy to spark revolutions, and why their legacy still inspires today’s social justice warriors. Uncover the evolution of civil disobedience. Don’t forget to like, share, and follow for more deep dives into the ideas that changed the world.
M.A. Sem - 2 | Presentation
Presentation Season - 2
Paper - 108: The American Literature
Submitted Date: April 2, 2025
Paper Name: The American Literature
Topic: Thoreau’s Influence on Gandhi: The Evolution of Civil Disobedience
[Please copy the link and paste it into any web browser to access the content.]
Video Link: https://youtu.be/HXeq6utg7iQ
For a more in-depth discussion of this presentation, please visit the full blog post at the following link: https://rajdeepbavaliya2.blogspot.com/2025/04/thoreau-s-influence-on-gandhi-the-evolution-of-civil-disobedience.html
Please visit this blog to explore additional presentations from this season:
Hashtags:
#CivilDisobedience #ThoreauToGandhi #NonviolentResistance #Satyagraha #Transcendentalism #SocialJustice #HistoryUncovered #GandhiLegacy #ThoreauInfluence #PeacefulProtest
Keyword Tags:
civil disobedience, Thoreau, Gandhi, Satyagraha, nonviolent protest, transcendentalism, moral resistance, Gandhi Thoreau connection, social change, political philosophy
Sustainable Innovation with Immersive LearningLeonel Morgado
Prof. Leonel and Prof. Dennis approached educational uses, practices, and strategies of using immersion as a lens to interpret, design, and planning educational activities in a sustainable way. Rather than one-off gimmicks, the intent is to enable instructors (and institutions) to be able to include them in their regular activities, including the ability to evaluate and redesign them.
Immersion as a phenomenon enables interpreting pedagogical activities in a learning-agnostic way: you take a stance on the learning theory to follow, and leverage immersion to envision and guide your practice.
How to Create an Event in Odoo 18 - Odoo 18 SlidesCeline George
Creating an event in Odoo 18 is a straightforward process that allows you to manage various aspects of your event efficiently.
Odoo 18 Events Module is a powerful tool for organizing and managing events of all sizes, from conferences and workshops to webinars and meetups.
Battle of Bookworms is a literature quiz organized by Pragya, UEM Kolkata, as part of their cultural fest Ecstasia. Curated by quizmasters Drisana Bhattacharyya, Argha Saha, and Aniket Adhikari, the quiz was a dynamic mix of classical literature, modern writing, mythology, regional texts, and experimental literary forms. It began with a 20-question prelim round where ‘star questions’ played a key tie-breaking role. The top 8 teams moved into advanced rounds, where they faced audio-visual challenges, pounce/bounce formats, immunity tokens, and theme-based risk-reward questions. From Orwell and Hemingway to Tagore and Sarala Das, the quiz traversed a global and Indian literary landscape. Unique rounds explored slipstream fiction, constrained writing, adaptations, and true crime literature. It included signature IDs, character identifications, and open-pounce selections. Questions were crafted to test contextual understanding, narrative knowledge, and authorial intent, making the quiz both intellectually rewarding and culturally rich. Battle of Bookworms proved literature quizzes can be insightful, creative, and deeply enjoyable for all.
THE QUIZ CLUB OF PSGCAS BRINGS T0 YOU A FUN-FILLED, SEAT EDGE BUSINESS QUIZ
DIVE INTO THE PRELIMS OF BIZCOM 2024
QM: GOWTHAM S
BCom (2022-25)
THE QUIZ CLUB OF PSGCAS
This presentation has been made keeping in mind the students of undergraduate and postgraduate level. To keep the facts in a natural form and to display the material in more detail, the help of various books, websites and online medium has been taken. Whatever medium the material or facts have been taken from, an attempt has been made by the presenter to give their reference at the end.
In the seventh century, the rule of Sindh state was in the hands of Rai dynasty. We know the names of five kings of this dynasty- Rai Divji, Rai Singhras, Rai Sahasi, Rai Sihras II and Rai Sahasi II. During the time of Rai Sihras II, Nimruz of Persia attacked Sindh and killed him. After the return of the Persians, Rai Sahasi II became the king. After killing him, one of his Brahmin ministers named Chach took over the throne. He married the widow of Rai Sahasi and became the ruler of entire Sindh by suppressing the rebellions of the governors.
ABCs of Bookkeeping for Nonprofits TechSoup.pdfTechSoup
Accounting can be hard enough if you haven’t studied it in school. Nonprofit accounting is actually very different and more challenging still.
Need help? Join Nonprofit CPA and QuickBooks expert Gregg Bossen in this first-time webinar and learn the ABCs of keeping books for a nonprofit organization.
Key takeaways
* What accounting is and how it works
* How to read a financial statement
* What financial statements should be given to the board each month
* What three things nonprofits are required to track
What features to use in QuickBooks to track programs and grants
How to Configure Vendor Management in Lunch App of Odoo 18Celine George
The Vendor management in the Lunch app of Odoo 18 is the central hub for managing all aspects of the restaurants or caterers that provide food for your employees.
PEST OF WHEAT SORGHUM BAJRA and MINOR MILLETS.pptxArshad Shaikh
Wheat, sorghum, and bajra (pearl millet) are susceptible to various pests that can significantly impact crop yields. Common pests include aphids, stem borers, shoot flies, and armyworms. Aphids feed on plant sap, weakening the plants, while stem borers and shoot flies damage the stems and shoots, leading to dead hearts and reduced growth. Armyworms, on the other hand, are voracious feeders that can cause extensive defoliation and grain damage. Effective management strategies, including resistant varieties, cultural practices, and targeted pesticide applications, are essential to mitigate pest damage and ensure healthy crop production.
How to Manage Multi Language for Invoice in Odoo 18Celine George
Odoo supports multi-language functionality for invoices, allowing you to generate invoices in your customers’ preferred languages. Multi-language support for invoices is crucial for businesses operating in global markets or dealing with customers from different linguistic backgrounds.
How to Manage Multi Language for Invoice in Odoo 18Celine George
Ad
Advanced database lab oracle structure query language
1. Considerations Before Creating a Database
• Database creation prepares several operating system files so they can
work together as an Oracle database.
• You need only create a database once, regardless of how many data files it
has or how many instances access it.
• Creating a database can also erase information in an existing database
and create a new database with the same name and physical structure.
2. Considerations Before Creating a Database
Creation Prerequisites
To create a new database, you must have the following:
• the operating system privileges associated with a fully operational database
administrator
• sufficient memory to start the Oracle instance
• sufficient disk storage space for the planned database on the computer that executes
Oracle
3. Object Types
• Listener port: Allows Oracle client connections to the database via the Oracle's
SQL*Net protocol. You can configure it during installation. Port 1521 is the default client
connections port, however, you can configure another TCP port via the Oracle
configuration and administration tools.
• A CDB includes zero, one, or many customer-created pluggable databases (PDBs). A
PDB is a portable collection of schemas, schema objects, and non-schema objects that
appears to an Oracle Net client as a non-CDB . ... A common user is a database user
known in every container .
• A pluggable database (PDB) is a portable collection of schemas, schema objects, and
nonschema objects that appears to an Oracle Net client as a non-CDB. PDBs can be
plugged into to CDBs. A CDB can contain multiple PDBs. Each PDB appears on the
network as a separate database.
4. Oracle create table statement
• To create table in oracle database, you use the create table statement.
• The basic syntax of the create table statement
CREATE TABLE schema_name.table_name(
Column_1 data_type column_constraint,
Column_2 data_type column_constraint,
……
Table_constraint
);
5. Oracle create table example
• The following example shows how to create a new table named persons in
csStudent schema
CREATE TABLE csStudent2.persons(
Person_id NUMBER GENERATED BY DEFAULT AS IDENTITY,
first_name VARCHAR2(50) NOT NULL,
last_name VARCHAR2(50) NOT NULL,
PRIMARY KEY(person_id)
);
6. create user csStudent2 IDENTIFIED by "oracle";
grant all privileges to csStudent identified by "oracle";
7. Oracle
Insert statement:
insert into CSSTUDENT.persons values(1, 'abebe', 'kebede’);
Select statement
select * from csstudent.persons;
Update statement
update csstudent.persons
set first_name = 'Belay'
where last_name = 'kebede’;
Drop table statement
drop table csStudent.persons;
8. Oracle alter table example
• The alter table statement is used to add, delete, or modify columns in existing table.
• the alter table statement is also used to add and drop various constraints on an existing table.
• Syntax:
ALTER TABLE table_name
ADD column_name datatype;
• Example:
Alter table csStudent.persons
Add email varchar(255);
9. Oracle alter table example
• Syntax:
ALTER TABLE table_name
DROP COLUMN column_name;
• Syntax:
ALTER TABLE table_name
MODIFY COLUMN column_name data_type;
10. Introduction to Oracle Objects
• Oracle object types are user-defined types that make it possible to model real-world
entities, such as customers and purchase orders, as objects in the database.
• New object types can be created from any built-in database types and any previously
created object types, object references, and collection types.
• Object types can work with complex data, such as images, audio, and video.
• Oracle Database stores metadata for user-defined types in a schema that is available to
SQL, PL/SQL, Java, and other languages.
• Object types are also known as user-defined types or ADTs.
11. Advantages of Objects
• In general, the object-type model is similar to the class mechanism found in C++ and Java.
• Like classes, the reusability of objects makes it possible to develop database applications
faster and more efficient.
• Objects offer other advantages over a purely relational approach, such as:
• Objects Can Encapsulate Operations Along with Data
• Objects Are Efficient
• Objects Can Represent Part-Whole Relationships
12. Database Features of Oracle Objects
• The following are features and concepts of the object-relational model that are
related to the database.
• Object types
• Object instances
• Object methods
• Object identifiers
• Object views
• Type inheritance
13. Object Types
• An object type is a kind of data type.
• You can use it in the same ways that you use standard data types such as NUMBER or
VARCHAR2.
14. Oracle Objects
• An object type allows you to create composite types.
• Using objects allow you to implement real world objects with specific structure of
data and methods for operating it.
• Objects have attributes and methods.
• Attributes are properties of an object and are used for storing an object's state; and
methods are used for modelling its behaviour.
• Objects are created using the CREATE [OR REPLACE] TYPE statement.
15. Oracle create object example
• an example to create a simple address object consisting of few attributes −
CREATE OR REPLACE TYPE address AS OBJECT
(house_no varchar2(10),
street varchar2(30),
city varchar2(20),
state varchar2(10),
pincode varchar2(10)
);
16. Oracle Methods
• Object methods implement behaviour that objects of that type perform.
• Object methods, also known as subprograms, are functions or procedures that you can
declare in an object type definition to implement behaviour that you want objects of that
type to perform.
• An application calls the subprograms to invoke the behaviour.
• Subprograms can be written in PL/SQL or virtually any other programming language.
18. Member Methods
• Member methods provide an application with access to the data of an object instance.
• You define a member method in the object type for each operation that you want an
object of that type to be able to perform.
• Non-comparison member methods are declared as either MEMBER FUNCTION or
MEMBER PROCEDURE.
• Comparison methods use MAP MEMBER FUNCTION or ORDER MEMBER FUNCTION as
described in "Member Methods for Comparing Objects".
19. Oracle create object example
• Let's create one more object customer where we will wrap attributes and methods
together to have object-oriented feeling
CREATE OR REPLACE TYPE customer AS OBJECT
(code number(5),
name varchar2(30),
contact_no varchar2(12),
addr address,
member procedure display
);
20. Instantiating an Object
• Defining an object type provides a blueprint for the object.
• To use this object, you need to create instances of this object.
• You can access the attributes and methods of the object using the instance name and the
access operator (.) .
22. Member Methods
• Member methods are used for manipulating the attributes of the object.
• You provide the declaration of a member method while declaring the object type.
• The object body defines the code for the member methods. The object body is created
using the CREATE TYPE BODY statement.
• Constructors are functions that return a new object as its value.
• Every object has a system defined constructor method.
• The name of the constructor is same as the object type.
23. The comparison methods are used for comparing objects. There are two ways to compare
objects −
Map method
The Map method is a function implemented in such a way that its value depends upon the
value of the attributes.
Order method
The Order method implements some internal logic for comparing two objects.
https://docs.oracle.com/en/database/oracle/oracle-database/19/adobj/object-
methods.html#GUID-62ACE97A-5DD9-402A-B8B0-999AC488CAA2
24. Using Map method
CREATE OR REPLACE TYPE rectangle AS OBJECT
(
length number,
width number,
member function enlarge( inc number) return rectangle,
member procedure display,
map member function measure return number
);
25. The syntax to create a function in Oracle is:
CREATE [OR REPLACE] FUNCTION function_name
[ (parameter [,parameter]) ]
RETURN return_datatype
IS | AS
[declaration_section]
BEGIN
executable_section
[EXCEPTION
exception_section]
END [function_name];
Drop Function
Once you have created your function in Oracle, you might find that you need to remove
it from the database.
DROP FUNCTION function_name;
26. Creating the type
body
CREATE OR REPLACE TYPE BODY rectangle AS
MEMBER FUNCTION enlarge(inc number) return rectangle IS
BEGIN
return rectangle(self.length + inc, self.width + inc);
END enlarge;
MEMBER PROCEDURE display IS
BEGIN
dbms_output.put_line('Length: '|| length);
dbms_output.put_line('Width: '|| width);
END display;
MAP MEMBER FUNCTION measure return number IS
BEGIN
return (sqrt(length*length + width*width));
END measure;
END;
27. Now using the
rectangle object
and its member
functions
DECLARE
r1 rectangle;
r2 rectangle;
r3 rectangle;
inc_factor number := 5;
BEGIN
r1 := rectangle(3, 4);
r2 := rectangle(5, 7);
r3 := r1.enlarge(inc_factor);
r3.display;
IF (r1 > r2) THEN -- calling measure function
r1.display;
ELSE
r2.display;
END IF;
END;
28. Using Order method
CREATE OR REPLACE TYPE rectangle AS OBJECT
(length number,
width number,
member procedure display,
order member function measure(r rectangle) return number
);
29. Creating the type
body
CREATE OR REPLACE TYPE BODY rectangle AS
MEMBER PROCEDURE display IS
BEGIN
dbms_output.put_line('Length: '|| length);
dbms_output.put_line('Width: '|| width);
END display;
ORDER MEMBER FUNCTION measure(r rectangle) return number IS
BEGIN
IF(sqrt(self.length*self.length + self.width*self.width)>
sqrt(r.length*r.length + r.width*r.width)) then
return(1);
ELSE
return(-1);
END IF;
END measure;
END;
30. Now using the
rectangle object
and its member
functions
DECLARE
r1 rectangle;
r2 rectangle;
BEGIN
r1 := rectangle(23, 44);
r2 := rectangle(15, 17);
r1.display;
r2.display;
IF (r1 > r2) THEN -- calling measure function
r1.display;
ELSE
r2.display;
END IF;
END;
31. Here are some other differences between map and order methods
Automatic invocation
• Both map and order methods are called automatically when two objects of the same type need to
be compared.
Number of methods
• You can only have one map or order method in an object type definition.
Object type
• Only a type that is not derived from another type can declare an order method.
Return values
• Map methods return values that are Oracle built-in data types, or ANSI SQL types.
• Order methods return a negative number, zero, or a positive number.
You can implement either a map or order method in the CREATE TYPE and CREATE TYPE BODY
statements.
32. Inheritance for PL/SQL Objects
• PL/SQL allows creating object from the existing base objects.
• To implement inheritance, the base objects should be declared as NOT FINAL. The
default is FINAL.
• Let us create another object named TableTop, this is inherited from the Rectangle
object.
• For this, we need to create the base rectangle object −
33. create the base rectangle object
CREATE OR REPLACE TYPE rectangle AS OBJECT
(length number,
width number,
member function enlarge( inc number) return rectangle,
NOT FINAL member procedure display) NOT FINAL
34. Creating the base type body
CREATE OR REPLACE TYPE BODY rectangle AS
MEMBER FUNCTION enlarge(inc number) return rectangle IS
BEGIN
return rectangle(self.length + inc, self.width + inc);
END enlarge;
MEMBER PROCEDURE display IS
BEGIN
dbms_output.put_line('Length: '|| length);
dbms_output.put_line('Width: '|| width);
END display;
END;
35. Creating the child object tabletop
CREATE OR REPLACE TYPE tabletop UNDER rectangle
(
material varchar2(20),
OVERRIDING member procedure display
)
36. Creating the type body for the child object tabletop
CREATE OR REPLACE TYPE BODY tabletop AS
OVERRIDING MEMBER PROCEDURE display IS
BEGIN
dbms_output.put_line('Length: '|| length);
dbms_output.put_line('Width: '|| width);
dbms_output.put_line('Material: '|| material);
END display;
END;
37. Using the
tabletop object
and its member
functions
DECLARE
t1 tabletop;
t2 tabletop;
BEGIN
t1:= tabletop(20, 10, 'Wood');
t2 := tabletop(50, 30, 'Steel');
t1.display;
t2.display;
END;
38. Abstract Objects in PL/SQL
• The NOT INSTANTIABLE clause allows you to declare an abstract object. You cannot
use an abstract object as it is;
• you will have to create a subtype or child type of such objects to use its
functionalities.
39. create table csstudent.graphics_table (
bfile_id number,
bfile_desc varchar2(30),
bfile_loc bfile,
bfile_type varchar2(4)
);
INSERT INTO csstudent2.graphics_table
VALUES(4,'April Book of Days’, bfilename('C:UsersFauxDesktop','1.JPG'),'JPEG');