SQL1 Introduction and Installation
SQL1 Introduction and Installation
=====
Database:
=========
Database is the location to store the data in formal way and in organized manner.
Types of databases:
=====================
RDBMS is structured data which is presented in a tabular form with rows and columns
in it.
Ex:MySQL,Microsoft access,Postgresql,oracle,etc
2.NoSQL database:
NoSQL database is an unstructured database which means the data cannot be presented
in tabular form.
Ex:MongoDB,Apache cassandra,etc.
3.Graph database:
For working out with huge and large data and to display the data in graphical
formats,graph database is used.Graph database is also used for complex and
analytical calcualtions.
Ex:Neo4j
4.Columnar Database:
Ex:Redit,etc
This type of database have complexity in executing and working the data.Some
domains with high privacy rate will only be worked with object oriented database.
Ex:Apache H Base
SQL:SQL is a structured query language which is used to work out with RDBMS tools.
1.MySQL workbench
2.SQL Lite3
3.PostgreSQL
4.Oracle
5.Microsoft Access
6.Microsoft Server +
7.MongoDB----->Unstructured data
Advantages of MySQL:
1.Educational System
a)Students b)Staff c)Exams d)Lab equipments
e)Fee structures
2.Hospitals
a)Patients b)Doctors c)Staff d)Equipment
3.Trading
a)Business b)assests c)profits and losses
4.Election system
a)Voters b)Contestants c)Constituencies d)Zones
e)Ballots
desc table_name;
1.Go to C:
2.Click on Program files
3.Click on MySQL
4.Click on MySQL Server 8.0
5.Go to bin
6.On the top at path,type cmd which will navigate to command prompt
7.In command prompt,
mysql -u root -p
Enter the password which was created while installing the mysql workbench.
MethodI
MethodII
Ex1:
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
Semi-colon(;) is used to end the query without any other querying.The mysql engine
only exeutes the query whenever it is ends with the semi-colon and recognizes as
the end of the statement.