0

introduction to structured query language sql

Chương 2 SQL (Structured Query Language)

Chương 2 SQL (Structured Query Language)

Cao đẳng - Đại học

... HCSDL 37 Subquery với to n tử so sánh To n tử so sánh phức (Modified Comparison operators) to n tử so sánh đơn giản có kèm theo từ All, any hay some ( =to n tử s/sánh+ [All,Any,some]) Subquery bắt ... expression [NOT] IN (subquery) WHERE expression comparison_operator [ANY | ALL] (subquery) WHERE [NOT] EXISTS (subquery) 35NN HCSDL 35 Subqueries với to n tử IN Kết subquery dùng với IN (hay với ... products where categoryid=2 Select distinct c.customerid, c.companyname into newcustomers From customer as c inner join orders on c.customerid=order.customerid where orders.employeeid=2 NN HCSDL 42...
  • 44
  • 347
  • 0
bài 4 sql (structured query language)

bài 4 sql (structured query language)

Kỹ thuật lập trình

... TRƯỜNG ĐẠI HỌC KHOA HỌC TỰ NHIÊN TP.HCM TRUNG TÂM TIN HỌC SQL (STRUCTURED QUERY LANGUAGE) TRƯỜNG ĐẠI HỌC KHOA HỌC TỰ NHIÊN TP.HCM TRUNG TÂM TIN HỌC Lệnh truy vấn liệu ... phép to n biểu thức Tạo biểu thức với kiểu liệu số ngày phép to n số học To n tử Mô tả + Cộng - Trừ * Nhân / Chia 10 TRƯỜNG ĐẠI HỌC KHOA HỌC TỰ NHIÊN TP.HCM TRUNG TÂM TIN HỌC Sử dụng phép to n ... TRUNG TÂM TIN HỌC Một số lưu ý viết câu lệnh SQL • • • Câu lệnh SQL không phân biệt chữ hoa, chữ thường • Các mệnh đề khác nên đặt dòng khác Câu lệnh SQL viết nhiều dòng Các từ khóa không viết...
  • 42
  • 381
  • 0
SQL (Structured Query Language) (tiếp theo) docx

SQL (Structured Query Language) (tiếp theo) docx

Cơ sở dữ liệu

... exists ( select id from Invoice where customer = Customer.id); Tương tự:  14 select * from Customer where count ( select id from Invoice where customer = Customer.id) > 0; EE4509, EE6133 – HK2 2011/2012 ... câu lệnh mẹ sử dụng câu lệnh VD:  15 select customer from Borrower where exists ( select * from Depositor where Depositor.customer = Borrower.customer); EE4509, EE6133 – HK2 2011/2012 TS Đào Trung ... khoa Hà Nội To n tử exists    Dùng để kiểm tra tập hợp có rỗng hay không Phủ định dùng “not exists…” Ví dụ: liệt kê khách hàng chưa mua máy tính cửa hàng   select * from Customer where not...
  • 19
  • 248
  • 0
SQL structured query language

SQL structured query language

Cơ sở dữ liệu

... – The result of the query will then be stored in form of a table 1 Introduction to SQL How to involve SQL in FoxPro – Before using SQL, the tables should be opened – The SQL command can be entered ... information with a certain condition – SQL is a query language that allows user to specify the conditions (instead of algorithms) Introduction to SQL Concept of SQL – The user specifies a certain ... 1 Introduction to SQL What is SQL? – When a user wants to get some information from a database file, he can issue a query – A query is a user–request to retrieve data or information...
  • 68
  • 362
  • 0
SQL tutorials structured query language

SQL tutorials structured query language

Cơ sở dữ liệu

... Hansen Svendson Pettersen SQL Data Manipulation Language (DML) SQL (Structured Query Language) is a syntax for executing queries But the SQL language also includes a syntax to update, insert, and ... database table •INSERT INTO - inserts new data into a database table SQL Data Definition Language (DDL) The Data Definition Language (DDL) part of SQL permits database tables to be created or deleted ... call to the server Some SQL tutorials end each SQL statement with a semicolon Is this necessary? We are using MS Access and SQL Server 2000 and we not have to put a semicolon after each SQL statement,...
  • 34
  • 307
  • 0
Bài giảng cơ sở dữ liệu   chương 5  SQL (structured query language)

Bài giảng cơ sở dữ liệu chương 5 SQL (structured query language)

Cơ sở dữ liệu

... thành chuẩn y SQL- 86 y SQL- 92 y SQL- 99 Cơ sở liệu - Khoa ĐT-TH - CĐ KTCN-ĐN Giới thiệu (tt) ƒ SQL gồm - Định nghĩa liệu (DDL) - Thao tác liệu (DML) - Định nghĩa khung nhìn - Ràng buộc to n vẹn - ... Giới thiệu ƒ Ngôn ngữ ĐSQH - Cách thức truy vấn liệu - Khó khăn cho người sử dụng ƒ SQL (Structured Query Language) - Ngôn ngữ cấp cao - Người sử dụng cần đưa nội dung cần truy vấn - Được phát ... mật - Điều khiển giao tác ƒ SQL sử dụng thuật ngữ - Bảng ~ quan hệ - Cột ~ thuộc tính - Dòng ~ Cơ sở liệu - Khoa ĐT-TH - CĐ KTCN-ĐN Lý thuyết : Chuẩn SQL- 92 Ví dụ : SQL Server Nội dung chi tiết...
  • 24
  • 235
  • 0
Chương 3 Structured Query Language Phần 1

Chương 3 Structured Query Language Phần 1

Cao đẳng - Đại học

... (Data Control Language) Phõn quyn ngi dựng Gii thiu Trong mt s DBMS, SQL c m rng tng kh nng lp trỡnh th tc T -SQL MS SQL Server cho phộp dựng cu trỳc iu khin, bin cc b, cursor To cỏc procedure, ... l DBMS Gii thiu SQL bao gm cỏc phn : DDL (Data Definition Language) nh ngha Database nh ngha cu trỳc Bng nh ngha rng buc ton nh ngha khung nhỡn DML (Data Manipulation Language) Truy d ... logic, xỏc nh cỏc b s c chn : Cỏc ct nm bng cú mnh From Cỏc to n t so sỏnh, to n t logic And, Or, Not, túan t Between Cỏc to n t khỏc : Like, in, Lnh Select - Mnh Where Vd1: Hin th cỏc...
  • 40
  • 416
  • 0
Chương 3 Structured Query Language Phần 2

Chương 3 Structured Query Language Phần 2

Cao đẳng - Đại học

... Definition Language)      Định nghĩa Database Định nghĩa cấu trúc Bảng Định nghĩa ràng buộc to n vẹn Định nghĩa khung nhìn Tham khảo lệnh môi trường SQL Server Tạo Database Trong SQL Server ... SANPHAM ( MASP tinyint NOT NULL, TENSP nvarchar(20) NULL, DVT nvarchar(10) NULL, DONGIA real NULL, Tonkho bit ) Go ALTER TABLE SANPHAM ADD CONSTRAINT PK_SANPHAM PRIMARY KEY(MASP) Go Tạo cấu trúc ... xóa, sửa liệu thông qua view Mục đích:    Che dấu tính phức tạp liệu Cung cấp chế đảm bảo an to n liệu Tăng hiệu thực thi Khung nhìn – View Tạo View Cú pháp : CREATE VIEW tênview [dscột] AS...
  • 16
  • 294
  • 0
Structured Query Language

Structured Query Language

Cao đẳng - Đại học

... Introduction        SQL stands for Structured Query Language. ” SQL is a language used to interact with the database SQL is a data access language SQL is based on relational ... string datatype to store characters, number datatype to store numerical value, and date and time datatype to store when the event happened (history, date of birth, etc.) Datatypes in SQL  Char CHAR ... database language Commands in SQLSQL commands can be classified in to three types:       Data Definition Language commands (DDL) Data Manipulation Language commands (DML) Data Control Language...
  • 50
  • 339
  • 0
Chapter 1 Introduction to the C Language

Chapter 1 Introduction to the C Language

Cao đẳng - Đại học

... operators and operands (variables or literal values) – Example: x = * (a + b) • Operators: – – – – – Mathematical operators: +, -, *, /, % Increment and decrement operators: ++, -Assignment operators: ... entry to open the file where the problem occurs, and move to the error location 17 The Toolbox • Contains reusable controls • Visual programming allows ‘drag and drop’ of controls • Activate the toolbox ... the languages included in the NET Framework – C# is an object-oriented programming language • Applications you can write with C# – – – – Windows applications Web applications Web services • Tools...
  • 66
  • 991
  • 0
Structured query language

Structured query language

Cơ sở dữ liệu

...    77     Tutorial: Structured Query Language   (SQL)       Introduction to SQL   SQL   (Structured Query Language)  is  a  database  computer language  designed  for  managing ... declare @customerNumber int select @customerNumber=CustomerNumber from CUSTOMER where CustomerId=2 Tutorial: Structured Query Language   (SQL)   51     SQL  Scripts     if @customerNumber ...  different  Designer  tools  in SQL to  help  us  do  the  work  without   coding  (so  much)   Tutorial: Structured Query Language   (SQL)   10   2.1.1   Introduction to SQL  Server     Create...
  • 78
  • 600
  • 0
Beginners introduction to the assembly language of ATMELAVRMicroprocessors

Beginners introduction to the assembly language of ATMELAVRMicroprocessors

Kỹ thuật lập trình

... Main ; Reset vector reti ; Int vector reti ; Int vector reti ; Int vector reti ; Int vector reti ; Int vector reti ; Int vector reti ; Int vector reti ; Int vector reti ; Int vector ; ; ============================================ ... you want to use interrupts Click Update to fill the window with your code frame Click CopyToClipboard , if you want to paste this code into your code editor, or WriteToFile to write this to an assembler ... instructions to react to such an interrupt have to be placed to the proper vector location If you use interrupts, the first code, at the reset vector, must be a jump instruction, to jump over...
  • 77
  • 638
  • 2
introduction to 80x86 assembly language and computer architecture (2001)

introduction to 80x86 assembly language and computer architecture (2001)

Kỹ thuật lập trình

... assembly language and studying related concepts in Introduction to 80x86 Assembly Language and Computer Architecture prepares the student to program effectively in any programming language, to pursue ... From decimal to binary? From binary to hex? From hex to binary? We’ll show how to these conversions manually, but often the easiest way is to use a calculator that allows numbers to be entered ... difficult to read A calculator isn’t needed to convert a hexadecimal number to its equivalent binary form In fact, many binary numbers are too long to be displayed on a typical calculator Instead,...
  • 513
  • 623
  • 1
Bài 4 Structured Query Language  Phần 1

Bài 4 Structured Query Language Phần 1

Tư liệu khác

... Nội Ví dụ với MySQL C:\Program Files\MySQL\MySQL Server 5.5\bin>mysql -u thivien -p Enter password: ************ Welcome to the MySQL monitor Commands end with ; or \g Your MySQL connection id ... ngữ Sequel từ năm 1970 Năm 1986, ANSI ISO thông qua chuẩn SQL- 86 Mới nhất: SQL: 2008 Mặc dù viết tắt từ Structured Query Language , SQL bao gồm ngôn ngữ mô tả (DDL) thao tác (DML)  EE4509, EE4253, ... – ĐH Bách khoa Hà Nội Ví dụ với SQL Server C:\>sqlcmd -S localhost\SQLEXPRESS -U smartrobot -P smartrobot 1> use EmotionImages 2> go Changed database context to 'EmotionImages' 1> 2> 3> select...
  • 24
  • 214
  • 0
Bài 5 Structured Query Language Phần 2

Bài 5 Structured Query Language Phần 2

Cao đẳng - Đại học

... exists ( select id from Invoice where customer = Customer.id); Tương tự:  14 select * from Customer where count ( select id from Invoice where customer = Customer.id) > 0; EE4509, EE4253, EE6133 ... câu lệnh mẹ sử dụng câu lệnh VD:  15 select customer from Borrower where exists ( select * from Depositor where Depositor.customer = Borrower.customer); EE4509, EE4253, EE6133 – HK1 2013/2014 ... from Employee where level = )); Chú ý:   11 Trong MySQL không hỗ trợ “intersect” “except”, mà phải dùng câu lệnh lồng (dùng to n tử “in”) MSSQL dùng “minus” thay “except” EE4509, EE4253, EE6133...
  • 19
  • 142
  • 0
Sybex - OCP Introduction to Oracle9i SQL Study Guide

Sybex - OCP Introduction to Oracle9i SQL Study Guide

Cơ sở dữ liệu

... extension of SQL, and SQLJ allows embedded SQL operations in Java code The scope of this test includes only SQL The SQL SELECT statement is used to query data from the databasestorage structures, ... ='direct' THEN INTO direct_orders (customer_id, sales_rep_id, order_total) VALUES (customer_id, sales_rep_id, order_total) WHEN order_mode in ('online','direct') THEN INTO direct_orders (customer_id, ... offers several study guides to help you achieve these certifications: OCA/OCP: Introduction to Oracle9i™ SQL Study Guide (exam 1Z0-007: Introduction to Oracle9i: SQL) OCA/OCP: Oracle9i™ DBA Fundamentals...
  • 548
  • 528
  • 0
Introduction to Oracle9i: SQL

Introduction to Oracle9i: SQL

Cơ sở dữ liệu

... Oracle9i: SQL or Extended Data Retrieval with SQL SQL1 Introduction to Oracle9i for Experienced SQL Users SQL for End Users inClass inClass inClass Introduction to Oracle9i: PL /SQL PL /SQL Fundamentals ... Preface-6 Curriculum Map Languages Curriculum for Oracle9i Introduction to Oracle9i: SQL SQL1 or Extended Data Retrieval with SQL Introduction to Oracle9i for Experienced SQL Users SQL for End Users ... PL /SQL Fundamentals and Develop PL /SQL Program Units PL /SQL Fundamentals covers PL /SQL basics including the PL /SQL language structure, flow of execution and interface with SQL Develop PL/SQL...
  • 442
  • 384
  • 0
Introduction to Oracle9i : PL/SQL

Introduction to Oracle9i : PL/SQL

Kỹ thuật lập trình

... and PL /SQL control statements to process the data Introduction to Oracle9i: PL /SQL I-3 PL /SQL Environment PL /SQL engine PL /SQL block PL /SQL block PL /SQL SQL Procedural statement executor SQL statement ... Oracle9i: SQL SQL1 or Extended Data Retrieval with SQL Introduction to Oracle9i for Experienced SQL Users SQL for End Users inClass inClass inClass Introduction to Oracle9i: PL /SQL PL /SQL Fundamentals ... performance Introduction to Oracle9i: PL /SQL I-2 About PL /SQL • PL /SQL is the procedural extension to SQL with design features of programming languages • Data manipulation and query statements of SQL...
  • 330
  • 428
  • 1
Tài liệu Introduction to oracle 9i : SQL ppt

Tài liệu Introduction to oracle 9i : SQL ppt

Cơ sở dữ liệu

... Oracle9i: SQL or Extended Data Retrieval with SQL SQL1 Introduction to Oracle9i for Experienced SQL Users SQL for End Users inClass inClass inClass Introduction to Oracle9i: PL /SQL PL /SQL Fundamentals ... Preface-6 Curriculum Map Languages Curriculum for Oracle9i Introduction to Oracle9i: SQL SQL1 or Extended Data Retrieval with SQL Introduction to Oracle9i for Experienced SQL Users SQL for End Users ... PL /SQL Fundamentals and Develop PL /SQL Program Units PL /SQL Fundamentals covers PL /SQL basics including the PL /SQL language structure, flow of execution and interface with SQL Develop PL/SQL...
  • 442
  • 492
  • 0

Xem thêm