π’οΈ NoSQL: Building Databases in Practice
Developed during the 3rd semester of the Data Science and Humanistic Artificial Intelligence undergraduate program at PUC-SP (2025)
Under the guidance of Professor Doctor Daniel Gatti.
β’β£ Oracle SQL LIVE
β£β’ BRM Model Web
β£β’ Redis Database
β£β’ Kepler Geolocation
β£β’ Mermaid FlowChart and Diagrams
β£β’ PostgreSQL
β£β’ MongoDB
β’ Get the Book Database Systems β Navathe, 6th Edition
β£ Get the Book Database System Concepts (5th ed.) - Abraham Silberschatz, Henry F. Korth, S. Sudarshan
π Overview
This project explores the fundamentals and practical applications of NoSQL (Not Only SQL) databases, showcasing the construction and management of databases using various database systems, including:
β’ MySQL - Certificate
β’ SQL Server - Certificate
β’ T-SQL - Certificate
β’ Redis MongoDB - Certificate
β’ SQL on Linux - Certificate
β’ Oracle - Certificate
Through this comprehensive guide, you will understand how to define, manipulate, and query data using SQL and NoSQL techniques, alongside practical examples.
β’ WorKClass Example
The SQL language is divided into three main components:
- Data Definition Language (DDL)
- Defines database schema and structures.
- Examples:
CREATE TABLE
,ALTER TABLE
,DROP TABLE
.
- Data Manipulation Language (DML)
- Manages data within schema objects.
- Examples:
INSERT
,UPDATE
,DELETE
.
- Data Query Language (DQL)
- Retrieves data from databases.
- Example:
SELECT
.
select*from HR. COUNTRIES
select COUNTRY_NAME from HR.COUNTRIES
select COUNTRY_ID from HR.COUNTRIES
select REGION_ID from HR.COUNTRIES
select*from hr.REGIONS
SELECT country_id, country_name, region_name
FROM HR.COUNTRIES, HR.REGIONS
Where hr.COUNTRIES.region_id = HR.regions.REGION_ID
CREATE TABLE Person (
ID INT PRIMARY KEY,
Name VARCHAR(100) NOT NULL,
Age INT,
Email VARCHAR(150) UNIQUE
);
ALTER TABLE Person ADD Telefone VARCHAR(15);
DROP TABLE Person;
INSERT INTO Person (ID, Name, Age, Email)
VALUES (1, 'Maria Silva', 30, '[email protected]');
UPDATE Person
SET Age = 31
WHERE ID = 1;
SELECT Name, Email
FROM Person
WHERE Age > 25;
π Primary Key Example
CREATE TABLE Sale (
NumCliente INT NOT NULL IDENTITY(1,1),
CPF INT NOT NULL,
CONSTRAINT pkClient PRIMARY KEY (NumClient))
ALTER TABLE Person
ADD CONSTRAINT ckIdade CHECK (Age <= 100);
CREATE TABLE Produtos (
ProdutoID INT IDENTITY(1,1) PRIMARY KEY,
NomeProduto VARCHAR(100) NOT NULL
);
// Inserting a single document
db.usuarios.insertOne({
name: "JoΓ£o Silva",
age: 28,
email: "[email protected]"
});
// Inserting multiple documents
db.usuarios.insertMany([
{ name: "Ana Souza", age: 24, email: "[email protected]" },
{ name: "Carlos Lima", age: 35, email: "[email protected]" }
]);
π Querying Documents
// Find users older than 25
db.usuarios.find({ age: { $gt: 25 } });
// Find user by email
db.usuarios.findOne({ email: "[email protected]" });
// Update user age
db.usuarios.updateOne(
{ name: "JoΓ£o Silva" },
{ $set: { idade: 29 } }
);
// Delete user
db.usuarios.deleteOne({ name: "Carlos Lima" });
Special thanks to Professor Daniel Gatti for guidance throughout this project.
Feel Free to Reach Out:
π Email Me
πΈΰΉ My Contacts Hub
ββββββββββββββ βΉπΰΉ ββββββββββββββ
β£β’β€ Back to Top
Copyright 2025 Mindful-AI-Assistants. Code released under the MIT license.