Skip to Content
Practical Oracle SQL: Mastering the Full Power of Oracle Database
book

Practical Oracle SQL: Mastering the Full Power of Oracle Database

by Kim Berg Hansen
February 2020
Intermediate to advanced
467 pages
8h 30m
English
Apress
Content preview from Practical Oracle SQL: Mastering the Full Power of Oracle Database
© Kim Berg Hansen 2020
K. Berg HansenPractical Oracle SQLhttps://doi.org/10.1007/978-1-4842-5617-6_18

18. Grouping Data Through Patterns

Kim Berg Hansen1 
(1)
Middelfart, Denmark
 

Grouping data with a group by clause requires you to find one or more values that are the same in those rows you want to belong to the same group. Often that is simply some columns or just as often a calculation on some columns.

Sometimes, though, the condition that tells you a row belongs to a group is not simply a condition you can calculate using only values from that row itself, but the condition is on how the row relates to other rows. A condition to group by could, for example, be that all rows with consecutive sequential values should be grouped – when a gap in the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Oracle SQL Tuning with Oracle SQLTXPLAIN: Oracle Database 12c Edition, Second Edition

Oracle SQL Tuning with Oracle SQLTXPLAIN: Oracle Database 12c Edition, Second Edition

Stelios Charalambides
Mastering Oracle SQL, 2nd Edition

Mastering Oracle SQL, 2nd Edition

Sanjay Mishra, Alan Beaulieu
Oracle SQL Developer

Oracle SQL Developer

Ajith Narayanan, Susan Harper

Publisher Resources

ISBN: 9781484256176Purchase LinkPublisher Website