• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 5 pages
Other

Isa 345 Exam 1 – Code Study Guide

Document preview thumbnail
Preview 2 out of 5 pages

ISA 345 EXAM 1 – CODE STUDY GUIDE

Content preview

ISA 345 EXAM 1 – CODE STUDY GUIDE

entities - Answers -gives the framework for the table

abstraction of a table (logical construct)

Like the picture modeling

attribute - Answers -discrete data element that describes an entity
- names are unique within the database model and meaningful

Popular types of attributes - Answers -- numeric (integer, smallint, decimal, number)
- string (char, varchar, varchar2)
- date (date)

naming conventions in class - Answers -Attribute types and the first letter of attribute
names in capital letters

If more than one word, words will be combined into one with first letter of each
capitalized

identifier - Answers -another word for primary key

can be an attribute or a collection of attributes

Oracle SQL developer uses P and PL to denote

Creating a table in SQL coding - Answers -CREATE TABLE <table-name>(
<column-list>
[<constraint-list>]
);

Where <column-list> lists attribute names and types
[<constraint-list>] lists optional external constraints

Example of a Table being made - Answers -CREATE TABLE FACULTY(
Age SMALLINT CONSTRAINT AgeNotNull NOT NULL,
Salary NUMBER(9,2),
CONSTRAINT AgeOver0 CHECK(Age >0)

Integrity constraints - Answers -define valid sets of values for each attribute

Constraints we learn about - Answers -PRIMARY KEY
UNIQUE
NOT NULL

, CHECK
FOREIGN KEY

inline constraints - Answers -defined after an attribute's type

CONSTRAINT <ConstraintName><Constraint-Spec>

EX: DeptNo SMALLINT CONSTRAINT DeptNoPK PRIMARY KEY

PRIMARY KEY constraint - Answers -specifies a set of col that are the primary key

Composite primary key - Answers -primary key combo from more than one column

Must be external constraint

external constraint - Answers -written after all attributes are written

CONSTRAINT <ConstraintName>

EX: CONSTRAINT AgeOverZero CHECK(Age>0)

Unique constraint - Answers -constrains a column so that no two of its values are equal

EX: SSN Number(10) CONSTRAINT SSNUnique UNIQUE

NOT NULL constraint - Answers -constrains a col so that it cannot have a missing/null
value

ALWAYS inline

EX: PersonName VARCHAR(12) CONSTRAINT NameNotNUll NOT NULL

CHECK constraint - Answers -define a set of values for one or more variables

EX: CONSTRAINT AgeOver0 CHECK(Age >0)

How to fix the issue of not being able to make a table because a table with the name
already exists - Answers -DROP TABLE

DROP TABLE form - Answers -DROP TABLE <table-name> [<constraint-list>];

Where [<constraint-list>] lists optional constraints

ALTER TABLE - Answers -allows a table to be changed, added to, or deleted from

ALTER TABLE

Document information

Uploaded on
January 23, 2026
Number of pages
5
Written in
2025/2026
Type
Other
Person
Unknown
$12.99

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

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.
GEEKA
3.8
(380)
Sold
2250
Followers
1452
Items
64130
Last sold
9 hours ago



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