SlideShare a Scribd company logo
Chrysler
Panaguiton
WEEK 7 – DAY 1
SQL
Overview
SQL is a programming language for Relational Databases. It
is designed over relational algebra and tuple relational
calculus. SQL comes as a package with all major
distributions of RDBMS.
SQL comprises both data definition and data manipulation
languages. Using the data definition properties of SQL, one
can design and modify database schema whereas data
manipulation properties allows SQL to store and retrieve
data from database. SQL is a standard language for storing,
manipulating and retrieving data in databases.
MYSQL Database 2 tier Architecture
MYSQL Database 3 tier Architecture
Client program can be a MySQL
command line client, GUI client, or
a program written in any language
such as C, Perl, PHP, Java that has
an interface to the MySQL server.
LECTURE NOTES.pdf
LECTURE NOTES.pdf
LECTURE NOTES.pdf
XAMPP
INSTALLATION
GUIDE
What is XAMPP?
XAMPP is a completely free, easy
to install Apache distribution
containing MariaDB, PHP, and
Perl. The XAMPP open source
package has been set up to be
incredibly easy to install and to
use
LECTURE NOTES.pdf
LECTURE NOTES.pdf
LECTURE NOTES.pdf
LECTURE NOTES.pdf
LECTURE NOTES.pdf
LECTURE NOTES.pdf
XAMMP
CONTROL
PANEL
LECTURE NOTES.pdf
LECTURE NOTES.pdf
LECTURE NOTES.pdf
LECTURE NOTES.pdf
LECTURE NOTES.pdf
LECTURE NOTES.pdf
PHONE INSTALLATION
LECTURE NOTES.pdf
LECTURE NOTES.pdf
Creating a database
DELETING A
DATABASE
COMMON
DATA TYPES
USED IN
MYSQL
Create table example
CREATE TABLE Persons (
PersonID int,
LastName varchar(255),
FirstName varchar(255),
Address varchar(255),
City varchar(255)
);
CREATE TABLE WITH PRIMARY KEY
CREATE TABLE Persons (Personid int NOT NULL AUTO_INCREMENT,
LastName varchar(255) NOT NULL, FirstName varchar(255), Age int,
PRIMARY KEY (Personid));
INSERT INTO STATEMENT
INSERT INTO Persons (FirstName,LastName)
VALUES ('Lars','Monsen');
Summary of CODES
1. mysql –u root –p = To connect to SQL server.
2. show databases; = To show all available and active databases.
3. Use databasename; = To use the database.
4. Show tables; = to check all table of the database used.
5. Create database databasename; = to create a database
6. Drop database databasename; = to delete or remove a database
7. Drop table tablename; = to delete an existing table
8. Use databasename; = to use an existing database
9. Show tables; = to show all tables from a database
10. Describe tablename; = to verify specification of a table
11. * = represents “all”
12. Exit = to go back in connecting to SQL Server
Create table
Table Name: Customer
Field name: CustomerID, Lastname, firstname,City,mobilenumber
UPDATE SYNTAX
UPDATE table_name
SET column1 = value1, column2 = value2, ...
WHERE condition;
UPDATE EXAMPLE
UPDATE Customers
SET ContactName = 'Alfred Schmidt', City= 'Frankfurt'
WHERE CustomerID = 1;
SELECT STATEMENT
Syntax:
Select * from tablename;
The SQL ORDER BY Keyword
The ORDER BY keyword is used to sort the result-set in ascending or descending order.
The ORDER BY keyword sorts the records in ascending order by default. T
o sort the records in descending order, use the DESC keyword.
SELECT * FROM Customers
ORDER BY Country DESC;
SELECT * FROM Customers
ORDER BY Country ASC;
Select specific field of table
SYNTAX:
Select fieldname,fieldname from tablename;
SQL ALTER TABLE Statement
The ALTER TABLE statement is used to add, delete, or modify columns in an
existing table.
The ALTER TABLE statement is also used to add and drop various
constraints on an existing table.
To add a column in a table, use the following
syntax:
ALTER TABLE table_name
ADD column_name datatype;
Example
ALTER TABLE Customers
ADD Email varchar(255);
BETWEEN OPERATOR
DELETE DATA INSIDE A TABLE
WHERE LIKE OPERATORS
LOGICAL COMPARATOR
LECTURE NOTES.pdf
PERFORMANCE
TASK
DEADLINE MARCH 20, 2021
SATURDAY 5PM
ID – Primary key Student_ID Math Science English
1 2020-0001 85 87 90
2 2020-0002 74 73 75
3 2021-1020 87 90 88
4 2021-1023 70 72 75
5 2021-1030 85 87 90
ID – Primary key Student_ID Math Science English Gen_Ave
1 2020-0001 85 87 90 87.33
2 2020-0002 74 73 75 74
3 2021-1020 87 90 88 88.33
4 2021-1023 70 72 75 72.33
5 2021-1030 85 87 90 87.34
Arboleda = 1000
Tejas = 550
Almaden = 1050
Almaden Mobile num = 0916-225-0012
QUERY + 3
Lastname, firstname,mobilenum, expenses order by ASC LASTNAME
Lastname, firstname,mobilenum, expenses order by DESC FIRSTNAME
-----
Ad

More Related Content

Similar to LECTURE NOTES.pdf (20)

Introduction to SQL
Introduction to SQLIntroduction to SQL
Introduction to SQL
MLG College of Learning, Inc
 
sql10.pdfNGBHJHYGKIIIIYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
sql10.pdfNGBHJHYGKIIIIYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYsql10.pdfNGBHJHYGKIIIIYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
sql10.pdfNGBHJHYGKIIIIYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
Pri21Legend
 
lovely
lovelylovely
lovely
love0323
 
SQL Queries Information
SQL Queries InformationSQL Queries Information
SQL Queries Information
Nishant Munjal
 
MySQL and its basic commands
MySQL and its basic commandsMySQL and its basic commands
MySQL and its basic commands
Bwsrang Basumatary
 
mysqlanditsbasiccommands-150226033905-conversion-gate02.pdf
mysqlanditsbasiccommands-150226033905-conversion-gate02.pdfmysqlanditsbasiccommands-150226033905-conversion-gate02.pdf
mysqlanditsbasiccommands-150226033905-conversion-gate02.pdf
pradnyamulay
 
MySql slides (ppt)
MySql slides (ppt)MySql slides (ppt)
MySql slides (ppt)
webhostingguy
 
PT- Oracle session01
PT- Oracle session01 PT- Oracle session01
PT- Oracle session01
Karthik Venkatachalam
 
Database COMPLETE
Database COMPLETEDatabase COMPLETE
Database COMPLETE
Abrar ali
 
Sql
SqlSql
Sql
Atul Pant
 
Sql tutorial
Sql tutorialSql tutorial
Sql tutorial
Rumman Ansari
 
SQl data base management and design
SQl     data base management  and designSQl     data base management  and design
SQl data base management and design
franckelsania20
 
MySQL intro
MySQL introMySQL intro
MySQL intro
David Rajah Selvaraj
 
MySQL intro
MySQL introMySQL intro
MySQL intro
David Rajah Selvaraj
 
Database Management Lab -SQL Queries
Database Management Lab -SQL Queries Database Management Lab -SQL Queries
Database Management Lab -SQL Queries
shamim hossain
 
Data Base Management 1 Database Management.pptx
Data Base Management 1 Database Management.pptxData Base Management 1 Database Management.pptx
Data Base Management 1 Database Management.pptx
PreeTVithule1
 
Module 3
Module 3Module 3
Module 3
cs19club
 
Sah
SahSah
Sah
sahul azzez m.i
 
MYSQL - PHP Database Connectivity
MYSQL - PHP Database ConnectivityMYSQL - PHP Database Connectivity
MYSQL - PHP Database Connectivity
V.V.Vanniaperumal College for Women
 
introduction to SQL query language beginner.ppt
introduction to SQL query language beginner.pptintroduction to SQL query language beginner.ppt
introduction to SQL query language beginner.ppt
PatriceRochon1
 

More from ChryslerPanaguiton (8)

Human Capital Transition to Human Centri
Human Capital Transition to Human CentriHuman Capital Transition to Human Centri
Human Capital Transition to Human Centri
ChryslerPanaguiton
 
Report Selection Process PPTA systematic
Report Selection Process PPTA systematicReport Selection Process PPTA systematic
Report Selection Process PPTA systematic
ChryslerPanaguiton
 
HRM (Human Resource Management) plays a k
HRM (Human Resource Management) plays a kHRM (Human Resource Management) plays a k
HRM (Human Resource Management) plays a k
ChryslerPanaguiton
 
Human Capital Discuss how HR move to human centric that focuses on arts idea ...
Human Capital Discuss how HR move to human centric that focuses on arts idea ...Human Capital Discuss how HR move to human centric that focuses on arts idea ...
Human Capital Discuss how HR move to human centric that focuses on arts idea ...
ChryslerPanaguiton
 
April 1 - Lesson COMPUTER ETHICS and SAFETY.pptx
April 1 - Lesson COMPUTER ETHICS and SAFETY.pptxApril 1 - Lesson COMPUTER ETHICS and SAFETY.pptx
April 1 - Lesson COMPUTER ETHICS and SAFETY.pptx
ChryslerPanaguiton
 
Algorithms and Complexity.pptx
Algorithms and Complexity.pptxAlgorithms and Complexity.pptx
Algorithms and Complexity.pptx
ChryslerPanaguiton
 
Intro Part 1 - Science, Technology & Society.pdf
Intro Part 1 - Science, Technology & Society.pdfIntro Part 1 - Science, Technology & Society.pdf
Intro Part 1 - Science, Technology & Society.pdf
ChryslerPanaguiton
 
LECTURE NOTES.pdf
LECTURE NOTES.pdfLECTURE NOTES.pdf
LECTURE NOTES.pdf
ChryslerPanaguiton
 
Human Capital Transition to Human Centri
Human Capital Transition to Human CentriHuman Capital Transition to Human Centri
Human Capital Transition to Human Centri
ChryslerPanaguiton
 
Report Selection Process PPTA systematic
Report Selection Process PPTA systematicReport Selection Process PPTA systematic
Report Selection Process PPTA systematic
ChryslerPanaguiton
 
HRM (Human Resource Management) plays a k
HRM (Human Resource Management) plays a kHRM (Human Resource Management) plays a k
HRM (Human Resource Management) plays a k
ChryslerPanaguiton
 
Human Capital Discuss how HR move to human centric that focuses on arts idea ...
Human Capital Discuss how HR move to human centric that focuses on arts idea ...Human Capital Discuss how HR move to human centric that focuses on arts idea ...
Human Capital Discuss how HR move to human centric that focuses on arts idea ...
ChryslerPanaguiton
 
April 1 - Lesson COMPUTER ETHICS and SAFETY.pptx
April 1 - Lesson COMPUTER ETHICS and SAFETY.pptxApril 1 - Lesson COMPUTER ETHICS and SAFETY.pptx
April 1 - Lesson COMPUTER ETHICS and SAFETY.pptx
ChryslerPanaguiton
 
Algorithms and Complexity.pptx
Algorithms and Complexity.pptxAlgorithms and Complexity.pptx
Algorithms and Complexity.pptx
ChryslerPanaguiton
 
Intro Part 1 - Science, Technology & Society.pdf
Intro Part 1 - Science, Technology & Society.pdfIntro Part 1 - Science, Technology & Society.pdf
Intro Part 1 - Science, Technology & Society.pdf
ChryslerPanaguiton
 
Ad

Recently uploaded (20)

Introduction to FLUID MECHANICS & KINEMATICS
Introduction to FLUID MECHANICS &  KINEMATICSIntroduction to FLUID MECHANICS &  KINEMATICS
Introduction to FLUID MECHANICS & KINEMATICS
narayanaswamygdas
 
IntroSlides-April-BuildWithAI-VertexAI.pdf
IntroSlides-April-BuildWithAI-VertexAI.pdfIntroSlides-April-BuildWithAI-VertexAI.pdf
IntroSlides-April-BuildWithAI-VertexAI.pdf
Luiz Carneiro
 
Machine learning project on employee attrition detection using (2).pptx
Machine learning project on employee attrition detection using (2).pptxMachine learning project on employee attrition detection using (2).pptx
Machine learning project on employee attrition detection using (2).pptx
rajeswari89780
 
fluke dealers in bangalore..............
fluke dealers in bangalore..............fluke dealers in bangalore..............
fluke dealers in bangalore..............
Haresh Vaswani
 
Compiler Design Unit1 PPT Phases of Compiler.pptx
Compiler Design Unit1 PPT Phases of Compiler.pptxCompiler Design Unit1 PPT Phases of Compiler.pptx
Compiler Design Unit1 PPT Phases of Compiler.pptx
RushaliDeshmukh2
 
QA/QC Manager (Quality management Expert)
QA/QC Manager (Quality management Expert)QA/QC Manager (Quality management Expert)
QA/QC Manager (Quality management Expert)
rccbatchplant
 
DSP and MV the Color image processing.ppt
DSP and MV the  Color image processing.pptDSP and MV the  Color image processing.ppt
DSP and MV the Color image processing.ppt
HafizAhamed8
 
some basics electrical and electronics knowledge
some basics electrical and electronics knowledgesome basics electrical and electronics knowledge
some basics electrical and electronics knowledge
nguyentrungdo88
 
15th International Conference on Computer Science, Engineering and Applicatio...
15th International Conference on Computer Science, Engineering and Applicatio...15th International Conference on Computer Science, Engineering and Applicatio...
15th International Conference on Computer Science, Engineering and Applicatio...
IJCSES Journal
 
Process Parameter Optimization for Minimizing Springback in Cold Drawing Proc...
Process Parameter Optimization for Minimizing Springback in Cold Drawing Proc...Process Parameter Optimization for Minimizing Springback in Cold Drawing Proc...
Process Parameter Optimization for Minimizing Springback in Cold Drawing Proc...
Journal of Soft Computing in Civil Engineering
 
Smart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineeringSmart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineering
rushikeshnavghare94
 
AI-assisted Software Testing (3-hours tutorial)
AI-assisted Software Testing (3-hours tutorial)AI-assisted Software Testing (3-hours tutorial)
AI-assisted Software Testing (3-hours tutorial)
Vəhid Gəruslu
 
Structural Response of Reinforced Self-Compacting Concrete Deep Beam Using Fi...
Structural Response of Reinforced Self-Compacting Concrete Deep Beam Using Fi...Structural Response of Reinforced Self-Compacting Concrete Deep Beam Using Fi...
Structural Response of Reinforced Self-Compacting Concrete Deep Beam Using Fi...
Journal of Soft Computing in Civil Engineering
 
Level 1-Safety.pptx Presentation of Electrical Safety
Level 1-Safety.pptx Presentation of Electrical SafetyLevel 1-Safety.pptx Presentation of Electrical Safety
Level 1-Safety.pptx Presentation of Electrical Safety
JoseAlbertoCariasDel
 
International Journal of Distributed and Parallel systems (IJDPS)
International Journal of Distributed and Parallel systems (IJDPS)International Journal of Distributed and Parallel systems (IJDPS)
International Journal of Distributed and Parallel systems (IJDPS)
samueljackson3773
 
ELectronics Boards & Product Testing_Shiju.pdf
ELectronics Boards & Product Testing_Shiju.pdfELectronics Boards & Product Testing_Shiju.pdf
ELectronics Boards & Product Testing_Shiju.pdf
Shiju Jacob
 
211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf
211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf
211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf
inmishra17121973
 
Data Structures_Introduction to algorithms.pptx
Data Structures_Introduction to algorithms.pptxData Structures_Introduction to algorithms.pptx
Data Structures_Introduction to algorithms.pptx
RushaliDeshmukh2
 
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E..."Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
Infopitaara
 
π0.5: a Vision-Language-Action Model with Open-World Generalization
π0.5: a Vision-Language-Action Model with Open-World Generalizationπ0.5: a Vision-Language-Action Model with Open-World Generalization
π0.5: a Vision-Language-Action Model with Open-World Generalization
NABLAS株式会社
 
Introduction to FLUID MECHANICS & KINEMATICS
Introduction to FLUID MECHANICS &  KINEMATICSIntroduction to FLUID MECHANICS &  KINEMATICS
Introduction to FLUID MECHANICS & KINEMATICS
narayanaswamygdas
 
IntroSlides-April-BuildWithAI-VertexAI.pdf
IntroSlides-April-BuildWithAI-VertexAI.pdfIntroSlides-April-BuildWithAI-VertexAI.pdf
IntroSlides-April-BuildWithAI-VertexAI.pdf
Luiz Carneiro
 
Machine learning project on employee attrition detection using (2).pptx
Machine learning project on employee attrition detection using (2).pptxMachine learning project on employee attrition detection using (2).pptx
Machine learning project on employee attrition detection using (2).pptx
rajeswari89780
 
fluke dealers in bangalore..............
fluke dealers in bangalore..............fluke dealers in bangalore..............
fluke dealers in bangalore..............
Haresh Vaswani
 
Compiler Design Unit1 PPT Phases of Compiler.pptx
Compiler Design Unit1 PPT Phases of Compiler.pptxCompiler Design Unit1 PPT Phases of Compiler.pptx
Compiler Design Unit1 PPT Phases of Compiler.pptx
RushaliDeshmukh2
 
QA/QC Manager (Quality management Expert)
QA/QC Manager (Quality management Expert)QA/QC Manager (Quality management Expert)
QA/QC Manager (Quality management Expert)
rccbatchplant
 
DSP and MV the Color image processing.ppt
DSP and MV the  Color image processing.pptDSP and MV the  Color image processing.ppt
DSP and MV the Color image processing.ppt
HafizAhamed8
 
some basics electrical and electronics knowledge
some basics electrical and electronics knowledgesome basics electrical and electronics knowledge
some basics electrical and electronics knowledge
nguyentrungdo88
 
15th International Conference on Computer Science, Engineering and Applicatio...
15th International Conference on Computer Science, Engineering and Applicatio...15th International Conference on Computer Science, Engineering and Applicatio...
15th International Conference on Computer Science, Engineering and Applicatio...
IJCSES Journal
 
Smart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineeringSmart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineering
rushikeshnavghare94
 
AI-assisted Software Testing (3-hours tutorial)
AI-assisted Software Testing (3-hours tutorial)AI-assisted Software Testing (3-hours tutorial)
AI-assisted Software Testing (3-hours tutorial)
Vəhid Gəruslu
 
Level 1-Safety.pptx Presentation of Electrical Safety
Level 1-Safety.pptx Presentation of Electrical SafetyLevel 1-Safety.pptx Presentation of Electrical Safety
Level 1-Safety.pptx Presentation of Electrical Safety
JoseAlbertoCariasDel
 
International Journal of Distributed and Parallel systems (IJDPS)
International Journal of Distributed and Parallel systems (IJDPS)International Journal of Distributed and Parallel systems (IJDPS)
International Journal of Distributed and Parallel systems (IJDPS)
samueljackson3773
 
ELectronics Boards & Product Testing_Shiju.pdf
ELectronics Boards & Product Testing_Shiju.pdfELectronics Boards & Product Testing_Shiju.pdf
ELectronics Boards & Product Testing_Shiju.pdf
Shiju Jacob
 
211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf
211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf
211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf
inmishra17121973
 
Data Structures_Introduction to algorithms.pptx
Data Structures_Introduction to algorithms.pptxData Structures_Introduction to algorithms.pptx
Data Structures_Introduction to algorithms.pptx
RushaliDeshmukh2
 
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E..."Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
Infopitaara
 
π0.5: a Vision-Language-Action Model with Open-World Generalization
π0.5: a Vision-Language-Action Model with Open-World Generalizationπ0.5: a Vision-Language-Action Model with Open-World Generalization
π0.5: a Vision-Language-Action Model with Open-World Generalization
NABLAS株式会社
 
Ad

LECTURE NOTES.pdf

  • 2. SQL Overview SQL is a programming language for Relational Databases. It is designed over relational algebra and tuple relational calculus. SQL comes as a package with all major distributions of RDBMS. SQL comprises both data definition and data manipulation languages. Using the data definition properties of SQL, one can design and modify database schema whereas data manipulation properties allows SQL to store and retrieve data from database. SQL is a standard language for storing, manipulating and retrieving data in databases.
  • 3. MYSQL Database 2 tier Architecture
  • 4. MYSQL Database 3 tier Architecture
  • 5. Client program can be a MySQL command line client, GUI client, or a program written in any language such as C, Perl, PHP, Java that has an interface to the MySQL server.
  • 10. What is XAMPP? XAMPP is a completely free, easy to install Apache distribution containing MariaDB, PHP, and Perl. The XAMPP open source package has been set up to be incredibly easy to install and to use
  • 30. Create table example CREATE TABLE Persons ( PersonID int, LastName varchar(255), FirstName varchar(255), Address varchar(255), City varchar(255) );
  • 31. CREATE TABLE WITH PRIMARY KEY CREATE TABLE Persons (Personid int NOT NULL AUTO_INCREMENT, LastName varchar(255) NOT NULL, FirstName varchar(255), Age int, PRIMARY KEY (Personid));
  • 32. INSERT INTO STATEMENT INSERT INTO Persons (FirstName,LastName) VALUES ('Lars','Monsen');
  • 33. Summary of CODES 1. mysql –u root –p = To connect to SQL server. 2. show databases; = To show all available and active databases. 3. Use databasename; = To use the database. 4. Show tables; = to check all table of the database used. 5. Create database databasename; = to create a database 6. Drop database databasename; = to delete or remove a database 7. Drop table tablename; = to delete an existing table 8. Use databasename; = to use an existing database 9. Show tables; = to show all tables from a database 10. Describe tablename; = to verify specification of a table 11. * = represents “all” 12. Exit = to go back in connecting to SQL Server
  • 34. Create table Table Name: Customer Field name: CustomerID, Lastname, firstname,City,mobilenumber
  • 35. UPDATE SYNTAX UPDATE table_name SET column1 = value1, column2 = value2, ... WHERE condition;
  • 36. UPDATE EXAMPLE UPDATE Customers SET ContactName = 'Alfred Schmidt', City= 'Frankfurt' WHERE CustomerID = 1;
  • 38. The SQL ORDER BY Keyword The ORDER BY keyword is used to sort the result-set in ascending or descending order. The ORDER BY keyword sorts the records in ascending order by default. T o sort the records in descending order, use the DESC keyword. SELECT * FROM Customers ORDER BY Country DESC; SELECT * FROM Customers ORDER BY Country ASC;
  • 39. Select specific field of table SYNTAX: Select fieldname,fieldname from tablename;
  • 40. SQL ALTER TABLE Statement The ALTER TABLE statement is used to add, delete, or modify columns in an existing table. The ALTER TABLE statement is also used to add and drop various constraints on an existing table. To add a column in a table, use the following syntax: ALTER TABLE table_name ADD column_name datatype; Example ALTER TABLE Customers ADD Email varchar(255);
  • 47. ID – Primary key Student_ID Math Science English 1 2020-0001 85 87 90 2 2020-0002 74 73 75 3 2021-1020 87 90 88 4 2021-1023 70 72 75 5 2021-1030 85 87 90
  • 48. ID – Primary key Student_ID Math Science English Gen_Ave 1 2020-0001 85 87 90 87.33 2 2020-0002 74 73 75 74 3 2021-1020 87 90 88 88.33 4 2021-1023 70 72 75 72.33 5 2021-1030 85 87 90 87.34
  • 49. Arboleda = 1000 Tejas = 550 Almaden = 1050 Almaden Mobile num = 0916-225-0012 QUERY + 3 Lastname, firstname,mobilenum, expenses order by ASC LASTNAME Lastname, firstname,mobilenum, expenses order by DESC FIRSTNAME -----