Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Class notes

database management system chapter 3

Rating
-
Sold
-
Pages
36
Uploaded on
30-03-2023
Written in
2021/2022

chapter name :- Interactive SQL and Advance SQL

Institution
Course

Content preview

Bhujbal Knowledge City

MET Institute of Technology-Polytechnic


Chapter 3. Interactive SQL and Advance
SQL: SQL Performance Tuning
3.1 In-built Functions : String, Arithmetic,
3.2 Date and Time, Aggregate functions.
3.3 Queries using Group by, having and order by clause
3.3 Joins- Inner and outer join, Sub queries.
3.4 Views- View, create view Command, Updating Views
3.4 Updating Views
3.4 Views and Joins
3.4 Views and sub queries, Dropping Views.
3.5 Sequences: creating Sequences
3.5 Altering Sequences, Dropping Sequences.
3.6 Indexes: Index Types, Creating an Index,
3.6 Simple, Unique Index
3.7 Composite Index, Dropping Indexes.
3.8 Synonyms: Creating Synonyms, Dropping Synonyms.
Prepared by: Prof. P. B. Khairnar

, SQL Functions
Sr. String Arithmetic Date & Time Aggregate
N
o.
1 LOWER ABS SYSDATE Min
2 UPPER CEIL ADD_MONTHS(d,n) Max
3 INITCAP EXP LAST_DAY Sum
4 LPAD FLOOR MONTHS_BETWEEN (d1,d2) Avg
5 RPAD LN NEXT_DAY(date, weekday) Count
6 LTRIM LOG Count (*)
7 RTRIM MOD
8 TRANSLATE POWER (m, n)
9 REPLACE ROUND ()
10 LENGTH SIGN
11 SUBSTR SQRT
12 CONCATENATE GREATEST
13 SOUNDEX LEAST Prepared by: Prof. P. B. Khairnar

, String functions
1) Lower :- Select Lower (‘MET') from Dual;
Output: met
2) Upper :- Select Upper (‘dbmS') from Dual;
Output: DBMS
3) INITCAP:-Select INITCAP(‘dbms') from Dual;
Output: Dbms
4) LPad:- Select lpad('RDBMS',10,'^') from Dual;
Output: ^^^^^RDBMS
5) RPad:- Select rpad('RDBMS',10,'^') from Dual;
Output: RDBMS^^^^^
Prepared by: Prof. P. B. Khairnar

, 6) LTrim:- Select ltrim('Pune Tech-Max Publication','Pune') from
Dual;
Output: Tech-Max Publication

7) RTrim:-Select rtrim('Pune Tech-Max Publication','Publication')
from Dual;
Output: Pune Tech-Max

8) Translate:- Translate single character with single character
Select Translate('Jack','J','P') from Dual;
Output: Pack
9) Replace:- Replace single character with multiple charecters.
Select Replace('Kamesh and Kalpesh', ‘ka',‘R') from Dual;
Output: Rmesh and rpesh


Prepared by: Prof. P. B. Khairnar

Written for

Course

Document information

Uploaded on
March 30, 2023
Number of pages
36
Written in
2021/2022
Type
Class notes
Professor(s)
P.b.khiarnar
Contains
Chapter 3

Subjects

$9.39
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
shreyasshirsath

Get to know the seller

Seller avatar
shreyasshirsath silver lotus school
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
3 year
Number of followers
0
Documents
14
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions