Database 2.

Slides:



Advertisements
Similar presentations
Course Form In the main window (cf. Figure 2), click on Forms, then double-click on Create form by using wizard. Follow the sequence of actions below.
Advertisements

Course ILT Working with related tables Unit objectives Use the Lookup Wizard to create a lookup field and a multivalued field Modify lookup field properties.
Data Base. Objective Become familiar with database terminology. Create a project to display data for a single database table. Use a DataGrid control.
Stored procedures and views You can see definitions for stored procedures and views in the demo databases but you can’t change them. For views, expand.
Microsoft SQL Server 2008 From the Program menu choose: Microsoft SQL Server 2008 R2  SQL Server Management Studio. You may see a window indicating the.
Chapter 18 - Data sources and datasets 1 Outline How to create a data source How to use a data source How to use Query Builder to build a simple query.
Queries Help Topics Using the Access 2007, you can press the F1 to pop up the help windows, where you can search the following topics to help to generate.
Creating And Maintaining A Database. 2 Learn the guidelines for designing databases When designing a database, first try to think of all the fields of.
Chapter Extension 6 Using Microsoft Access © 2008 Pearson Prentice Hall, Experiencing MIS, David Kroenke.
® IBM Software Group © 2006 IBM Corporation The Eclipse Data Perspective and Database Explorer This section describes how to use the Eclipse Data Perspective,
Using ER/Studio.
Define Table Relationships—1 of 3 One of the most powerful features of a relational database management system, such as Access, is its ability to define.
Santosh Ghimire – 066BCT533 Subit Raj Pokharel – 066BCT538 Sudip Kafle – 066BCT539.
Databases and LINQ Visual Basic 2010 How to Program 1.
 The BPEL Module project is a group of source files which includes BPEL files, WSDL files, and XML schema files. Within a BPEL Module project, you can.
Threats Database V4 Model Geodatabase Relation Class Creation and Data Population June 25, 2007 Marlene McKinnon, GIS Specialist.
Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form.
1 Databound Controls. 2 Objectives You will be able to use design time data binding to display and update SQL Server database data without writing any.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 1 Microsoft Office Access 2003 Tutorial 2 – Creating And Maintaining A.
© 2002 by Prentice Hall 1 Database Processing with Microsoft Access David M. Kroenke Database Concepts 1e Appendix A.
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.
Database Processing with Microsoft Access Appendix DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
Using Microsoft Access Now that data has been entered we are ready to sort or data To do this, first click on the field label which you want to sort If.
Using COMET with Visio Visio UML Modeling. Creating a Drawing After opening Visio, you will see a list of templates available.
1 Chapter 20 – Data sources and datasets Outline How to create a data source How to use a data source How to use Query Builder to build a simple query.
Exploring Microsoft Access Chapter 5 One-to-Many Relationships: Subforms and Multiple Table Queries.
CSCI 3327 Visual Basic Chapter 13: Databases and LINQ UTPA – Fall 2011.
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”
Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form.
Backup Tables in SQL Server. Backup table method Cape_Codd database is used in this example 1.Righ click the database that contains the table you want.
CS 281 – Fall 2010 Lab 4 Parametric Query and Forms in MS Access.
Creating SQL Database file And Displaying a Database Table in a DataGridView.
Decision Analysis Fall Term 2015 Marymount University School of Business Administration Professor Suydam Week 10 Access Basics – Tutorial B; Introduction.
How To Start a SQL server Connecting to SQL Server.
1 Database Systems Introduction to Microsoft Access Part 1.
Common SQL keywords. Building and using CASE Tools Data Base with Microsoft SQL-Server and C#
Access Tutorial 2 Building a Database and Defining Table Relationships
Creating Data Base & Sql Data Source
Visual Basic 2010 How to Program
VB 2010 Pertemuan 10.
Creating an ERD in SQL Server
Access Tutorial 1 Creating a Database
COP 4540 Database Management
Basic Database Concepts
Introduction to Microsoft Access
Exploring Microsoft Access 2003
MSSQL Server management
SQL MODELER - OPEN There are Three Ways to open the SQL Modeler
Access Creating a Database
Access Project 8 Using Visual Basic for Applications (VBA) and Creating Multi-Page Forms.
Access Creating a Database
Access queries p.meade.
Access Tutorial 1 Creating a Database
Index Structure.
Lecturer: Yong Liu Contact me at:
CIS16 Application Programming with Visual Basic
CIS16 Application Programming with Visual Basic
Microsoft Office Access 2003
Access Tutorial 2 Building a Database and Defining Table Relationships
Creating Data Base & Sql Data Source
Adding Multiple Logical Table Sources
Creating a Master-Detail Form
Access Tutorial 2 Building a Database and Defining Table Relationships
Access Tutorial 1 Creating a Database
ASP.NET Relationships between tables
Exploring Microsoft Access 2003
Access Tutorial 1 Creating a Database
Tutorial 9 Using Action Queries and Advanced Table Relationships
Data Base.
Presentation transcript:

Database 2

Create relationship using Foreign Keys Relationship between tables using foreign keys Open a windows form app named Form1 Make foreign keys Choose the table from foreign server explorer Go to foreign key and add a foreign key  Give it a name FK1 ----> a code will be shown Go to code  Constraint [FK1 ] Foreign key [studentid] References [student]  [studentID]  Add another key as a foreign key to get composite key  Constraint [FK2 ] Foreign key [courseid] References [course]  [courseID]  Update ----> update data base

2- Generating queries Go to form Go to dataset Double click on dataset ---> a window will open Right click on this window -----> choose add ----> table add option -----> wizard will open -----> click next ----> generate query Go to tables ----> query builder. -----> add tables you want by choosing them. -----> choose from each table the attributes you want -----> the query will be automatically created -----> click ok ----->next -----> next -----> finish

Adding tables to data source Open your windows form (already created ) Go to view ----> open data source Data source -----> right click -----> configure data source with wizard -----> click wizard option ----> include tables ----> click finish