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)
8 views
SSQL
Sql notes from book , contains su queries, types
Uploaded by
Sakib Khan
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save ssql For Later
Download
Save
Save ssql For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
8 views
SSQL
Sql notes from book , contains su queries, types
Uploaded by
Sakib Khan
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save ssql For Later
Carousel Previous
Carousel Next
Save
Save ssql For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 18
Search
Fullscreen
OPERATING SYSTEM UT jus: goL ‘Plus is made up of two distinct parts, are (1) interactive SQL : Interactive SQL is ed to create, ACCESS and maintain all data tables, indexes etc. It can also jon. It is 96V Oddo TL9L 80 OV E707 ptures ike d for interactive, data manip ed in detail in the next section (2) PLISQL : Programmers can use PLY to create programs for validation and fipulation of table data. PL/SQL adds to the er of interactive SQL, and provides the user all the facilities of a standard, modern day programming environment. Itis explaned Forms: is tool allows us to create a data entry along with suitable menu objects. Thus Oracle Forms Tool, that handles data ng and data validationin a commercial ion. anu auie vata Fig. 2. Working with the Oracle DBA. \sav‘Pius :) .= SQL *Plus @ fate ort & rece art, StH Ware: (1) Sefea SQL : HiRes SOL Bh ta er ‘98 dace, fa ga a Gee, waa sh Bs (wa ‘ema ) 2508 fare sags Pee rar 8 | gear oer eee (Sera area Ses) atk Saenger (weTAT) * fre sh a aaa? |g oe Saar Hi fea sare TT EY (2) PLISQL = emma PLISQL #1 FIM eae 22 } afeean (were) sik ge (wetrT) % fee ‘Sram fanz ad ax aa & | PLISQL rat wa gate SQL Surat ftentia axar 8 ait aaa saree (AGL) Sesto arama eosd A ah geod Has eT “Aye toa an Beara cae Ta aitemcr are: ae i ei ow Ba eA GA & aT TTT A, _aearaen Bae HAA Sa ATS | TET AR SS care za 8, oh oc ata wee er ef ST Sa ateten a Beat ear!ETION. were 1 Different Keys \fas Key) 2 cy means the special attribute by which KEY em Feira ene a vigor dn & | eel identify or relate the other attributes. qqq @ ay aq wie a year aI aig waa ze | ‘can be categorized like these = KEYS @) au for van & aviiga ax waa @ : ‘an attribute (or combination of attributes), sriquely identifies each row in a relation. It fxg Fe} eI ey = = Na Sg S & OPPO A96 i20 In STUDENT TABLE every student has a unique RN (ROLL NO.), thats why BN is considered as a Primary Key. (2) Foreign Key An attribute in a relation of a database that serves as the primary key of another relation in the same database. It is also called reference key because it establishes the relation between the tables. Repeatition and null value both are permisible in foreign key. Ora, aé) STUDENT TABLE 4 Wers BA Hy (are 4.) cated re ater RN I 4 Brae, yeaa eel (2) waits at ua @ Sarre & um fei a1 ae ufgep stadt Serta & a7 feere & fort array at ard ati @8 foetal ot wed €) wy ae dt aay th ata free enfie Beat 1 HT ‘at H geerafa a ar Aey HT STAT HAF Example : SaTETTT : Foreign Key CLASS TABLE Primary—PEN RN NAME | CLASS ‘SUBJECT Key 1004 401 RAM McM COMPUTER 1002 102 HARI MCM COMPUTER 1003 403 SITA MCA COMPUTER STUDENT TABLE and CLASS TABLE both have the attribute (field) RN. In STUDENT TABLE it is considered as a primary key but in CLASS TABLE it is considered as a Foreign Key, It is a common field (with same data type and other parameters but-not name) by which we can establish the relationship between these two. tables. (3) Composite Key A primary key that consists of more than one attribute is called composite key. (4) Super Key It is another name for primary key and composite Key. (5) Candidate Key Every attributes or every combination of attributes, that uniquely identifies a row in a relation. Among all the candidate keys we choose any one as a primary key. STUDENT TABLE 4 CLASS TABLE a -ufzeqe (fires) RN@ 1 STUDENT TABLE #
lll 1») Q Search.10:24 am ie Ful! 44% x & www.tutorialinhindi.com < Fert STS, afer A rete Reais at oH orfgeita Soh {RI SIA GI Heat B, Git Uh Hie OT IAA aT Ae V1 sa Holt F att art & fre van aifadta colt cht sragacrar atch 21 sfacta soll A chact ver ger A at ward @, Tater wrafte chott F arg oft val et aad él Var safe @ atte ve afore A haat ua mrefics hott et aenct @1 ctfenar anferent A up a afd afadta art (unique value) et aad él Jealexr ch ferg, UH country arfercar WR fora ane fore @ thtes at: ¢ Country ID ¢ Country Name ¢ ISO Code Country Country Iso ID Name Code +91 India IND Q Search ® = @10:24 am ie Ful! 44% x €& www.tutorialinhindi.com < Country Country Iso ID Name Code +91 India IND +1 United States | USA +880 Bangladesh BGD +977 Nepal NPL Example of Unique key in DBMS x K wv +1 United States USA +880 Bangladesh BGD +977 Nepal NPL ae ww tutoriainhind com UNIQUE KEY IN DBMS Country ID miata dott st aac @! ISO Code sua sifedta apa St aera 8, Sk Ua arfatta (unique) soft ett Bieiifes, Star fer SAR Ure Vet S et VE trefics hott @, eH se apres Ht orate colt of aét sat Gerd Ge Us unique key Bander Q Search ® = @10:26 am Ful @ 44% x @ ehindistudy.com < @ nw Types of constraints:- Wed table 4 Set at insert met & Ferg Hw business rules id 1 @ business rules, data constraints Heed é! DBMS 4 constraints Prfefaa wear adel a 1:-NOT NULL constraints:- 3a constraints 1 Wart ag frat sta @ GT feet column ot Greil aT waa Bt! NOT NULL constraints Y& column at value cat null @4 @ tena @1 ota feet column 4 34 constraints or Fah fehar viral € dt sa captcta at null az] provide et
You might also like
Lect2. SQL Constraints Operator
PDF
No ratings yet
Lect2. SQL Constraints Operator
81 pages
SQL (Structured Query Language) (3)
PDF
No ratings yet
SQL (Structured Query Language) (3)
19 pages
My sql notes
PDF
No ratings yet
My sql notes
5 pages
+2 Computer Science Marathon Note
PDF
No ratings yet
+2 Computer Science Marathon Note
195 pages
Queries - Class of DB
PDF
No ratings yet
Queries - Class of DB
32 pages
Chaudhary Srushti. Sub DBMS Lab Manual
PDF
No ratings yet
Chaudhary Srushti. Sub DBMS Lab Manual
12 pages
SQL
PDF
No ratings yet
SQL
6 pages
DBMS-Unit2
PDF
No ratings yet
DBMS-Unit2
28 pages
Sneha
PDF
No ratings yet
Sneha
18 pages
MYSQL NOTES 2024 XII
PDF
No ratings yet
MYSQL NOTES 2024 XII
19 pages
Dbms 15
PDF
No ratings yet
Dbms 15
16 pages
Week12 Database
PDF
No ratings yet
Week12 Database
40 pages
Dbms
PDF
No ratings yet
Dbms
51 pages
Structuredquerylanguage 22222
PDF
No ratings yet
Structuredquerylanguage 22222
73 pages
Mysql Notes
PDF
No ratings yet
Mysql Notes
52 pages
BPA DBMS Chapter5 - Advanced SQL
PDF
No ratings yet
BPA DBMS Chapter5 - Advanced SQL
59 pages
Chapter 3 The Relational Model
PDF
No ratings yet
Chapter 3 The Relational Model
72 pages
day1 live(1)
PDF
No ratings yet
day1 live(1)
14 pages
Interview Q From YouTube SQL
PDF
No ratings yet
Interview Q From YouTube SQL
5 pages
DBMS_KCS501_Notes Unit-1
PDF
No ratings yet
DBMS_KCS501_Notes Unit-1
44 pages
SQL12
PDF
No ratings yet
SQL12
7 pages
Normalization Part I
PDF
No ratings yet
Normalization Part I
60 pages
12 Mysql Qs Notes
PDF
50% (2)
12 Mysql Qs Notes
18 pages
DBMS Module 2
PDF
100% (1)
DBMS Module 2
24 pages
Mysql Final
PDF
No ratings yet
Mysql Final
14 pages
Tables and Keys
PDF
No ratings yet
Tables and Keys
23 pages
Dbms Unit2
PDF
No ratings yet
Dbms Unit2
4 pages
Unit 2_DBMS Notes for Students
PDF
No ratings yet
Unit 2_DBMS Notes for Students
71 pages
Unit I
PDF
No ratings yet
Unit I
66 pages
WhatsApp Image 2024-02-05 at 11.41.58 PM
PDF
No ratings yet
WhatsApp Image 2024-02-05 at 11.41.58 PM
10 pages
UNIT3_partII
PDF
No ratings yet
UNIT3_partII
19 pages
Chapter 2
PDF
No ratings yet
Chapter 2
74 pages
Key Constraint
PDF
No ratings yet
Key Constraint
6 pages
Unit 2 DMS
PDF
No ratings yet
Unit 2 DMS
85 pages
Class XII-UNIT III - SQL and MySQL Notes_0 (1)
PDF
No ratings yet
Class XII-UNIT III - SQL and MySQL Notes_0 (1)
6 pages
SQL Unleashed Part1 Part2 1701889964
PDF
No ratings yet
SQL Unleashed Part1 Part2 1701889964
26 pages
SQL_Unit II-2
PDF
No ratings yet
SQL_Unit II-2
131 pages
Lecture 14. Indexes and Constraints - MSTeams
PDF
No ratings yet
Lecture 14. Indexes and Constraints - MSTeams
5 pages
sql notes
PDF
No ratings yet
sql notes
24 pages
Unit II_K scheme_DMS
PDF
No ratings yet
Unit II_K scheme_DMS
72 pages
Logical Database Design and The Relational Model
PDF
No ratings yet
Logical Database Design and The Relational Model
109 pages
DBMS-Unit2
PDF
No ratings yet
DBMS-Unit2
28 pages
Dbms Notes
PDF
No ratings yet
Dbms Notes
59 pages
Database Analysis-Unit-1I: Course Name: Faculty Name
PDF
No ratings yet
Database Analysis-Unit-1I: Course Name: Faculty Name
28 pages
Data Definition Language (DDL) Commands Integrity Constraints
PDF
No ratings yet
Data Definition Language (DDL) Commands Integrity Constraints
23 pages
Relational Database Model
PDF
No ratings yet
Relational Database Model
93 pages
Database
PDF
No ratings yet
Database
27 pages
SQL
PDF
No ratings yet
SQL
62 pages
Lesson3c-subquery
PDF
No ratings yet
Lesson3c-subquery
55 pages
SQL Interview Questions CHEAT SHEET
PDF
No ratings yet
SQL Interview Questions CHEAT SHEET
20 pages
Ip_question_paper
PDF
No ratings yet
Ip_question_paper
3 pages
DBMS - Sub Q index triger cursor
PDF
No ratings yet
DBMS - Sub Q index triger cursor
132 pages
Lecture 3
PDF
No ratings yet
Lecture 3
40 pages
Everything About DBMS Database Management System
PDF
No ratings yet
Everything About DBMS Database Management System
13 pages
Unit 3 Database Management
PDF
No ratings yet
Unit 3 Database Management
22 pages
SQL (1)
PDF
No ratings yet
SQL (1)
153 pages
Keys in DBMS
PDF
No ratings yet
Keys in DBMS
10 pages
IP XII U2 Ch5 MySQL
PDF
No ratings yet
IP XII U2 Ch5 MySQL
52 pages
Import Theory Question - SQL
PDF
No ratings yet
Import Theory Question - SQL
5 pages