Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
140 views
SQL - Basics - Handwritten Notes
Uploaded by
manoj
AI-enhanced title
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save SQL_Basics_Handwritten Notes For Later
Download
Save
Save SQL_Basics_Handwritten Notes For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
140 views
SQL - Basics - Handwritten Notes
Uploaded by
manoj
AI-enhanced title
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save SQL_Basics_Handwritten Notes For Later
Carousel Previous
Carousel Next
Save
Save SQL_Basics_Handwritten Notes For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 9
Search
Fullscreen
© Date Soy stands fev Btrucduxed Query Langvaje Fo) esau! toa standard lanyqye for Raessing and Manuplatiny database: 9 Sou stands For Shvcluted Quay lanyuaye A dolabase Most often cenlains one or More tables. each table identiey hy Name (eg. Customer, student). table Contain tecssds (wows) win data: SQL Cade gtatement + Woy Ceente TABLE table-name coumnt datatype, Column2 datatype, Column3 datatyre, \; : SPL iS mot Q Cage Sensitive lanjoagelect Jetqernent ue so. Select dasa Srrory dajabase. . * data ead is aimed in Result table. Called tne vesult- Set. Iqne Pottowiny SOL GlatemMent Selekg tne ‘Cugiomexname’ & ‘city’ column Perm Oslomey table: a Seleot Custementvame , city Fam Customers; ill
selefs all Column Pom CuSbomey table. ' ‘i Tre WHERE clause “Il§ Used do Pitex BETAS e i+ is sed 4c vextract only snose wecesds nat PuilPited Q gpecified ~ Condition = ivhotsb! bh SELECT \Columnt, sColumn2, Rom dable-name WHERE _CONdition ; SLcomment + + BQL Comment§ are used, +0 add Notes +0 WF Code example: -- Ths ts a wmment. (err Ane AND ocpevatoy disploys a werd WPocatl ute: Gonditions -gqmeted by AND OIE TRUE 0) 7 IAND syntox: @curiovs- PR rarome¥ HANG EE YP: VOL IID) Selat column!, column2., 27° From table-name \ where conditionl AnD Condition2 »----> a) ! 1 qne of Cperadoy \gplay a wrecosd JC any of me cofidition geprated by oR iS TRUE: on Syntax Geleet columni, Column2,--- Ram _toble-name — aa wyeee CONdIHon! OR Ganditon2, «++Ane WoT Operator displays 0 Becovd ~~ \@ tne condition(s) iS mot TRUE: auntey ~ 6ELECT adlumnt, Column2.--- PRom table-name WHERE emdttas!, wot Condition ,; example * 1 fic SELECT | & “FROM * CUstomens: WHERE NOT County = ity"; @comious-- Pregoammev lezalbs Sane DY Speraio¥ alow You to Gpeeiey Mottiple values In a WHERE clause. < ‘Ihe tN OpewatoY 1S a Shorinand GY Mmotiple 2 aonditions: - D5 wD ' syntax : SevecT column_name) Rom tablename WERE Column-Name ar (valve, values).e'The BEWSEEN Operator geleoty Value wiinin given wange dre Humbe can be text oy dates. © Ane BETWEEN Operator is mMdusive: {— begin and end Valvep are included Suntox : SELECT colUMN_Name(¢) FRom table-name WHERE ColVMN-Name BeIWweeNn volby AND Nalve2 + ACUMOUS -- PIopammey «the LI¥e opesator is used in Ga WHEDE clause 4o Search Pos a Specified patiema Column Mere Gre two Wildcards offen Used in a Coniunckon witn tne LIKE operator: c- the perent sisnCy.) sepregent zero, One , o8 MLHDle Chorcter. * The underscore Si9NC-) Depreyent onc Bingle _chancler. | T 1 Suntay : SELECT Column!, column 2, ---- FRoM table name WHERE — Column. LIKE PatternsUe | SOL Jory Caluge take ~~ wecsKds Faom > two Gt) move tables in a database and combines it ogines. ArvsTi ipiandaned SOL defined | S TYP OF Toins— | Ty inners Join 2) \ef+ ovtev Join 3B Bgnt wovtew Join G Put ovtey Joins! 3) .Cwsss Joi n ie Yue > @cuvioS-- P *%yrommey tablet > Ce pane i inners Join Tne INNER Soin, Kegword elects vecoyds anak Wave Madching values in Bom Tables. euniax: SELECT _Column-nameG) FeoM +ablel winnee Torn table on FALE. GluUmMO-Name = table2 - ep) umN-Name;the left Soin Keyword Behan all ecards Prom tne lept table Clabiet), and The Matching “Geards' Pom te wignt table Clablea). Qe==0 tre cresult ig 0 records Paam tne signt “Bide iP dnere. fs no maton. Synox : SELECT ColumneName (a) Prom tablet LETT ToOIN table 2 ON TABLEL. Golumn-name = 4able2. Column —Name ; i curious —-PrysammeV a ene a Fhe Right Woin “Key Word etwveNS Ql] BETAS Perm! wight tobe CFobier) manta matching wecnds Poon tne ler! dabie Gabler). the Besutt iso gecosds Psom tne_lePt side if 4neve te ho on che| 1 Right Toin Gimox : QQ) yea SELECT Column- Mame Cs) RRomn ‘table! Dy oo) or RIGHA Yoiny, Fable 2 i On Fable. Glumn_name =4able- column- i IN name ; @ewows-: preysarrme¥ ~ Tne FULL OUTER JOEN Keyword wehvons GN Becords When herve IS A Match in leer Cape) oF aight Clable2) table records . PAHS pir note: poll outer Jain and Ru uvoin Ore SameA, \ \o Pun Jain QMS ~ Poosammers. suntax » SELECT column-Name(s) Prom table! Pull ouTeR Tot tabler on) sable! column-name =tabler - calumny Name, WHERE Condition; @ curious pooyrammey- ey
You might also like
SQL Basics Handwritten
PDF
No ratings yet
SQL Basics Handwritten
9 pages
SQL Handwritten Notes
PDF
No ratings yet
SQL Handwritten Notes
21 pages
(Structured: A Useng Chang Is by
PDF
No ratings yet
(Structured: A Useng Chang Is by
24 pages
SQL Hand Written
PDF
No ratings yet
SQL Hand Written
17 pages
Chapter 3.3.5-SQL DML
PDF
No ratings yet
Chapter 3.3.5-SQL DML
56 pages
Lesson 3 Introduction To SQL
PDF
No ratings yet
Lesson 3 Introduction To SQL
66 pages
Meenakshi Arora
PDF
100% (1)
Meenakshi Arora
34 pages
lab1 asmamaw-2
PDF
No ratings yet
lab1 asmamaw-2
19 pages
SQL
PDF
33% (3)
SQL
20 pages
SQL
PDF
No ratings yet
SQL
9 pages
SQL Commands
PDF
No ratings yet
SQL Commands
10 pages
6.SQL Queries Clause
PDF
No ratings yet
6.SQL Queries Clause
40 pages
Udacity Challenge Prog - DS With Python - NOTES
PDF
No ratings yet
Udacity Challenge Prog - DS With Python - NOTES
84 pages
SQL Zero To Hero
PDF
No ratings yet
SQL Zero To Hero
14 pages
Learning MySQL By Example
PDF
No ratings yet
Learning MySQL By Example
186 pages
DocScanner Oct 29, 2023 5-45 PM
PDF
No ratings yet
DocScanner Oct 29, 2023 5-45 PM
9 pages
Week 9 Dbms
PDF
No ratings yet
Week 9 Dbms
19 pages
SQL Notes ?
PDF
No ratings yet
SQL Notes ?
15 pages
SQL CheatSheet
PDF
No ratings yet
SQL CheatSheet
17 pages
MYSQL
PDF
No ratings yet
MYSQL
33 pages
SQL Cheat Sheet
PDF
No ratings yet
SQL Cheat Sheet
4 pages
From Sudbury To Southbury: Evergreen SQL Bootcamp: Dan Scott Coffee - Code Consulting February 18/19, 2010
PDF
No ratings yet
From Sudbury To Southbury: Evergreen SQL Bootcamp: Dan Scott Coffee - Code Consulting February 18/19, 2010
39 pages
DBMS LAB File-1
PDF
No ratings yet
DBMS LAB File-1
27 pages
Session 3 - Data Analysis
PDF
No ratings yet
Session 3 - Data Analysis
33 pages
SQL Functions Operators and Key Words.docx
PDF
No ratings yet
SQL Functions Operators and Key Words.docx
3 pages
Introduction To SQL: Intro To Querying: EECS 317, Spring 2014
PDF
No ratings yet
Introduction To SQL: Intro To Querying: EECS 317, Spring 2014
14 pages
SQL (Structured Query Language)
PDF
No ratings yet
SQL (Structured Query Language)
84 pages
Postgresql (The Version of SQL We'Re Using)
PDF
100% (1)
Postgresql (The Version of SQL We'Re Using)
13 pages
DBMS
PDF
No ratings yet
DBMS
38 pages
DBMS Unit-2 PDF
PDF
No ratings yet
DBMS Unit-2 PDF
42 pages
SQL Notes
PDF
No ratings yet
SQL Notes
24 pages
What Is SQL?
PDF
100% (2)
What Is SQL?
33 pages
Chapter 05
PDF
No ratings yet
Chapter 05
105 pages
Lecture 0 - CS50's Introduction To Databases With SQL
PDF
No ratings yet
Lecture 0 - CS50's Introduction To Databases With SQL
12 pages
SQL-Query
PDF
No ratings yet
SQL-Query
14 pages
SQL Part1
PDF
No ratings yet
SQL Part1
5 pages
DB Lab 2
PDF
No ratings yet
DB Lab 2
15 pages
SQL Cheat Sheet
PDF
0% (1)
SQL Cheat Sheet
2 pages
SQL Quey
PDF
No ratings yet
SQL Quey
22 pages
SQL by Rohan
PDF
No ratings yet
SQL by Rohan
13 pages
dbms 4-5
PDF
No ratings yet
dbms 4-5
6 pages
Select FROM Emp : 4.1.retrieving Information From A Table
PDF
No ratings yet
Select FROM Emp : 4.1.retrieving Information From A Table
6 pages
Python Vocabularies
PDF
100% (1)
Python Vocabularies
101 pages
Data Base Class SQL
PDF
No ratings yet
Data Base Class SQL
8 pages
Relational Database Management Systems For Epidemiologists
PDF
No ratings yet
Relational Database Management Systems For Epidemiologists
51 pages
Chapter 3 SQL
PDF
No ratings yet
Chapter 3 SQL
59 pages
GR 12 SQL Requirements
PDF
No ratings yet
GR 12 SQL Requirements
17 pages
Relational Language
PDF
No ratings yet
Relational Language
69 pages
Lab5 MySQL
PDF
No ratings yet
Lab5 MySQL
33 pages
Sql-Ii (DML)
PDF
No ratings yet
Sql-Ii (DML)
63 pages
SQL Tutorial Part 1
PDF
No ratings yet
SQL Tutorial Part 1
26 pages
Adobe Scan 09-Dec-2023
PDF
No ratings yet
Adobe Scan 09-Dec-2023
10 pages
Data Manipulation Language
PDF
No ratings yet
Data Manipulation Language
48 pages
SQL Commands
PDF
No ratings yet
SQL Commands
31 pages
RDBMS and DBMS Concepts
PDF
No ratings yet
RDBMS and DBMS Concepts
5 pages
Select
PDF
No ratings yet
Select
17 pages