Escolar Documentos
Profissional Documentos
Cultura Documentos
ANDHRA PRADESH
Name : K.Chandra Sekhar
Designation : Associate Lecturer
Branch : DCCP
Institute : Central Institute of Commerce,Tarnaka,
Hyd.
Year/Semester : V Semester
Subject : Relational Database Management System
Subject Code : CCP-505
Topic : Know the components of SQL
Duration : 50 Minutes
Sub-Topic : Write statements using the SQL Commands
Teaching Aids : PPT,Animation, Photographs
CCP505.39TO40 1
OBJECTIVES
CCP505.39TO40 2
Recap
Uses of SQL commands with examples
CCP505.39TO40 3
Data Base Name : STUDENT Table Name : STD_PER_DETAILS
Table 1
CCP505.39TO40 4
Data Base Name : STUDENT Table Name : STD_RESULTS
Table 2
CCP505.39TO40 5
Structure of STUDENT Database Tables
Table 3
CCP505.39TO40 6
Structure of STUDENT Database Tables
Table 4
CCP505.39TO40 7
Selecting all Columns of a Table
CCP505.39TO40 8
Selecting Specific Columns from a Table
FROM STD_PER_DETAILS;
FROM STD_RESULTS;
CCP505.39TO40 9
To eliminate duplicate Rows in the Result
FROM STD_PER_DETAILS;
FROM STD_RESULTS;
CCP505.39TO40 10
Selecting Specific Rows from a Table
SQL>SELECT std_name
CCP505.39TO40 11
Controlling the Order of displayed Rows
ORDER BY Ascending ;
SQL>SELECT std_name
ORDER BY descending ;
CCP505.39TO40 12
Selecting Rows with in the Range
SQL>SELECT rank, std_name,f_name
CCP505.39TO40 13
Selecting Rows from the list of values
SQL>SELECT std_name
FROM STD_PER_DETAILS
CCP505.39TO40 14
Selecting Rows with Character pattern
match
Lists all the rows where student name starts
with K
CCP505.39TO40 15
Selecting Rows using compound
expressions
FROM STD_PER_DETAILS
CCP505.39TO40 16
Selecting Rows using compound
expressions
FROM STD_PER_DETAILS
CCP505.39TO40 17
Selecting Rows using compound
expressions
FROM STD_PER_DETAILS
CCP505.39TO40 18
Summary
CCP505.39TO40 19
Quiz
1. For eliminating duplicate record (rows) along with
‘select’ the following clause is used
Duplicate
Distinct
Original
None of the above
Answer is : Distinct
CCP505.39TO40 20
Frequently asked questions
CCP505.39TO40 21
Assignment
CCP505.39TO40 22