UPI Study › Courses › Database Programming › Free lessons › Lesson 1.1 Free with a free account
What Are Database Applications? Purpose and Significance
Database Programming · Chapter 1: Getting Started with Databases and SQL SetupSection 1.1 · lesson 1 of 769 min · free with a free account
Free preview
Create a free account to keep watching
It takes a minute and costs nothing. Your free account unlocks all of Chapter 1 and 3 more lessons of Database Programming.
Lesson complete
Earn the 3 college credits for Database Programming
Enrolling adds a quiz after each lesson, the graded work and the official transcript. Recommended for credit by NCCRS.
Next lesson: Varieties of Database Programs: Tools and Use Cases →Next lesson: Varieties of Database Programs: Tools and Use Cases →
A free account plays all of Chapter 1 and 3 more lessons of Database Programming. Create a free account →
In this lesson
How applications, a DBMS, and shared data work together.
- Distinguish a database, a database management system, and a database application
- Describe how tables, primary keys, and foreign keys organize related data
- Explain how a client request reaches the DBMS and returns a result
- Explain why transactions with commit and rollback keep related changes consistent
Free study notes
Get this lesson's notes by email
The key points and 4 practice questions with answers, in your inbox. One email, free.
One email. Unsubscribe in one click.
Transcript
Everything said in the video, section by section (1,045 words). Read along, or search it.
Opening Problem
Two Sales Channels, One Last Lamp
Maya Rao owns Lantern Books, our fictional campus bookstore. Sofia Alvarez sells the last reading lamp at the counter. At the same moment, the website accepts another order for that lamp. Maya has two promises, and only one item. The counter and website used separate stock lists. Which list should Maya trust, and how can both channels share a reliable answer?
Core Terms
Database, DBMS, and Application Roles
Leo Park, the application developer, separates the pieces. The database is the organized collection of related data: customers, products, and orders. The database management system, or DBMS, is the software managing that collection. MySQL and SQL Server are examples. The database application is the task-facing program. Sofia uses its checkout screen to sell a lamp, without opening storage files. Think of a restaurant: the waiter accepts your request, the kitchen manages preparation, and the pantry holds ingredients. The analogy separates jobs. In software, the application requests a task, the DBMS applies rules, and the database holds the information.
Relational Model
Tables, Rows, Columns, and Cells
Leo starts with the relational model: data organized into tables. The products table describes items the bookstore sells. A column, also called a field, represents one property, such as stock. Its definition describes the values that belong there. A row, or record, describes one product. The reading lamp row carries its identifier, name, and stock count. A cell is the single value where a row meets a column. The lamp stock cell is the quantity Maya needs. A primary key identifies a row uniquely, and excludes missing key values. Here it is product ID; other designs use several columns together.
Linking Tables
Foreign Keys Connect Orders to Customers
Customers and orders describe different things, so Leo keeps them in separate tables. Asha can place several orders without repeating her customer details. Each order stores a customer ID, a foreign key referencing the matching customer row. That link preserves who placed the order. The customer row contains Asha's current city. Updating it once avoids contradictory copies scattered across order records. SQL, short for Structured Query Language, lets programs ask questions across this organized data. We will pronounce it sequel. A key is more than a label when a constraint enforces it. The database can reject an order referencing a nonexistent customer.
Client and Server
How a Checkout Request Travels
Sofia taps the checkout button. Her screen is a client: a program asking another program to do work. The server receives the request. A server is software that waits for requests and returns answers; it can run on another computer. An application service checks the signed-in user and sends the database request. The DBMS enforces the database account's permissions and data constraints. The DBMS reads or changes the stored data. The server returns a result, and the client displays the outcome to Sofia. The client never needs direct access to the database files. Larger systems commonly put that application service between the screen and DBMS.
People and Roles
Administrator, Developer, and End User
Amina Diallo is the database administrator, or DBA. She installs the DBMS, manages access, plans backups, and checks its health. Leo builds the application and its queries. Sofia is an end user: she completes sales through the application, without needing sequel. One person may hold several roles on a small team. The responsibilities still differ, even when the same person performs them. Amina gives sales staff the access their work needs. A shared database does not mean everyone can read or change everything.
Transactions
Commit, Rollback, and All-or-Nothing Sales
Amina traces the sale: record the order, record its items, and reduce stock. Saving only part could leave the records inconsistent. A transaction groups related changes into a unit of work. Atomicity means all those changes succeed together, or their pending effects are undone. Commit saves the transaction. Rollback discards its uncommitted changes; the application must handle failures and request the appropriate outcome. Consistency means preserving the declared rules. For example, stock must not become negative, and each order must reference an existing customer. A bank transfer needs the same discipline: debit one account and credit another together. Saving just one side would produce an invalid result.
Shared Data
One Authoritative Stock List
Back at the counter, Maya replaces the competing stock lists with one authoritative database. Both sales channels now ask the same system. Sharing still needs coordination. The application and DBMS must handle simultaneous purchases, so both requests cannot silently claim the last available item. A shared spreadsheet can support a small list, but linked updates and detailed access rules become harder to manage as the workflow grows. The database gives Amina a central place for backups, recovery, and rules. These benefits require deliberate configuration and testing.
Beyond Retail
Permissions, Audit Records, and Scale
The same ideas travel beyond retail. In a hospital, an allergy entered by a nurse should reach the authorized clinical team. Billing staff may need charges without clinical notes. Permissions control access, while configured audit records can help explain who changed information. Scale means handling growth in data and demand. Indexes, resources, and good queries help; a database does not guarantee every request stays fast. Many applications use client-server systems, but an embedded database can live inside a single-device app. The right arrangement depends on the job.
Quick Check
Two Offices Updating One Address
A delivery office and a refunds office both update the same customer's address. The team wants a dependable current address. Which plan best prevents conflicting copies? Consider where the address lives, and how changes reach it. Pause, and decide.
Answer Explained
Keep One Controlled Customer Record
Keep one customer record behind controlled updates. Both offices refer to that record, and authorized changes follow shared rules. Comparing files on Friday leaves a period of disagreement. Copying an address into each new order creates more places that can drift apart. Sometimes an order deliberately keeps a historical delivery address. That is a separate requirement, rather than a substitute for the current customer record.
Story Resolved
One Coordinated Sale of the Lamp
Back to Maya's lamp. The shared system accepts one coordinated sale, and reports unavailable stock to the competing request. Sofia gets a clear result, and Maya can explain what happened. The application, DBMS, and stored records each played a different part. The improvement comes from a shared design: authoritative data, enforced rules, coordinated transactions, and access matched to responsibilities.
Key Takeaways
Applications, DBMS, and Stored Data Together
The application performs a task, the DBMS manages requests, and the database holds related information. Tables organize records and properties. Primary and foreign keys identify records and connect them. Transactions coordinate related changes, with commit and rollback defining the outcome. Shared data becomes useful when access, concurrency, recovery, and growth are deliberately managed.
About Database Programming at UPI Study
Database Programming (Computer Science 381) is a self-paced online course of 76 video lessons in 12 chapters, from database applications, SQL setup, schema planning and normalization to keys and constraints, data types, filtering and sorting, joins, subqueries, views, indexes, ROLLUP and PIVOT, regular expressions and database security. It carries a NCCRS credit recommendation for 3 semester credits.
Every lesson transcript is free on pages like this one, and the videos are free with a free UPI Study account. Enrolling adds a practice quiz after each lesson, the graded work and final exam that earn the credit, lifetime access, and an official transcript on completion. UPI Study has helped over 130,000 students with college credits. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.
Enroll now → Course details Download the syllabus All Computer Science courses Every credit course with PRO →
Why take it here
Why students take Database Programming with UPI Study
Where the credit goes
Universities that work with NCCRS
Database Programming carries a NCCRS credit recommendation. These universities work with NCCRS; some are UPI Study's signed partners. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.
Thomas Edison State UniversitySigned partner
University of the PeopleSigned partner
Charter Oak State CollegeSigned partner
Strayer UniversitySigned partner
Columbia Southern UniversitySigned partner
Indiana TechSigned partner
Penn StateWorks with NCCRS
Southern New Hampshire UniversityWorks with NCCRS
SUNYWorks with NCCRS
+many more cooperating universitiesFind my college →Find my college → Not listed? Ask Athena in the corner of this page, or book a 15-minute call.
FAQ
Questions students ask us
About What Are Database Applications? Purpose and Significance
What is the difference between a database, a DBMS, and a database application?
How does a client-server database application handle a request?
Why should a business use one shared database instead of separate lists?
Why do database applications group related changes into a transaction?
About the Database Programming course
How many college credits is Database Programming?
How much does Database Programming cost and what is included?
Which universities accept UPI Study credits?
How long does Database Programming take?
How are the exams done?
How do my credits reach my college?
Ready for the full course? Earn 3 credits in Database Programming.
76 video lessons, a quiz after each one, and the graded work that earns the credit. Recommended for credit by NCCRS.
Updated
3 credits · NCCRSEnroll →