... 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...
... 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...
... 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...
... – The result of the query will then be stored in form of a table 1 IntroductiontoSQL 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 querylanguage that allows user to specify the conditions (instead of algorithms) IntroductiontoSQL Concept of SQL – The user specifies a certain ... 1 IntroductiontoSQL 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...
... Hansen Svendson Pettersen SQL Data Manipulation Language (DML) SQL (Structured Query Language) is a syntax for executing queries But the SQLlanguage 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,...
... 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...
... (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...
... 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...
... Introduction SQL stands for StructuredQuery Language. ” SQL is a language used to interact with the database SQL is a data access languageSQL 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 SQL SQL commands can be classified in to three types: Data Definition Language commands (DDL) Data Manipulation Language commands (DML) Data Control Language...
... 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...
... 77 Tutorial: StructuredQueryLanguage (SQL) IntroductiontoSQLSQL (Structured Query Language) is a database computer language designed for managing ... declare @customerNumber int select @customerNumber=CustomerNumber from CUSTOMER where CustomerId=2 Tutorial: StructuredQueryLanguage (SQL) 51 SQL Scripts if @customerNumber ... different Designer tools in SQLto help us do the work without coding (so much) Tutorial: StructuredQueryLanguage (SQL) 10 2.1.1 IntroductiontoSQL Server Create...
... 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...
... assembly language and studying related concepts in Introductionto 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,...
... 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ừ StructuredQueryLanguage , 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...
... 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...
... 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 toquery 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: Introductionto Oracle9i™ SQL Study Guide (exam 1Z0-007: Introductionto Oracle9i: SQL) OCA/OCP: Oracle9i™ DBA Fundamentals...
... Oracle9i: SQL or Extended Data Retrieval with SQL SQL1 Introductionto Oracle9i for Experienced SQL Users SQL for End Users inClass inClass inClass Introductionto Oracle9i: PL /SQL PL /SQL Fundamentals ... Preface-6 Curriculum Map Languages Curriculum for Oracle9i Introductionto Oracle9i: SQL SQL1 or Extended Data Retrieval with SQLIntroductionto 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...
... and PL /SQL control statements to process the data Introductionto 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 SQLIntroductionto Oracle9i for Experienced SQL Users SQL for End Users inClass inClass inClass Introductionto Oracle9i: PL /SQL PL /SQL Fundamentals ... performance Introductionto Oracle9i: PL /SQL I-2 About PL /SQL • PL /SQL is the procedural extension toSQL with design features of programming languages • Data manipulation and query statements of SQL...
... Oracle9i: SQL or Extended Data Retrieval with SQL SQL1 Introductionto Oracle9i for Experienced SQL Users SQL for End Users inClass inClass inClass Introductionto Oracle9i: PL /SQL PL /SQL Fundamentals ... Preface-6 Curriculum Map Languages Curriculum for Oracle9i Introductionto Oracle9i: SQL SQL1 or Extended Data Retrieval with SQLIntroductionto 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...