본문 바로가기

쿼리3

Structured Query Language SQL data manipulation language (DML) SELECT, FROM, WHERE NULL values Set operations String operations, ordering Aggregate functions, aggregation → querying && modifying the databases Aggregate Functions - Having Clause groups뒤에 오는 HAVING과 groups 앞에 있는 HAVING이 다름. 두 개는 다른 쿼리이다. 왼쪽에 있는 것은 GROUP BY 를 한 instructor중에서 65000이 넘는 교수 오른쪽은 65000이 넘는 instructor를 찾아서 평균을 낸 것. 따라서 더 높음. More SQL Nested subq.. 2023. 10. 27.
MySQL과 명령어 Functinality Massive, Convenient, Multi-user, Safe, Efficient, Reliable safe; transaction Structured Query Language(SQL) SQL : Structured Query Language principal language describe and manipulate relational databases Very high-level c, java, basic보다 high level이다. what to do >> how to doo not specifying data-manipulation details DBMSs figure out the'best' way to execute queries query optimizatito.. 2023. 10. 27.
Relational Algebra Relational algebra Select Project Cartesian product Join Rename Union Set-intersection Set-difference Operands and Operators Operands: 변수나 값. (새로운 값을 구성할 수 있는) 3, a, 4, d Operators: 절차를 나타내는 기호 (지정된 operands에서 새 값을 구성하는) add, sub, mult, div Relational Algebra operations 들의 집합을 포함하는 절차적인 언어 하나 혹은 두개의 relations을 input으로 갖고 새로운 relation을 output으로 갖는다. Basic operaties Select, Project, Cartesian Prod.. 2023. 10. 26.