Bases de données

121 documents à télécharger gratuitement

Cours, examens, TD, TP et exercices de bases de données. Thèmes couverts : SQL, MySQL, Oracle, modèle relationnel, SGBD, MERISE.

SQL: Structured Query Language

This document provides an in-depth overview of SQL as a language used for relational Database Management Systems (DBMS) and covers its historical origin, purpose, and universal application across platforms. It explains the three types of SQL commands: Data Definition Language (DDL) for managing database structure, Data Manipulation Language (DML) for handling data operations, and Data Control Language (DCL) for transactions and permissions. Detailed syntax and examples are provided for creating, altering, and maintaining database objects such as tables, keys, and constraints. Best practices...

SQL
CREATE TABLE
primary key
69p0
TP2: Advanced SQL Querying and Database Schema Design

This document provides a comprehensive exercise in designing and working with relational databases, specifically focusing on schemas, constraints, and advanced SQL queries. It introduces a database involving tennis players, tournaments, sponsors, and financial records. Participants are tasked with creating the schema, inserting data, and writing SQL queries to extract insights based on specific conditions, such as retrieving player performance statistics, financial earnings, and tournament participation. The lab emphasizes practical SQL proficiency and demonstrates the application of concep...

SGBD
SQL
database schema
2p0
PL/SQL Course Guide

This document provides a comprehensive overview of PL/SQL, an extension of SQL incorporating procedural elements such as variables, loops, and error handling. It presents structures for organizing code using blocks, procedures, and functions, as well as mechanisms for database interaction via cursors and exception handling. Practical examples and exercises emphasize learning through hands-on programming, including the use of structured control flows to interface with databases efficiently and manage data operations securely.

PL/SQL
%ROWTYPE
cursor attributes
60p0
TP2: Database Management Project in SGBD

This project involves the construction and querying of a relational database schema for tennis tournaments. The schema includes entities such as players, tournaments, earnings, and sponsors, with specified constraints and keys. The practical tasks include creating the schema, populating it with provided data scripts, and answering complex SQL-based queries concerning player participation, sponsorship, and performance in tournaments. The queries test various conditions and use cases, such as multi-year performance analysis, sponsor engagement, and match outcomes.

Ecole Nationale des sciences de l’Informatique
Relational Database
SQL queries
2p0
TD Bases de Données et Ingénierie des Systèmes d’Information TD 3 − Requêtes SQL

This document outlines a tutorial on SQL queries aimed at managing information systems related to student course schedules. It includes a relational schema for student, course, and session databases along with various SQL tasks such as inserting data, retrieving information, and creating database tables. The tutorial is part of a course provided by Mines de Nancy and includes both simple and nested SQL query exercises.

quot
requ
select
7p0
TD1 - Correction SQL

This document contains corrections and exercises related to SQL data types, syntax errors, table creation, data manipulation, and data access queries. The content includes definitions and appropriate data types for various entities, incorrect syntax examples, and SQL queries for managing a film database.

from
film
select
4p0
Oracle Database Architecture Analysis

This document meticulously describes components of Oracle Database architecture, including memory management structures like the Database Buffer Cache and Redo Log Buffer, alongside their operational logic governed by specific parameters (e.g., DB_CACHE_SIZE, LOG_BUFFER). It also delves into the structural organization of Oracle's physical storage layers like tablespaces, control files, and data files, emphasizing their purpose and interrelation. Additionally, it explains the roles of user and server processes, background processes like DBWn and LGWR, and their significance in maintaining d...

Database Buffer Cache
DB_CACHE_SIZE
LRU algorithm
7p0
Cours SGBD 1 - Concepts et langages des Bases de Données Relationnelles

This document introduces the fundamental concepts of relational databases, their advantages, and methodologies of data modeling. It covers topics including relational algebra, SQL language, transaction management, and database programming with tools like VBA and Access interfaces. Historical evolution and key database models such as hierarchical, network, and relational are analyzed alongside practical examples of entity-relationship diagrams and normalization processes.

Relational databases
ANSI/SPARC architecture
Data Definition Language (DDL)
224p0
Oracle Database Memory and Storage Structures

This document provides a detailed explanation of Oracle's memory and storage components, including data caching, logging, and transaction management. Techniques like the Least Recently Used (LRU) algorithm and parameterized configurations such as DB_CACHE_SIZE, LOG_BUFFER, and SHARED_POOL_SIZE are central to optimizing operations. Key storage structures like tablespaces, data files, control files, and redo log files are discussed, highlighting their roles in ensuring data integrity and recovery. The document also describes core Oracle processes, including DBWn and LGWR, and their critical i...

Database Buffer Cache
Least Recently Used (LRU) algorithm
Redo Log Files
7p0
Introduction à ORACLE WAREHOUSE BUILDER

Oracle Warehouse Builder (OWB) is introduced as an integrated tool for data warehousing and business intelligence that handles schema design, ETL processes, and metadata management via a unified interface. It offers functionalities such as automated code generation, metadata reporting, and integration with Oracle systems and third-party sources. OWB promotes productivity, accuracy, and cost-efficiency while providing advanced options for data integration, quality management, and lifecycle management. The document also covers OWB’s architectural details and its practical applications in BI s...

Oracle Warehouse Builder (OWB)
ETL (Extract
Transform
10p0
SGBD Oracle: Introduction to PL/SQL

This document provides a comprehensive introduction to PL/SQL, Oracle's procedural extension for SQL. It explains the limitations of SQL as a purely declarative language and introduces the capabilities of PL/SQL, including procedural features like loops, conditional structures, and exception handling. The methodology focuses on the structuring of PL/SQL code into logical 'blocks,' improving performance and readability. Key processes such as variable declarations, data type conversions, cursors, and the creation of triggers, procedures, and functions are covered in detail.

PL/SQL
SQL
Oracle
34p0
Module: SGBD - TP 3 (PL/SQL)

The document presents an in-depth series of exercises focused on PL/SQL programming within the context of databases. It guides the creation and manipulation of tables, variables, and records, employing conditional logic and loops for dynamic operations like updating, deleting, or calculating data attributes. Methodologies address real-world database management scenarios, including type and record definitions, conditional data modifications, and iterative processing. Findings emphasize practical implementations to teach advanced PL/SQL techniques through structured, hands-on activities.

PL/SQL
table manipulation
conditional statements
2p0
SGBD – TD-TP 3 (PL/SQL)

This document contains three practical exercises in PL/SQL. The first exercise involves creating a program to display the system catalog of tables and views of the database account using the system view `TAB`. The second exercise focuses on updating and transferring employee data due to a company's relocation, including currency conversion and salary increase. The third exercise involves transforming product data from an outdated database, converting prices from Francs to Euros, handling special cases such as empty tables and null values, and applying advanced SQL functions like UPPER, ROUN...

PL/SQL
system catalog
views and tables
2p0
Chapitre 7 - Le Langage SQL

This document introduces SQL, a fourth-generation programming language developed by IBM in the 1970s and standardized as SQL-92 in 1992, laying the foundation for relational database queries. It outlines four key subsets of SQL: Data Query Language (DQL) for data retrieval, Data Manipulation Language (DML) for data updates, Data Definition Language (DDL) for structuring databases, and Data Control Language (DCL) for managing access control. The document then details core SQL operations such as SELECT commands for projections and restrictions, syntax for WHERE clauses with logical operators,...

SQL
SELECT command
relational algebra
30p0
LIF4 - TD9: Requêtes SQL Correction

This document provides solutions to SQL queries and database management problems. It first establishes a relational database schema for a car sales company using an Entity/Relationship diagram and schema definition, followed by SQL query examples for specific operations such as retrieving sales data and calculating profits. The document also includes schema and SQL queries for a cinema database, addressing problems such as actor-payroll calculations and film retrieval based on various attributes. Additionally, relational algebra expressions and query optimizations are explored for several s...

Entity Relationship Diagram
relational database schema
SQL queries
5p0
TP5 SQL : Les avions

This document provides a practical SQL structured exercise focused on a simplified database schema related to aviation, covering tasks such as data manipulation, analysis, and creation of views. It explores operations like filtering, aggregation, altering table structures, and creating new entries or views. Additionally, advanced SQL queries analyze pilots, aircrafts, and destinations, emphasizing sorting, conditions, and capacity calculations. The document concludes with administrative tasks for user access control.

SQL
aviation database schema
capacity analysis
Institut Supérieur des Études Technologiques1p0
Installation and Overview of Oracle Database Express Edition

This document introduces Oracle Database, its history, and core functionalities, including data manipulation, security, and backup features. It provides a step-by-step guide to the installation and configuration of Oracle Database Express Edition 11g. It details each phase, including software prerequisites, installation process, and post-installation setup for administrative access. The document concludes with instructions on connecting to the database and ensuring functionality, with tips for remote access and uninstallation.

Oracle
SGBD
DBMS
5p0
TP3 Atelier Système d’Information

The document provides a comprehensive overview of SQL, detailing its primary commands and structured subsets including DDL for data definition, DML for data manipulation, and DCL for access control. It further elaborates on SQL’s data types, integrity constraints, and table management operations such as creation, modification, and deletion. Practical exercises are included to reinforce theoretical understanding by guiding the user through schema creation, attribute manipulation, and constraint application. The document concludes with a relational schema example and hands-on steps for applyi...

SQL
Data Control Language (DCL)
Primary Key
6p0
Introduction au langage PL/SQL

This document serves as an introduction to PL/SQL, a procedural language that extends SQL, specifically within the Oracle environment. It covers essential features, programming conventions, block structures, syntax rules, and various programming structures within PL/SQL. The document is aimed at helping learners understand the practical aspect of PL/SQL programming.

variable
number
type
24p0
Les vues, indexes, séquences

This document provides an overview of database views, indexes, and sequences. It explains the definitions, creation, usage, and limitations of each element in SQL database management. The document contains practical examples and syntax for implementing these concepts.

index
notes
number
11p0
Le Modèle Relationnel

This document provides a detailed explanation of the relational model in database systems, originally defined by Ted Codd in 1970 and widely adopted in commercial database systems like Oracle, DB2, and SQL Server. It explains the foundational components of the relational model, including relations (tables), attributes (columns), and tuples (rows). The document also details the translation process from the Entity-Attribute model to the relational model, describing how entities, associations, and attributes are mapped. Integrity constraints such as primary keys, foreign keys, referential inte...

Relational Model
Ted Codd
Entity-Attribute Model
14p0
Identités et relations sociales dans une base de données logique

This document outlines various domains, predicates, and clauses related to identity and food items. The first section details personal identification predicates like name, age, and city of residence. The second section lists menu items categorized by type along with their prices.

quot
identit
prenom
1p0
PROGRAMMER AVEC PL/SQL

This course provides an introduction to PL/SQL, a procedural language used in Oracle. It covers the structure of PL/SQL blocks, variable declarations, SQL integration, and advanced features such as exceptions and cursors. Students will learn how to write and execute PL/SQL code effectively.

dept
curseur
number
43p0
Test SGBD

This document outlines the specifications for a database exam focused on educational data. It includes details for creating tables and constraints in a SQL database, as well as specific queries to retrieve information about students, schools, and teachers. Tasks include table creation, data insertion, and various querying scenarios.

cole
enfants
adresse
1p0

Autres ressources en bases de données