Skip to content

Instantly share code, notes, and snippets.

@Kishimoto96
Created April 25, 2023 11:30
Show Gist options
  • Save Kishimoto96/b617888e9407fe8c81db64240c0ca6db to your computer and use it in GitHub Desktop.
Save Kishimoto96/b617888e9407fe8c81db64240c0ca6db to your computer and use it in GitHub Desktop.

Discussion about SQL:

  1. What is SQL, and what are some of its primary functions?
  2. SQL is a declarative query language, what does that mean?
  3. SQL is the industry standart for relational databases, what does a realtional database mean?
  4. What is a database management system? and which ones are the most popular?
  5. What are some of the most common SQL commands, and how are they used to manipulate data?
@Irzooqi
Copy link

Irzooqi commented Apr 25, 2023

@Irzooqi Yasir Irzooqi @idincer944 İsmail Dincer @saidbaradai Atakan Serbes,
1# What is SQL, and what are some of its primary functions?

SQL (Structured Query Language) is a standard language used to communicate with and manipulate relational databases. It is used to create, retrieve, update, and delete data stored in a database.
Relational databases are databases that store data with keys and/or values that are related to each other across tables

2# SQL is a declarative query language, what does that mean?
A declarative query language is a programming language that expresses the logic of a computation without describing its control flow. In other words, it specifies what the output should be, but not how to compute it. SQL is a declarative query language that is the industry standard for relational databases

In SQL, you specify the pattern of the data you want, but not how to achieve that goal. You only need to specify the “what to do” part and not the “how to do it” part.

3# SQL is the industry standard for relational databases, what does a relational database mean?
Relational databases are databases that store data with keys and/or values that are related to each other across tables

A relational database is a type of database that organizes data into one or more tables, where each table consists of rows and columns. The columns represent the attributes or properties of the data, and the rows represent individual records or instances of the data.

4# What is a database management system? and which ones are the most popular?

A database management system (DBMS) is software that enables users to create, manage, and manipulate databases. It provides an interface for interacting with the data, as well as tools for organizing and protecting the data, and optimizing the performance of the database.

Most popular are: MySQL, Oracle, Microsoft SQL Server, PostgreSQL, MongoDB

5# What are some of the most common SQL commands, and how are they used to manipulate data?

SELECT
INSERT
UPDATE
DELETE
CREATE

The SELECT command is used to retrieve data from one or more tables in a database.
The INSERT command is used to insert new data into a table.
The INSERT command is used to insert new data into a table.

@sncey
Copy link

sncey commented Apr 25, 2023

@handedemirbay @baraah-berra @tomiece317

1-SQL is a programming language used to manage and manipulate data in relational databases. It allows users to create and modify database structures, retrieve data from tables, insert, update, and delete data, control access to the database, and manage transactions.

2- Declarative query languages let users express what data to retrieve, letting the engine underneath take care of seamlessly retrieving it. When we say that SQL (Structured Query Language) is a declarative language, we mean that it is a language used to describe the result we want, rather than describing the steps needed to achieve that result. With SQL, you specify what data you want to retrieve, rather than how to retrieve it. The database management system (DBMS) then figures out the best way to execute the query and return the requested data. This is in contrast to imperative languages, such as programming languages, where the developer writes code that explicitly states the steps to be taken to achieve the desired outcome.

3- A relational database is a type of database that stores and provides access to data points that are related to one another. Relational databases are based on the relational model, an intuitive, straightforward way of representing data in tables. In a relational database, each row in the table is a record with a unique ID called the key. The columns of the table hold attributes of the data, and each record usually has a value for each attribute, making it easy to establish the relationships among data points.

4- A database management system (or DBMS) is essentially nothing more than a computerized data-keeping system. Users of the system are given facilities to perform several kinds of operations on such a system for either manipulation of the data in the database or the management of the database structure itself. Database Management Systems (DBMSs) are categorized according to their data structures or types.
PostgreSQL.
MySQL.
Oracle.
Microsoft SQL Server.
MongoDB.
5- Most common SQL commands are;
SELECT - extracts data from a database.
UPDATE - updates data in a database.
DELETE - deletes data from a database.
INSERT INTO - inserts new data into a database.
CREATE DATABASE - creates a new database.
ALTER DATABASE - modifies a database.
CREATE TABLE - creates a new table.

@0Rawan
Copy link

0Rawan commented Apr 25, 2023

Ahmed Rasheed, Bedreddin Naser, M,Nour Krimesh, Rawan Kamal Musataf

  1. SQL is a programming language for managing and manipulating data in relational database management systems. Its primary functions include data retrieval, modification, definition, and control.
  2. SQL is a declarative query language, which means that you express what you want to do and let the database management system (DBMS) It means that users only need to specify what they want to do with the data. The database management system determines the most efficient way to execute the query.
  3. A relational database organizes data into tables and relates them to each other based on common fields. SQL is the industry standard for managing and querying data in this type of database.
  4. A database management system (DBMS) is software that allows users to create, manage, and manipulate databases. Popular DBMSs include Oracle, MySQL, Microsoft SQL Server, PostgreSQL, MongoDB, and IBM DB2. The choice of DBMS depends on the requirements of the application.
  5. SELECT - extracts data from a database.
    UPDATE - updates data in a database.
    DELETE - deletes data from a database.
    INSERT INTO - inserts new data into a database.
    CREATE DATABASE - creates a new database.
    ALTER DATABASE - modifies a database.
    CREATE TABLE - creates a new table.

@motaz99
Copy link

motaz99 commented Apr 25, 2023

Zehra, Edib, Motaz

  1. Structured query language (SQL) is a programming language for storing and processing information in a relational database. A relational database stores information in tabular form, with rows and columns representing different data attributes and the various relationships between the data values. You can use SQL statements to store, update, remove, search, and retrieve information from the database. You can also use SQL to maintain and optimize database performance.

Rowset functions Return an object that can be used like table references in an SQL statement.

  1. In computer science, declarative programming is a programming paradigm, a style of building the structure and elements of computer programs, that expresses the logic of a computation without describing its control flow. So in SQL u just say select something from something, u just declare it u don't tell the logic how to fetch that data that's y its declarative.

  2. A relational database is a type of database that stores and provides access to data points that are related to one another. Relational databases are based on the relational model, an intuitive, straightforward way of representing data in tables.

@Younesnz
Copy link

Nour Eddin Hamouda, @muhammedhasann, @Younesnz

1- It stands for Structured Query Language for servers. It is used for managing data held in relational database management systems. The main functionality is CRUD (Create, Read, Update, and Delete).

2- SQL is a declarative query language that focuses on describing the desired outcome or result, rather than specifying the steps to achieve that outcome.

3- A relational database is a database that stores data in tables. Tables are made up of rows and columns, where each row represents a record and each column represents a field. Relational databases are based on the relational model, which organizes data so it can be easily queried and manipulated. Relational databases are transactional and guarantee the entire system's state is consistent at any moment. Most relational databases offer easy-to-export and import options, making backup and restore trivial. These exports can happen even while the database is running, making restoring on failure easy.

4- A database management system (DBMS) is a software application that facilitates the creation, maintenance, and use of databases. A DBMS provides users with a way to create and manage databases without having to know the underlying details of how the database is stored and organized.
some of the popular DBMSs are:

  • MySQL
  • PostgreSQL
  • MongoDB

5-

  • SELECT: The SELECT command is used to retrieve data from a database. The SELECT statement can be used to select specific columns, rows, or tables from a database.
  • UPDATE: The UPDATE command is used to update data in a database. The UPDATE statement can be used to update the values of specific columns in a table.
  • DELETE: The DELETE command is used to delete data from a database. The DELETE statement can be used to delete specific rows or tables from a database.
  • INSERT INTO: The INSERT INTO command is used to insert new data into a database. The INSERT INTO statement can be used to insert new rows into a table.
  • CREATE TABLE: The CREATE TABLE command is used to create a new table in a database. The CREATE TABLE statement defines the structure of the table, including the columns and their data types.

@irodamrj
Copy link

Fatima Ali, Iroda Yılmaz, Bara'a Almasri
1- Structured query language (SQL) is a standard language for database creation and manipulation. Sum, Avg, Count, First, last
2-They function in a more general manner and involve giving broad instructions about what task is to be completed, rather than the specifics on how to complete it.
3-A relational database is a collection of data items with pre-defined relationships between them. These items are organized as a set of tables with columns and rows. Tables are used to hold information about the objects to be represented in the database.
4-Database Management Systems (DBMS) are software systems used to store, retrieve, and run queries on data. A DBMS serves as an interface between an end-user and a database, allowing users to create, read, update, and delete data in the database.
5. SELECT - extracts data from a database
UPDATE - updates data in a database
DELETE - deletes data from a database
INSERT INTO - inserts new data into a database
CREATE DATABASE - creates a new database
ALTER DATABASE - modifies a database
CREATE TABLE - creates a new table
ALTER TABLE - modifies a table
DROP TABLE - deletes a table
CREATE INDEX - creates an index (search key)
DROP INDEX - deletes an index

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment