Learn how to use the ROUND function to round the data returned from your database to a specific decimal point.
- [Instructor] The Round SQL function allows us…to round off digits following the decimal point of a number…returned by a SQL query.…Let's see it in action.…Let's type select, and let's enter a constant value…for our example this time.…So I'll type 999.98765, from dual.…Running the query as-is will return…our constant value as-is.…
However, I can add the Round function,…and inside brackets specifying the actual number,…but this can also be value retrieved from a database table,…comma, any number of digits I want to round to…following the decimal point.…So let's start with three.…Let's run this query again, and as you see,…the number was rounded to 999.988.…Changing three to one will round the value completely,…and changing one to two will round the value…to two decimal points, so 999.99.…
Note: This training course is appropriate for beginning database developers with no prior experience with SQL or Oracle.
- Using Oracle SQL*Developer, the free development environment
- Selecting data from tables
- Filtering data
- Using functions to manipulate data
- Joining data from tables
- Creating tables
- Updating values
- Truncating data
- Grouping and ordering result sets
- Working with primary keys
- Checking constraints
Skill Level Beginner
Database Foundations: Core Conceptswith Adam Wilbert2h 14m Beginner
Database Foundations: Administrationwith Adam Wilbert1h 14m Beginner
Oracle 12c Database: Administrationwith David Yahalom3h 58m Beginner
1. Introduction to SQL
2. Preparing the Course Environment
Downloading the course VM2m 16s
3. Using Oracle SQL Developer
4. Basic SELECT Queries
5. String, Number, and Date Functions
6. Joining Table Data
7. Manipulating Data
8. Grouping Data
9. Advanced Topics
Next steps1m 33s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.