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
Summary

Summary INF3707 Summarised Study Notes

Rating
-
Sold
2
Pages
110
Uploaded on
05-01-2022
Written in
2022/2023

Latest exam pack questions and answers and summarized notes for exam preparation. for assistance. All the best on your exams!!

Institution
Module

Content preview

INF3707

NOTES

,Oracle 12c: SQL 2-1


Chapter 2
Basic SQL SELECT Statements

At a Glance
Instructor’s Notes
♦ Chapter Overview

♦ Chapter Objectives

♦ Instructor Notes

♦ Troubleshooting Tips

♦ Quick Quizzes

♦ Discussion Questions

♦ Key Terms

,Oracle 12c: SQL 2-2


Chapter Overview
The purpose of this chapter is to learn the basic SELECT statement used to retrieve data from a
database table. The students will learn to use the SELECT clause to retrieve all columns, one
column, and multiple columns from a table specified in the FROM clause. In addition, students
learn how to perform simple arithmetic operations and concatenation in the SELECT clause.

Students will need to execute the JLDB_Build.sql script file. Each student should be assigned a
different user name so the generated tables will be located in a different schema for each student.
Each student must be granted sufficient privileges to execute statements to create tables and
execute queries.


Chapter Objectives
After completing this chapter, you should be able to do the following:

♦ Identify keywords, mandatory clauses, and optional clauses in a SELECT
statement
♦ Select and view all columns of a table
♦ Select and view one column of a table
♦ Display multiple columns of a table
♦ Use a column alias to clarify the contents of a particular column
♦ Perform basic arithmetic operations in the SELECT clause
♦ Remove duplicate lists using either the DISTINCT or UNIQUE keyword
♦ Use concatenation to combine fields, literals, and other data


Instructor Notes

SELECT Statement Syntax
Every SELECT statement is required to have a SELECT and FROM clause. Each statement
clause begins with a keyword. The SELECT clause is used to identify the column or columns to
be retrieved from a table. The name of the table is identified in the FROM clause. The structure
of the SELECT statement is depicted in Figure 2-2. This chapter only addresses the SELECT and
FROM clauses. Later chapters will address all of the remaining clauses.

, Oracle 12c: SQL 2-3


Quick Quiz
1. How do you retrieve all columns from a table without listing the column names?
ANSWER: Use an asterisk in the SELECT clause

2. How do you separate multiple columns listed in a SELECT statement?
ANSWER: Use commas

3. Are keywords case sensitive?
ANSWER: No

4. Are column names case sensitive?
ANSWER: No

5. Where do you identify the table containing the specified columns?
ANSWER: In the FROM clause


Troubleshooting Tip Demonstrate that SQL is not case sensitive in terms of the
command keywords or column/table names when a command is
executed. Also demonstrate the various methods of executing an
SQL statement.



Troubleshooting Tip Identify the two different Oracle SQL tool interfaces: the client
SQL*Plus and SQL Developer. Appendix B introduces these
interfaces.



Selecting All Data in a Table
The asterisk is used to represent all columns in a table. The asterisk is not a wildcard in the
traditional sense. It has a specific use in SQL commands. If the asterisk is used in the SELECT
clause, the clause can contain no other column references.

Selecting One Column from a Table

To select a specific column from a table, list the name of the column after the SELECT keyword.
Note that the column name can be entered in uppercase, lowercase, or mixed case. However, the
column name is displayed in uppercase characters by default.

Connected book

Written for

Institution
Module

Document information

Summarized whole book?
Yes
Uploaded on
January 5, 2022
Number of pages
110
Written in
2022/2023
Type
SUMMARY

Subjects

£3.43
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
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
EduPal University of South Africa (Unisa)
Follow You need to be logged in order to follow users or courses
Sold
150707
Member since
7 year
Number of followers
36012
Documents
4713
Last sold
1 hour ago

At EduPal we provide assignment assistance, exam preparation, detailed notes, and exam packs to help college students study with confidence. Our tutoring is comprehensive and personalised, focusing on your subject needs and deadlines. We guarantee quality support, clear guidance, and proven strategies that improve understanding, marks, and pass rates. For more information Whats-App 0.8.1..2.7.8..3.3.7.2..

4.2

13836 reviews

5
8022
4
2718
3
1803
2
464
1
829

Trending documents

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 exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight 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 smashed it. It really can be that simple.”

Alisha Student

Frequently asked questions