SQL is a crucial skill for a Data Scientist! I would be releasing everything I know, little by little, and then a compiled version of all the threads you could revisit.

A Beginner's Guide to MySQL basic queries 😎 -Part 1 (Creation of Everything!)

Thread 🧵
What is a database?
An organised collection of data that can be interrelated & makes operations like retrieval, insertion & deletion of data efficient.
User can perform different queries to perform an action based on their requirements.

Types:-
Hierarchical
Network
OO Database
A relational database is a type of database that stores everything in relations or tables.
Tables have columns and rows.

SQL -> Structured Query Language used to interact with a relational database.
1) To see all the available databases:-
show databases;

The example is given in the image below. When I executed this query, I found out that there were seven databases present in the directory.
2) To use a specific database:-
use database_name;

To work in a specific database and make changes, we select that database using this query.

E.g., I am using the 'university' database to work.

3) To see all the tables in the database currently in use:-
show tables; The database -> university, currently has two tables, namely
Further explanation of query: show tables;
The database, university, currently has two tables, namely faculties and student.

4) To create a new table in the database currently in use
create table tablename(columnname1 datatype1 constraint1, columnname2 datatype2 constraint2);
Further explanation: I am creating a table named 'classroom1', which has three columns: 'rollno', 'student_name' and 'age'.
The data type associated with each column is an integer, varchar and integer, respectively.
There is only a single constraint being used with column rollno
5) Structure of the table
describe table_name;

The query would present to you the STRUCTURE OF THE TABLE as follows:-
Install MySQL in:-

Windows

1) To download MySQL Installer go to bit.ly/3x0uMwI
2) Download the "mysql-installer-community-8.0.25.0.msi"
3) Choose the setup according to your system.
4) Select the ‘Developer Default’ to install MySQL server and other tools of MySQL
5) Complete the installation procedure by following the instructions
6) Configure the password
7) You are ready to go!

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Sukriti Macker

Sukriti Macker Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @Sukriti_Macker

5 Jun
Basic Queries MySQL part 2 (Let's fill the table up!) 😎

Beginner Friendly!

Thread 🧵
✅ What are the keys in a relational database?
Keys help you uniquely identify a row in the table. It is also used to create relationship amongst various tables in a database.

The major types of keys:-
Primary Key
Candidate Key
Super Key
Foreign Key
Super Key: A set of one or more attributes or columns that identify a row/record in the table. It may consist of some columns that are not needed for the unique identification of a row.
Read 12 tweets
2 Jun
I had attended a webinar recently and learnt something incredibly unique! I discovered that you could be a Data Scientist, but having a #specialisation is IMPORTANT!

What is a "specialisation"? How many kinds of specialisations are there in #DataScience Domain?

Thread🧵 Image
*Specialisation*
One can acquire all the skills of a Data Scientist, but having specialisation in a particular skill can set you apart from the rest. It can be anything! You can analyse data as no one else; data visualisation or database management (#DBMS) could be your niche.🤩
☑️Data Visualisation
If you have a knack for producing beautiful graphical representations from the data, this could be your domain of specialisation, and you could become a Data #Visualisation Engineer. Image
Read 10 tweets
31 May
You want to step into the field of DATA. But do you know which area is best suited for you?

Compare your skills with the domain you are interested!!
Thread🧵
☑️Data Analyst
If you don't know what role Data Analyst plays, check out this (cutt.ly/VndBSnI)

Skills:-
Python and R
SQL
Excel
Data Visualisation Tools 📊📈📉
Report Building Tools (like Power BI & Tableau)
Communication, Presentation & Critical Thinking skills
☑️Machine Learning Engineer
If you don't know what role Machine Learning Engineer plays, check out this (cutt.ly/VndBSnI)
Read 6 tweets
29 May
Data Analytics is the fundamental step towards building a career in Data Science. It uses pre-existing data or historical data to solve a given problem. It includes tasks like checking hypothesis, creating dashboards & reports and gathering data from various sources.
One should be adept at working with tools like Power BI to generate reports, Microsoft Excel and SQL to work with structured or unstructured data, and proficient in R and Python.
Data Science is a multidisciplinary field. It includes Computer Science, Mathematics, Statistics, Economics, etc. It is NOT a subset of Machine Learning. Data Scientist may use machine learning to discover new insights from the data, but not necessarily.
Read 6 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!

:(