Databaser/SQL-Intro1 SQL - introduktion Create Table Select.

Slides:



Advertisements
Similar presentations
A Framework for describing recursive data structures Kenneth Roe Scott Smith.
Advertisements

The following 5 questions are about VOLTAGE DIVIDERS. You have 20 seconds for each question What is the voltage at the point X ? A9v B5v C0v D10v Question.
MICI: classification et nosologie le point de vue du clinicien
Item 7A Ordinance No. 953, 1 st Reading, Adopt Illicit Discharge Ordinance.
1 Introduction
GRAPHS Prof. Muhammad Saeed Analysis of Algorithms Analysis Of Algorithms1.
NA-MIC National Alliance for Medical Image Computing fMRI Data Analysis Sonia Pujol, Ph.D. Wendy Plesniak, Ph.D. Randy Gollub, M.D.,
DB glossary (focus on typical SQL RDBMS, not XQuery or SPARQL)
Block 1 Overview Rubén Oscar González Air Navigation Commissioner
Blocks 2 & 3 Overview Samuli Vuokila Air Navigation Commissioner
Metro Region Lidar Project Peter Jenkins Minnesota Department of Transportation 1/13/2011.
(NH/ 15 N) (ppm) Peptide II Peptide I Peptide III Peptide IV Peptide V Efb residues A29 – R165 Figure 3.10 Chemical shift perturbation of Efb upon titration.
CONSTRUCTION DE LA SPIRALE DOR. Construire un rectangle dor L1 = 18,3 cm l 1 = 11,3 cm.
The 12 Lead ECG in Acute Coronary Syndromes
Denise Sakai Troxell (2000) Solving Equations with Excel Solver for Microsoft Excel 2000.
314 th Log Cabin Dismantle Schematics & Inventory November 2012.
Practice for SQL and Constraints (Product-PC-Laptop-Printer)
SQL. More than 100 DBMS support SQL –Used by DBAs and application programmers –Structured Query Language or SEQUEL –ORACLE-> relation database based on.
Interpretation of Gas Delivery Diagrams. Gas delivery diagram symbolsgas panel 1 right side.
Roghibin's blog EQUILIBRIUM OF RIGID BODIES KESETIMBANG AN BENDA TEGAR.
2009NOEA/IT - Databaser/VWiSOL1 VW i SQL. 2009NOEA/IT - Databaser/VWiSOL2 VW i SQL 1: select navn from lev where lby = 'berlin' 2: select model from bil.
Denise Sakai Troxell (2000) Solving Equations with Goal Seek for Microsoft Excel 2000.
I.R. Intro1 Dave Inman South Bank University, London SE1 0AA, UK +44 (0) Introduction to Information Retrieval An overview of.
Backward Checking Search BT, BM, BJ, CBJ. An example problem Colour each of the 5 nodes, such that if they are adjacent, they take different colours 12.
20S Applied Math Mr. Knight – Killarney School Slide 1 Unit: Spreadsheets Lesson: SS-L4 Creating Spreadsheet Formulas Creating Spreadsheet Formulas Learning.
Boolean Satisfiability The most fundamental NP-complete problem, and now a powerful technology for solving many real world problems.
Boolean Satisfiability
Compass Practice B Algebra Test. B1.Which of these is the product of (a + 2b) and (c - d)?  A.ac + ad + bc - 2bd  B.ac - ad + bc - 2bd  C.ac - ad +
Permutations - Arrangements Working out the number of elements in a sample space without having to list them IntroductionIntro ExerciseFactorials Factorial.
Kieran O’Halloran Corpus-assisted literary evaluation.
Deployment Board Introduction David Kelsey 29 Oct 2004
Manipulation of Query Expressions. Outline Query unfolding Query containment and equivalence Answering queries using views.
HIMSS/RSNAParticipant Workshop, Oct 2004 Nuclear Medicine Image (NM) Integration Profile Kevin O’Donnell IHE Radiology Technical Committee Member, Toshiba.
1 On c-Vertex Ranking of Graphs Yung-Ling Lai & Yi-Ming Chen National Chiayi University Taiwan.
“Why are there so many ‘flavours’ of Christianity?”
A comparison of the Geo-Stellar Fingerprints of the three Orion Belt Stars with the three stars that form the wings of the Cygnus Constellation. © Scott.
GCSE Sawston VC Gary Whitton – Head of Science.
The Topology of Graph Configuration Spaces David G.C. Handron Carnegie Mellon University
Temi Avanzati di Intelligenza Artificiale - Intro1 Temi Avanzati di Intelligenza Artificiale Prof. Vincenzo Cutello Department of Mathematics and Computer.
Standardization & Interpretation of ECG
Overview of the BLM families at collimators Matti Kalliokoski Joint CWG/BLMTWG Meeting 25/08/2014.
CS 253: Algorithms Chapter 22 Graphs Credit: Dr. George Bebis.
Backward Checking Search BT, BM, BJ, CBJ. An example problem Colour each of the 5 nodes, such that if they are adjacent, they take different colours.
Blackbox Reductions from Mechanisms to Algorithms.
Pure and Bayes-Nash Price of Anarchy for GSP Renato Paes Leme Éva Tardos CornellCornell & MSR.
Graphs CSE 331 Section 2 James Daly. Reminders Homework 4 is out Due Thursday in class Project 3 is out Covers graphs (discussed today and Thursday) Due.
MCA 202: Discrete Mathematics Instructor Neelima Gupta
Overheads for Computers as Components
Target code Generation Made by – Siddharth Rakesh 11CS30036 Date – 12/11/2013.
SATISFIABILITY Eric L. Frederich.
SQL Keys and Constraints Justin Maksim. Key Declaration Key constraint defined within the CREATE TABLE command Key can be declared using either the PRIMARY.
Databases in Visual Studio. Database in VisualStudio An MS SQL database are built in Visual studio The Name can be something like ”(localdb)\Projects”
PLUG IT IN 3 Fundamentals of Relational Database Operations.
SQL Basics. 5/27/2016Chapter 32 of 19 Naming SQL commands are NOT case sensitive SQL commands are NOT case sensitive But user identifier names ARE case.
SQL: DDL. SQL Statements DDL - data definition language –Defining and modifying data structures (metadata): database, tables, views, etc. DML - data manipulation.
1 DBS201: More on SQL Lecture 3. 2 Agenda How to use SQL to update table definitions How to update data in a table How to join tables together.
SE305 Database System Technology 25/09/2014 Quiz-1.
SQL constrains and keys. SORTED RESULTS Sort the results by a specified criterion SELECT columns FROM tables WHERE predicates ORDER BY column ASC/DESC;
Oracle Developer. Create Table SQL> create table catalog ( 2 cno varchar2(7), 3 ctitle varchar2(50), 4 primary key (cno)); Table created. SQL> describe.
Quiz Which of the following is not a mandatory characteristic of a relation? Rows are not ordered (Not required) Each row is a unique There is a.
 MySQL  DDL ◦ Create ◦ Alter  DML ◦ Insert ◦ Select ◦ Update ◦ Delete  DDL(again) ◦ Drop ◦ Truncate.
MS SQL Create Table Cust USE jxc00 GO CREATE TABLE cust ( cust_id smallint IDENTITY(1,1) NOT NULL, cust_name char(10)
Design a Relational Database Identify Database Purpose
For student, require values for name and address.
DATABASE SQL= Structure Query Language مبادئ قواعد بيانات
SQL Code for Byrnetube video
Rob Gleasure robgleasure.com
Turn on spool and save to file a.txt
កម្មវិធីបង្រៀន SQL Programming ជាភាសាខ្មែរ Online SQL Training Course
SQL AUTO INCREMENT Field
Presentation transcript:

Databaser/SQL-Intro1 SQL - introduktion Create Table Select

Databaser/SQL-Intro2 Eksempel – VW-Databasen Lev:[lnr,navn,lby,status] Vare:[vnr, betegn,vaegt,varegr] Bil:[bnr, model,fabrik] Lvb:[lnr,vnr,bnr, kvantum]

Databaser/SQL-Intro3 bnrmodelfabrik b1golfstuttgart b2passatmunchen b3poloberlin b4jettaberlin b5derbywolfsburg b6audi 80Augustburg b7audi 100wolfsburg lnrnavnlbystatus l1møllerwolfsburg7 l2schmidtstuttgart2 l3hansenstuttgart3 l4Manwolfsburg7 l5Dohrmanberlin3 lnrvnrbnrkvantum l1v1b l1v1b44000 l2v3b l2v3b25000 l2v3b l2v3b l2v3b58000 l2v3b66000 l2v3b74000 l2v5b2600 l3v3b11400 l3v4b2800 l4v6b33000 l4v6b72000 l5v1b l5v2b22000 l5v2b48000 l5v3b41500 l5v4b42500 l5v5b41600 l5v5b51400 l5v5b71800 l5v6b29000 l5v6b4200 vnrbetegnvaegtvaregr V1møtrik11 v2Motorblok387 v3Stempel12 v4dørplade143 v5bremserør16 v6krumtap37 Data

Databaser/SQL-Intro4 SQL: CREATE TABLE create table lev( lnr varchar(5)NOT NULL, navn varchar(15) NOT NULL, lbyvarchar(15)NOT NULL, statusintNOT NULL, primary key(lnr) ); create table vare( vnrvarchar(5)NOT NULL, betegnvarchar(15)NOT NULL, vaegtintNOT NULL, varegrintNOT NULL, primary key (vnr) ); create table bil( bnr varchar(5)NOT NULL, model varchar(15)NOT NULL, fabrikvarchar(15)NOT NULL, primary key (bnr) );

Databaser/SQL-Intro5 create table lvb( lnrvarchar(5)NOT NULL, vnrvarchar(5)NOT NULL, bnr varchar(5)NOT NULL, kvantumintNOT NULL, primary key(lnr,vnr,bnr), foreign key(lnr) references lev(lnr), foreign key(vnr) references vare(vnr), foreign key(bnr) references bil(bnr) );

Databaser/SQL-Intro6 SQL – række- /søjleudvælgelse Rækkeudvælgelse: select * from where select * from lev where status>2 Søjleudvælgelse: select sølje1,sølje2,… from select navn, lby from lev

Databaser/SQL-Intro7 SQL – operationerne kan kombineres: select navn, lby from lev where status>2

Databaser/SQL-Intro8 SQL - Join Join: select * from, where select * from lev,lvb where lev.lnr=lvb.lnr

Databaser/SQL-Intro9 select navn, lby, vnr from lev,lvb where lev.lnr=lvb.lnr and bnr='b1' Bemærk: strenge i enkelt ’plinger’ – ikke anførselstegn SQL – operationerne kan kombineres:

Databaser/SQL-Intro10 Øvelser VW-Databasen