3.1- Data Management & Retrieval using data analytics techniques

thilagavathis16 44 views 23 slides Jun 06, 2024
Slide 1
Slide 1 of 23
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23

About This Presentation

data analytics and Management


Slide Content

Department of Computer Science III BSc (CS) ODD Semester: 2024 -2025
1
CORE 8: RDBMS & ORACLE Unit –3 Data Management & Retrieval
Data Management and Retrieval
Course: RDBMS Sub Code: 53A
Google Classroom: efxznbm Programme: BSc CS
Unit: III Hour : 1
Googlesite
:https://sites.google.com/skacas.ac.in/rdbmsst/semester-v/st-rdbms

Department of Computer Science III BSc (CS) ODD Semester: 2024 -2025
2
CORE 8: RDBMS & ORACLE Unit –3 Data Management & Retrieval
VISION & MISSION

Department of Computer Science III BSc (CS) ODD Semester: 2024 -2025
3
CORE 8: RDBMS & ORACLE Unit –3 Data Management & Retrieval
Toprovideexcellentinfrastructure
and educational prospects
throughinnovation,creativity,and
integrity,fosteringholisticstudent
excellenceinacademicandcareer
pursuits.
VISION

Department of Computer Science III BSc (CS) ODD Semester: 2024 -2025
4
CORE 8: RDBMS & ORACLE Unit –3 Data Management & Retrieval
Empowering thenationby
impartingstudentswithabroad
spectrumofknowledge,attitudes,
skills,andpractices,while
integratingthelatesttrendsin
advancingtechnologies.
MISSION

Department of Computer Science III BSc (CS) ODD Semester: 2024 -2025
5
CORE 8: RDBMS & ORACLE Unit –3 Data Management & Retrieval
COURSE OUTCOME
UnderstandthebasicconceptsofRelationalData
Model,Entity RelationshipModelandprocessof
Normalization.
UnderstandandconstructdatabaseusingStructured
QueryLanguage(SQL)inOracle9ienvironment

Department of Computer Science III BSc (CS) ODD Semester: 2024 -2025
6
CORE 8: RDBMS & ORACLE Unit –3 Data Management & Retrieval
Unit III -SYLLABUS
WorkingwithTable:DataManagementandRetrieval:DML
–addinganewRow/Record–CustomizedPrompts–
UpdatingandDeletinganExistingRows/Records–
retrievingDatafromTable–ArithmeticOperations–
restrictingDatawithWHEREclause–Sorting–Revisiting
SubstitutionVariables–DEFINEcommand–CASE
structure.FunctionsandGrouping:Built-infunctions–
GroupingData.MultipleTables:JoinsandSetoperations:
Join–Setoperations.

Department of Computer Science III BSc (CS) ODD Semester: 2024 -2025
7
CORE 8: RDBMS & ORACLE Unit –3 Data Management & Retrieval

Department of Computer Science III BSc (CS) ODD Semester: 2024 -2025
8
CORE 8: RDBMS & ORACLE Unit –3 Data Management & Retrieval
SNAP TALK

Department of Computer Science III BSc (CS) ODD Semester: 2024 -2025
9
CORE 8: RDBMS & ORACLE Unit –3 Data Management & Retrieval
LECTURE AGENDA
DML
Adding a new Row / Record
Inset command
Null values
Substitution variables
examples

Department of Computer Science III BSc (CS) ODD Semester: 2024 -2025
10
CORE 8: RDBMS & ORACLE Unit –3 Data Management & Retrieval
DML
Row
Insert
Nullvalues
substitution
Commit
Rollback
Default
keywords

Department of Computer Science III BSc (CS) ODD Semester: 2024 -2025
11
CORE 8: RDBMS & ORACLE Unit –3 Data Management & Retrieval
Agenda
Working with Tables: Data Management and Retrieval
DataManipulationLanguage(DML)
AddingaNewRow/Record
Syntax
RoundingbyInsert
EnteringNullValues
ImplicitMethod
ExplicitMethod
EnteringDefaultValues
SubstitutionValues

Department of Computer Science III BSc (CS) ODD Semester: 2024 -2025
12
CORE 8: RDBMS & ORACLE Unit –3 Data Management & Retrieval
DML
SQL’sDataManipulationLanguage(DML)consistsof
threestatements–SELECT,INSERT,UPDATEand
DELETE
DataRetrievalLanguageorSubsetofDMLconsistsof
SELECT.
AnewrowaddedwiththeINSERTcommand.
AnexistingrowarechangeswiththeUPDATE
command.
ToremovearowfromtablewiththeDELETEcommand.
TheSELECTretrievesdatafromtables.
DMLstatementsarenotwrittenpermanentlytothe
databaseunlesstheyarecommitted.

Department of Computer Science III BSc (CS) ODD Semester: 2024 -2025
13
CORE 8: RDBMS & ORACLE Unit –3 Data Management & Retrieval
Adding a new Row/Record
•Thedatamanipulationlanguage(DML)statement
insertisusedtoinsertanewrow/recordintoatable.
Ausercaninsertvaluesforallcolumnsoraselected
listofcolumnsinarecord.
Syntax:
INSERT INTO
schema.table_name[(column1,column2,…)]
VALUES(value1,value2,…);
Eg:-INSERT INTO student(studentid, name, street,
DOB, mobile) VALUES(‘0101’, ‘ Kumar’,
‘Terminals’, ‘12-FEB-90’, ‘9785789798’);

Department of Computer Science III BSc (CS) ODD Semester: 2024 -2025
14
CORE 8: RDBMS & ORACLE Unit –3 Data Management & Retrieval
Adding a new Row/Record
•RoundingbyINSERT
Ifweinsertvalue543.876inaNUMBER(6,2)column
,theprecisionis4,andthescaleis2.Theresultingvalueswillbe
543.88,roundedtotwodecimalplaces,orascaleof2.Therounded
valuewillbeenteredintothecolumn
•EnteringNULLValues
•Nullvaluesareallowedinnon-primarykeycolumnsthatdonot
haveaNOTNULLConstraint.
•ImplicitMethod
–INSERTINTOdept(Deptid,DeptName)VALUES(50,‘
Production)
•ExplicitMethod
–INSERTINTOdept(Deptid,DeptName,Location,EmpID)
VALUES(60,’Personnel’,‘Chicago’,NULL);

Department of Computer Science III BSc (CS) ODD Semester: 2024 -2025
15
CORE 8: RDBMS & ORACLE Unit –3 Data Management & Retrieval
Adding a new Row/Record
SubstitutionVariables
SQLlanguagehavesubstitutionvariables,which
enableyoutocreateaninteractiveSQLscript.
Theampersand(&)characterisusedbeforethe
substitutionvariablesinthequery.
ThesubstitutionvariablesforCHARandDATE
columnsareenclosedwithinapairofsinglequotation
marks.
–Eg:INSERTINTOdept(depid,deptname,location,
empid)VALUES(&depid,‘&deptname’,‘&location’,
&empid);
Ifuserwantstoaddmanyrows,thenslash(/)hasto
typetoreexecutethestatementfrombuffer.

Department of Computer Science III BSc (CS) ODD Semester: 2024 -2025
16
CORE 8: RDBMS & ORACLE Unit –3 Data Management & Retrieval
Points To Remember
•SQL’s Data Manipulation Language(DML)
consists of three statements –INSERT,
UPDATE and DELETE.
•Data Retrieval Language or Subset of DML
consists of SELECT.
•A User can enter a COMMIT statement
anytime to write DML statements to the disk.
•To undo the last set of DML statements by use
of ROLLBACK statement.

Department of Computer Science III BSc (CS) ODD Semester: 2024 -2025
17
CORE 8: RDBMS & ORACLE Unit –3 Data Management & Retrieval
Multiple Choice Questions
1. SQL’s Data Manipulation
Language(DML) consists of
____statements.
a.4
b.3
c.2
d.1

Department of Computer Science III BSc (CS) ODD Semester: 2024 -2025
18
CORE 8: RDBMS & ORACLE Unit –3 Data Management & Retrieval
Multiple Choice Questions
2. The ______character is used before the
substitution variables in the query.
a.$
b.*
c.&
d.#

Department of Computer Science III BSc (CS) ODD Semester: 2024 -2025
19
CORE 8: RDBMS & ORACLE Unit –3 Data Management & Retrieval
Multiple Choice Questions
3. A User can enter a ______statement
anytime to write DML statements to the
disk.
a.Rollback
b.Commit
c.Savepoint
d.none

Department of Computer Science III BSc (CS) ODD Semester: 2024 -2025
20
CORE 8: RDBMS & ORACLE Unit –3 Data Management & Retrieval
Multiple Choice Questions
4. To undo the last set of DML statements
by use of ______statement.
a.Rollback
b.Commit
c.Savepoint
d.none

Department of Computer Science III BSc (CS) ODD Semester: 2024 -2025
21
CORE 8: RDBMS & ORACLE Unit –3 Data Management & Retrieval
Multiple Choice Questions
5. ____values are allowed in non-primary key
columns that do not have a NOT NULL
Constraint.
a.Notnull
b.Null
c.Zero
d.None

Department of Computer Science III BSc (CS) ODD Semester: 2024 -2025
22
CORE 8: RDBMS & ORACLE Unit –3 Data Management & Retrieval
Multiple Choice Questions
Answer
1. 4
2. &
3. Commit
4. Rollback
5. Null

Department of Computer Science III BSc (CS) ODD Semester: 2024 -2025
23
CORE 8: RDBMS & ORACLE Unit –3 Data Management & Retrieval
Next Session
Customized Prompts