Chapter 6: SQL (Structured Query Language)

bài 4 sql (structured query language)

bài 4 sql (structured query language)

... 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 ... 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 ... ORDER BY ma...
Ngày tải lên : 23/05/2014, 18:24
  • 42
  • 381
  • 0
SQL (Structured Query Language) (tiếp theo) docx

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

... id, name 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 MSSQL dùng “minus” thay “except” EE4509, EE6133 – HK2 2011/2012 ... >= EE4509, EE6133 – HK2 2011/2012 TS Đào Trung Kiên – ĐH Bách khoa Hà Nội Gộp kết   Phép hợp SQL thực cú pháp: select … union select … Chú ý:      Kết phép select phải tương thích với ... E...
Ngày tải lên : 28/06/2014, 05:20
  • 19
  • 248
  • 0
SQL structured query language

SQL structured query language

... 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 ... – 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 c...
Ngày tải lên : 23/10/2014, 18:39
  • 68
  • 362
  • 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)

... NOT NULL Cơ sở liệu - Khoa ĐT-TH - CĐ KTCN-ĐN 44 22 Mệnh đề FROM Không sử dụng mệnh đề WHERE SELECT MANV, MAPHG FROM NHANVIEN, PHONGBAN WHERE TRUE MANV MAPHG 3334 455 55 3334 455 55 3334 455 55 987987987 ... WHERE NGSINH BETWEEN ‘1 955 -12-08’ AND ‘1966-07-19’ ‘1 955 -12-08’ ’12/08/1 955 ’ YYYY-MM-DD ’17:30:00’ MM/DD/YYYY ’ 05: 30 PM’ HH:MI:SS ‘December 8, 1 955 ’ ‘1 955 -12-08 17:30...
Ngày tải lên : 03/12/2015, 01:03
  • 24
  • 235
  • 0
SQL tutorials structured query language

SQL tutorials structured query language

... 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 delete records These query and update ... SQL Queries With SQL, we can query a database and have a result set returned A query like this: SELECT LastName FROM Persons Gives a result set like this: LastName Hansen...
Ngày tải lên : 23/10/2014, 18:39
  • 34
  • 307
  • 0
Chương 3 Structured Query Language Phần 1

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

... MAế SP SO LệễẽNG ẹễN GIA 10 148 20.00 30 .00 16 .50 10 148 20.00 22.00 44.00 10 150 10 .00 16 .50 10 156 20.00 68.75 10 148 8 03 10 150 1 13 3 10 156 68.75 13 . 20 10 150 TONGTG 2.20 10 148 MAế Hẹ Select Mahd, ... mi l 31 0 Update Nhanvien Set Chucvu = qunlý , Luong = 31 0 Where Manv = 10 1 Lnh Delete Xúa mt hay nhiu b mt bng Cỳ phỏp: DELETE [FROM] tờnbng [WHERE iukin] Vd1:...
Ngày tải lên : 12/05/2014, 11:52
  • 40
  • 416
  • 0
Chương 3 Structured Query Language Phần 2

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

... nvarchar (30 ) NULL, DIACHI nvarchar(40) NULL, THANHPHO nvarchar(50) NOT NULL, DIENTHOAI nvarchar(50) NULL ) Tạo cấu trúc bảng CREATE TABLE NHANVIEN ( MANV int NOT NULL, HONV nvarchar (20 ) NULL, ... NOT NULL, DIENTHOAI nvarchar( 13) NULL, CONSTRAINT PK_NHANVIEN PRIMARY KEY (MANV) ) Tạo cấu trúc bảng CREATE TABLE SANPHAM ( MASP tinyint NOT NULL, TENSP nvarchar (20 ) NULL, DVT nvarchar(10) NUL...
Ngày tải lên : 12/05/2014, 11:52
  • 16
  • 294
  • 0
Structured Query Language

Structured Query Language

... ascending order Range Queries Using BETWEEN Subquery    Subquery is query within a query A SELECT statement can be nested inside another query to form a subquery A subselect can be used in WHERE and ... 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 relat...
Ngày tải lên : 12/05/2014, 11:55
  • 50
  • 339
  • 0
Structured query language

Structured query language

...  77     Tutorial: Structured Query Language  (SQL)       Introduction  to  SQL   SQL   (Structured Query Language)  is  a  database  computer language  designed  for  managing ... Tutorial: Structured Query Language  (SQL)   15     CREATE  TABLE     Below  we  see  the  same  tables  inside  the  design  tool  in  SQL  Server       Tutorial: Structured Query Language ... Customer...
Ngày tải lên : 22/10/2014, 16:49
  • 78
  • 600
  • 0
SQL  the query language

SQL the query language

... that the answer does not change – Internal cost model drives use of indexes and choice of access paths and physical operators The SQL Query Language • The most widely used relational query language ... involved than HW Relational Query Languages • A major strength of the relational model: supports simple, powerful querying of data • Two sublanguages: • DDL – Data Defn La...
Ngày tải lên : 23/10/2014, 18:38
  • 58
  • 335
  • 0
Bài 4 Structured Query Language  Phần 1

Bài 4 Structured Query Language Phần 1

... 15 :58:33. 247 NULL 22 2 011 -11 -18 15 :58:33. 247 NULL 23 2 011 -11 -18 15 :58:33. 247 NULL 24 2 011 -11 -18 15 :58:33. 247 NULL 25 2 011 -11 -18 15 :58:33. 247 NULL 26 2 011 -11 -18 15 :58:33. 247 NULL 27 2 011 -11 -18 15 :58:33. 247 ... 'EmotionImages' 1> 2> 3> select I_ID, I_CreatedDate, Emo from Images where I_ID >= 20 4> go I_ID I_CreatedDate Emo - - -20 2 011 -11 -18 15 :5...
Ngày tải lên : 07/03/2015, 10:14
  • 24
  • 214
  • 0
Bài 5 Structured Query Language Phần 2

Bài 5 Structured Query Language Phần 2

... rand(),…  Ví dụ:    select sqrt (5) + power(40, 5) ; update Product set price = price * (1 + ln (2) ) where category = 'laptop'; EE 450 9, EE4 25 3 , EE6133 – HK1 20 13 /20 14 TS Đào Trung Kiên – ĐH Bách ... (quan hệ Author) sinh trước năm 1 950  12 select * from Song where author_id in ( select id from Author where dob < '1 950 -01-01'); EE 450 9, EE4 25 3 , EE6133 – HK1 20 13 /20 1...
Ngày tải lên : 07/03/2015, 10:20
  • 19
  • 142
  • 0
Chapter 6 - LINQ to SQL

Chapter 6 - LINQ to SQL

... LINQ to Relational Data • LINQ to DataSet – Leveraging the existing investment • LINQ to SQL – Designer-generated mapping – Custom mapping, ORM facilities • LINQ to Entities – VS2008 ... Software & Education Labs Ltd 1 4-1 8 Baruch Hirsch St Bnei Brak 51202 Israel Mapping Data to Objects • LINQ to Objects: – Data = objects LINQ to SQL is an • LINQ to SQL:...
Ngày tải lên : 12/01/2013, 16:18
  • 46
  • 419
  • 0

Xem thêm