From the course: Oracle Database 12c: Basic SQL
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Describe the structure of a table - Oracle Database Tutorial
From the course: Oracle Database 12c: Basic SQL
Describe the structure of a table
- [Instructor] So what happens when you want to run a SQL query on a database table, but you are uncertain about the database table structure? In order to write your SQL query, you first have to know which columns exist in your table. What are their data types? Are there character columns, string columns or numeric columns, or maybe date columns? Luckily for us, we can view the structure of the table directly, both using a SQL command, and also using Oracle SQL Developer. The simplest way, using the Oracle SQL Developer UI, for you to see the structure of a table is to expand the table's folder under the left-hand connections pane directly under your database connection. Here you will see a list of all tables that exist in the current schema. Highlighting each one those tables, such as the employees table, will show you a description of all of the columns that exist in this table, as well as their data types. So for example, we can see that the employees table has an employee ID…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
Writing your first SELECT query1m 56s
-
(Locked)
Selecting only specific columns2m 22s
-
(Locked)
Using WHERE to filter specific rows1m 55s
-
(Locked)
Using multiple WHERE conditions3m 55s
-
(Locked)
Using WHERE to filter partial strings3m 12s
-
(Locked)
Using WHERE to filter numeric ranges1m 17s
-
(Locked)
Using WHERE IN and NOT IN for strings1m 54s
-
(Locked)
Using WHERE IN and NOT IN for numbers1m 35s
-
(Locked)
Using WHERE to filter dates2m 42s
-
(Locked)
Using WHERE to filter exact strings1m 55s
-
(Locked)
Using DISTINCT to eliminate duplicates4m
-
(Locked)
Performing basic numeric calculations2m 23s
-
(Locked)
Using column aliases2m 18s
-
(Locked)
Describe the structure of a table3m 16s
-
(Locked)
Using ORDER BY3m 29s
-
-
-
-
-
-
-