Teanga Struchtúrtha Iarratas

Slides:



Advertisements
Similar presentations
Query Methods (SQL). What is SQL A programming language for databases. SQL (structured Query Language) It allows you add, edit, delete and run queries.
Advertisements

Basic SQL Introduction Presented by: Madhuri Bhogadi.
Structure Query Language (SQL) COMSATS INSTITUTE OF INFORMATION TECHNOLOGY, VEHARI.
SQL Language. Introduction to RDBMS Introduction to RDBMS Basic Data Manipulation - Reading Data Basic Data Manipulation - Reading Data Basic Data Manipulation.
Murali Mani SQL DDL and Oracle utilities. Murali Mani Datatypes in SQL INT (or) INTEGER FLOAT (or) REAL DECIMAL (n, m) CHAR (n) VARCHAR (n) DATE, TIME.
Tutorial 5 Multi-table queries. Tutorial 5 objectives Displaying Data from Multiple Tables –[ ]Write SELECT statements to access data from more than one.
DAT702.  Standard Query Language  Ability to access and manipulate databases ◦ Retrieve data ◦ Insert, delete, update records ◦ Create and set permissions.
 SQL stands for Structured Query Language.  SQL lets you access and manipulate databases.  SQL is an ANSI (American National Standards Institute) standard.
Database Management. ICT5 Database Administration (DBA) The DBA’s tasks will include the following: 1. The design of the database. After the initial design,
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.
CpSc 3220 The Language of SQL The Language of SQL Chapters
SQL: DDL. SQL Statements DDL - data definition language –Defining and modifying data structures (metadata): database, tables, views, etc. DML - data manipulation.
Programming in R SQL in R. Running SQL in R In this session I will show you how to: Run basic SQL commands within R.
SQL Structured Query Language 1. Data Definition Language (DDL) is used to manage table and define data structure i.e. CREATE, ALTER, DROP Data Control.
What’s a database? Data stored in a structured format that lends itself to easy manipulation and recall.
SQL Overview Structured Query Language. Description  When Codd first described the theory of relational databases, he asserted that there should be a.
CHAPTER 9 SQL อ. ยืนยง กันทะเนตร คณะเทคโนโลยีสารสนเทศและการสื่อสาร มหาวิทยาลัยพะเยา 1.
Understanding Databases Lesson 6. Objective Domain Matrix Skills/ConceptsMTA Exam Objectives Understanding Relational Database Concepts Understand relational.
1 Announcements Reading for next week: Chapter 4 Your first homework will be assigned as soon as your database accounts have been set up.  Expect an .
INFANL01-3 ANALYSE 3 WEEK 3 March 2015 Institute voor Communication, Media en Informatietechnology.
IS6146 Databases for Management Information Systems Lecture 3: SQL III – The DDL Rob Gleasure robgleasure.com.
 MySQL  DDL ◦ Create ◦ Alter  DML ◦ Insert ◦ Select ◦ Update ◦ Delete  DDL(again) ◦ Drop ◦ Truncate.
You can type your own categories and points values in this game board. Type your questions and answers in the slides we’ve provided. When you’re in slide.
Lec-7. The IN Operator The IN operator allows you to specify multiple values in a WHERE clause. SQL IN Syntax SELECT column_name(s) FROM table_name WHERE.
LEC-8 SQL. Indexes The CREATE INDEX statement is used to create indexes in tables. Indexes allow the database application to find data fast; without reading.
IS232 Lab 9. CREATE USER Purpose: Use the CREATE USER statement to create and configure a database user, which is an account through which you can log.
Standard language for querying and manipulating data Structured Query Language Many standards out there: ANSI SQL, SQL92 (a.k.a. SQL2), SQL99 (a.k.a. SQL3),
SQL SQL Ayshah I. Almugahwi Maryam J. Alkhalifa
PostgreSQL S511.
Rob Gleasure robgleasure.com
MySQL S511.
Database Access with SQL
CS SQL.
Rob Gleasure robgleasure.com
CpSc 3220 The Language of SQL
Insert, Update and the rest…
COP 4540 Database Management
Prepared by : Moshira M. Ali CS490 Coordinator Arab Open University
SQL in Oracle.
CS311 Database Management system
Structured Query Language – The Basics
Bug Catcher 1 Answer: Values!
DATABASE SQL= Structure Query Language مبادئ قواعد بيانات
Paul Jacobs The iSchool University of Maryland Thursday, Oct. 6, 2016
Workbench Data Definition Language (DDL)
DATABASE SQL= Structure Query Language مبادئ قواعد بيانات
SQL Code for Byrnetube video
مقدمة في قواعد البيانات
Introduction To Structured Query Language (SQL)
Database systems Lecture 3 – SQL + CRUD
Péintéireacht 15ú Aois. Masaccio 1401 – 1428 Iodáil / Flórans.
Rob Gleasure robgleasure.com
SQL .. An overview lecture3.
Structured Query Language – The Fundamentals
Ábhair Scoile Réamhobair 1
22:14.
Paul Jacobs The iSchool University of Maryland Thursday, Oct. 5, 2017
Saol na Scoile Is breá liom Gaeilge.
Introduction To Structured Query Language (SQL)
MySQL.
MySQL S511.
Ríomhairí agus an tsochaí
Views Views CREATE VIEW AS Uses for Views.
Éifeachtúlacht algartaim
Instructor: Samia arshad
Structured Query Language Path from Unorganized to Organized….
DATABASE Purpose of database
Ríomhchlárú loighce.
SQL (Structured Query Language)
SQL AUTO INCREMENT Field
Presentation transcript:

Teanga Struchtúrtha Iarratas Teanga Struchtúrtha Iarratas (Structured Query Language)

Bunachar sonraí Bunachar sonraí (Database)

Bunachar sonraí

Bunachar sonraí

Bunachar sonraí ceoil Ainm Ealaíontóir ceoil Bliain Fad (soicindí) Albam Sorry Bieber 2015 180 Purpose Only girl Rihanna 2010 Loud Cheap Thrills Sia 2016 160 This is Acting All that matters 2013 170 Journals Sparks Fly Swift 320 Speak Now The Zone The Weekend 2011 175 The Hunger Games Crazy for you Adele 2008 165 19

Ainm an bunachar sonraí: Ceol Ealaíontóir ceoil Bliain Fad (soicindí) Albam Sorry Bieber 2015 180 Purpose Only girl Rihanna 2010 Loud Cheap Thrills Sia 2016 160 This is Acting All that matters 2013 170 Journals Sparks Fly Swift 320 Speak Now The Zone The Weekend 2011 175 The Hunger Games Crazy for you Adele 2008 165 19

Is bunachar sonraí beaga é Is féidir linn sonraí a baint amach go h-easca Ainm Ealaíontóir ceoil Bliain Fad(soicindí) Albam Sorry Bieber 2015 180 Purpose Only girl Rihanna 2010 Loud Cheap Thrills Sia 2016 160 This is Acting All that matters 2013 170 Journals Sparks Fly Swift 320 Speak Now The Zone The Weekend 2011 175 The Hunger Games Crazy for you Adele 2008 165 19

Cad a tharlíonn má tá 500, 600 nó 1000 amhráin againn? Tá Teanga Struchtúrtha Iarratas (nó SQL i mBearla) ar fáil dúinn.

SELECT Ainm FROM Ceol WHERE Albam = ‘Loud’

SELECT Ealaíontóir ceoil, Bliain FROM Ceol WHERE Fad > 300 Toradh =

SELECT Fad FROM Ceol WHERE Ainm = ‘Only girl’ Toradh =

SELECT * FROM Ceol WHERE Fad < 300 Toradh =

Eagarthóireacht INSERT INTO Ceol VALUES ('Complicated','Lavigne',2000,240,'Lets go'); Ainm Ealaíontóir ceoil Bliain Fad (soicindí) Albam Sorry Bieber 2015 180 Purpose Only girl Rihanna 2010 Loud Cheap Thrills Sia 2016 160 This is Acting All that matters 2013 170 Journals Complicated Lavigne 2000 240 Lets go Sparks Fly Swift 320 Speak Now The Zone The Weekend 2011 175 The Hunger Games Crazy for you Adele 2008 165 19

Eagarthóireacht ALTER TABLE Ceol DROP Albam Ainm Ealaíontóir ceoil Bliain Fad (soicindí) Sorry Bieber 2015 180 Only girl Rihanna 2010 Cheap Thrills Sia 2016 160 All that matters 2013 170 Complicated Lavigne 2000 240 Sparks Fly Swift 320 The Zone The Weekend 2011 175 Crazy for you Adele 2008 165

Eagarthóireacht DELETE * FROM Ceol

Dhá (nó níos mó) bunachar sonraí nasctha le chéile Tábla: “Orders”

Tábla: “Customers”

Is é “CustomerID” an nasc idir na dhá tablaí

INNER JOIN SELECT Orders.OrderID, Customers.CustomerName, Orders.OrderDate FROM Orders INNER JOIN Customers ON Orders.CustomerID = Customers.CustomerID; Ainm Tábla

INNER JOIN SELECT Orders.OrderID, Customers.CustomerName, Orders.OrderDate FROM Orders INNER JOIN Customers ON Orders.CustomerID = Customers.CustomerID; Ainm Colún

INNER JOIN SELECT Orders.OrderID, Customers.CustomerName FROM Orders INNER JOIN Customers ON Orders.CustomerID = Customers.CustomerID;

CREATE CREATE TABLE Daltaí_AG ( ID_Dalta int, Sloinne varchar(255), Ainm varchar(255), Rang varchar(255), Aois int PRIMARY KEY (ID_Dalta) );

Daltaí_AG ID_Dalta Sloinne Ainm Rang Aois

INSERT INTO Daltaí_AG (ID_Dalta, Sloinne, Ainm, Rang ,Aois) VALUES (165, “Ní Suilleabhain”, “Emma”, “N Eabha”, 16); VALUES (476, “O Néill”, “Pól”, “N Eoin”, 17);

Daltaí_AG ID_Dalta Sloinne Ainm Rang Aois 165 Ní Suilleabhain Emma N Eabha 16 476 O Néill Pól N Eoin 17