Introduction to Django #3Introduction to Django #3 SPARCS `08 서우석 (pipoket) `09 Summer SP ARCS Seminar`09 Summer SP ARCS Seminar 2009-07-221SPARCS.

Slides:



Advertisements
Similar presentations
Introduction to ReportSmith and Effective Dated Tables
Advertisements

Query Methods (SQL). What is SQL A programming language for databases. SQL (structured Query Language) It allows you add, edit, delete and run queries.
Jeopardy Objects Navigation Buttons True/False Parts of a Report Vocabulary Q $100 Q $200 Q $300 Q $400 Q $500 Q $100 Q $200 Q $300 Q $400 Q $500 Final.
Access Lesson 2 Creating a Database
Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.
A Guide to SQL, Seventh Edition. Objectives Create a new table from an existing table Change data using the UPDATE command Add new data using the INSERT.
Hierachical Database or family tree + mother father Child 1 Child 2 Child 11 Child 12 Child 21 Child 121 Child 122 Child 211.
Database Management: Getting Data Together Chapter 14.
Access Tutorial 1 Creating a Database
Creating a Blank Database 1. Open up Microsoft Access 2. Click on Blank document button 3. On the right panel, Specify the location for saving your database.
1004INT Information Systems Week 10 Databases as Business Tools.
Attribute databases. GIS Definition Diagram Output Query Results.
IMS1907 Database Systems Summer Semester 2004/2005 Lecture 2 Relational DBMS Software An Overview of Microsoft Access.
DAT702.  Standard Query Language  Ability to access and manipulate databases ◦ Retrieve data ◦ Insert, delete, update records ◦ Create and set permissions.
Microsoft Access 2007 Microsoft Access 2007 Introduction to Database Programs.
Microsoft Access – Tutorial 1 if you need to review general Microsoft Office procedures such as: menus toolbars task panes files help printing please go.
LESSON 17 PREPARED BY MANJU. database A database is a collection of related information Access is the Microsoft Office database program that enables you.
Tutorial 1 Creating a Database. Objectives Learn basic database concepts and terms Learn basic database concepts and terms Explore the Microsoft Access.
DAY 21: MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Akhila Kondai October 30, 2013.
CHAPTER 9 DATABASE MANAGEMENT © Prepared By: Razif Razali.
Unit J: Creating a Database Microsoft Office Illustrated Fundamentals.
Introduction to Databases. Overview  What is a Database?  What is a Database Management System?  How is information organized in a database?  What.
1 Lesson 22 Getting Started with Access Essentials Computer Literacy BASICS: A Comprehensive Guide to IC 3, 3 rd Edition Morrison / Wells.
Microsoft Access – Tutorial 1 if you need to review general Microsoft Office procedures such as: menus toolbars task panes files help printing please go.
1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. Access Module 1 Workshop 1 The Four Main Database Objects Series Editor Amy Kinser.
Introduction to PythonIntroduction to Python SPARCS `08 서우석 (pipoket) `09 Summer SP ARCS Seminar`09 Summer SP ARCS Seminar.
End Show 3.4 Database Management System Unit 3. End Show What is a database? It’s an organized collection of data, related to a particular subject or.
® Microsoft Access 2010 Tutorial 1 Creating a Database.
Lesson 17 Getting Started with Access Essentials
Course ILT Access basics Unit objectives Define database and database-related terminology, and plan a database Start Access and open, create, view, and.
Relational Databases (MS Access)
File Processing Concepts – Field – combination of 1 or more characters that is the smallest unit of data to be accessed – Record – group of related fields.
1 Structured Query Language (SQL). 2 Contents SQL – I SQL – II SQL – III SQL – IV.
With Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
CS1100: Data, Databases, Queries Action Queries CS11001Advanced Queries.
Chapter 1Introduction to Oracle9i: SQL1 Chapter 1 Overview of Database Concepts.
® Microsoft Office 2013 Access Creating a Database.
DATABASE SYSTEMS. DATABASE u A filing system for holding data u Contains a set of similar files –Each file contains similar records Each record contains.
1 Database Systems Introduction to Microsoft Access Part 2.
Course ILT Forms and queries Unit objectives Create forms by using AutoForm and the Form Wizard, and add or modify form headers and footers Open and enter.
Microsoft Office 2003: Advanced 1 ADVANCED MICROSOFT ACCESS Lesson 10 – Analyzing Data.
XP Chapter 3 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Analyzing Data For Effective Decision Making Chapter.
Database Management System. DBMS A software package that allows users to create, retrieve and modify databases. A database is a collection of related.
1 MS Access. 2 Database – collection of related data Relational Database Management System (RDBMS) – software that uses related data stored in different.
Information Systems Today: Managing in the Digital World TB3-1 3 Technology Briefing Database Management “Modern organizations are said to be drowning.
INTRODUCTION TO ACCESS. OBJECTIVES  Define the terms field, record, table, relational database, primary key, and foreign key  Create a blank database.
>> Introduction to MySQL. Introduction Structured Query Language (SQL) – Standard Database Language – Manage Data in a DBMS (Database Management System)
Introduction to Django #2Introduction to Django #2 SPARCS `08 서우석 (pipoket) `09 Summer SP ARCS Seminar`09 Summer SP ARCS Seminar.
CS 111 – Nov. 8 Databases Database Management Systems (DBMS) Structured Query Language (SQL) Commitment –Please review sections 9.1 – 9.2.
MSOffice Access Microsoft® Office 2010: Illustrated Introductory 1 Part 1 ® Database & Table.
Build a database II: Create tables for a new Access database Create your tables In a relational database, tables store your data. Your data doesn’t “live”
CS1100: Data, Databases, Queries Action Queries CS11001Advanced Queries.
Adding Reports to a Database. Why do we use Reports? Reports are well-designed printed pages that offer several advantages: Reports are well-designed.
ACCESS CHAPTER 2 Introduction to ACCESS Learning Objectives: Understand ACCESS icons. Use ACCESS objects, including tables, queries, forms, and reports.
Introduction to Core Database Concepts Getting started with Databases and Structure Query Language (SQL)
Introduction to Database Programming with Python Gary Stewart
5/12/  It is a repository where organizations keep their data.  Every org maintains data about its business, its employees, and other relevant.
SQL Introduction SQL stands for “Structured Query Language” and can be pronounced as “SQL” or “sequel – (Structured English.
Microsoft Office Access 2010 Lab 3
Practical Office 2007 Chapter 10
Database application MySQL Database and PhpMyAdmin
SQL Standard Query Language Good for manipulating a Database
What is a Database? A collection of data organized in a manner that allows access, retrieval, and use of that data.
Databases & Consistency
HAVING,INDEX,COMMIT & ROLLBACK
Topic 15 Lesson 1 – Action queries
Updating Databases With Open SQL
Database SQL.
Updating Databases With Open SQL
SQL (Structured Query Language)
Presentation transcript:

Introduction to Django #3Introduction to Django #3 SPARCS `08 서우석 (pipoket) `09 Summer SP ARCS Seminar`09 Summer SP ARCS Seminar SPARCS

▶ You know DatabaseYou know Database Table Row Record Column Attribute DB (Relational DBMS) DB SPARCS

▶ Relational DB FormatRelational DB Format Table Column Row SPARCS

▶ You already have it!You already have it! Your own “Database”! Your own “Format” SPARCS

▶ What if?What if?data(file)data(file) CollisionCollision SPARCS

▶ So we use…So we use…models.py SPARCS

▶ Django = OODBDjango = OODB Student Student.id SPARCS

▶ What`s the difference?What`s the difference? Originally… SELECT id, name, age FROM student WHERE id= SELECT id, name, age FROM student WHERE id= SPARCS

▶ What`s the difference?What`s the difference? In Django… SPARCS from model import student res = student.get(id=“ ”) print res.name from model import student res = student.get(id=“ ”) print res.name

▶Difference! You don`t know SQL You don`t know DBMS Python You only know Python You know python! You know python! OK! SPARCS

▶ Creating TableCreating Table models.py Table is also Object! Making Class == Making Table SPARCS

▶ Creating Table – Field Types Data TypeField Name integerIntegerField() string (length fixed)CharField(max_length=100) string (long length)TextField() datetimeDateTimeField() booleanBooleanField() SPARCS

▶ Notify Django about TableNotify Django about Table SPARCS13 Add your application with models.py settings.py

▶ Adding DataAdding Data Row is also Object! YOU NEED THIS TO SAVE SPARCS

▶ Retrieving dataRetrieving data Getting row object When not found Row == Object !! SPARCS

▶ Modifying dataModifying data Get object to modify Modify and Save! SPARCS

▶ Deleting dataDeleting data Get object to delete Delete! SPARCS

▶Summary Table Define class in models Column Define Fields in class of models Row Create Object with class in models Get Function in class of models Modify Get object, Modify and Save Delete Get object, Call delete function SPARCS

▶Practice Change homework of 2 weeks ago. Make it work with database. ….. Okay, Let`s do it together SPARCS