FileMaker SQL Reference

Similar documents
FileMaker 16 SQL 참조

3 S Q L A n t i p a t t e r n s Trees/intro/parent.sql CREATE TABLE Comments ( comment_id SERIAL PRIMARY KEY, parent_id BIGINT UNSIGNED, comment TEXT

10.ppt

13주-14주proc.PDF

TITLE

5장 SQL 언어 Part II

I T C o t e n s P r o v i d e r h t t p : / / w w w. h a n b i t b o o k. c o. k r

SQL Tuning Business Development DB

歯sql_tuning2

90

단답형 (26 회기출문제 ) 1. 아래와같은테이블이있을때아래의 SQL 결과에대해서 Oracle, SQL Server 순서로적으시오 TAB1 COL1 CHAR(10) COL2 CHAR(10) INSERT INTO TAB1 VALUES ('1',''); INSERT INT

Jerry Held


untitled

@OneToOne(cascade = = "addr_id") private Addr addr; public Emp(String ename, Addr addr) { this.ename = ename; this.a

강의 개요

목차 BUG 문법에맞지않는질의문수행시, 에러메시지에질의문의일부만보여주는문제를수정합니다... 3 BUG ROUND, TRUNC 함수에서 DATE 포맷 IW 를추가지원합니다... 5 BUG ROLLUP/CUBE 절을포함하는질의는 SUBQUE

RDB개요.ppt

FileMaker Pro 15 및 FileMaker Pro 15 Advanced용 설치 및 새로운 기능 설명서

Installation and New Features Guide for FileMaker Pro and FileMaker Pro Advanced

Microsoft Word - [Unioneinc] 특정컬럼의 통계정보 갱신_ _ldh.doc

Modern Javascript

구축환경 OS : Windows 7 그외 OS 의경우교재 p26-40 참조 Windows 의다른버전은조금다르게나타날수있음 Browser : Google Chrome 다른브라우저를사용해도별차이없으나추후수업의모든과정은크롬사용 한

FlashBackt.ppt

MySQL-Ch10

8 장데이터베이스 8.1 기본개념 - 데이터베이스 : 데이터를조직적으로구조화한집합 (cf. 엑셀파일 ) - 테이블 : 데이터의기록형식 (cf. 엑셀시트의첫줄 ) - 필드 : 같은종류의데이터 (cf. 엑셀시트의각칸 ) - 레코드 : 데이터내용 (cf. 엑셀시트의한줄 )

MS-SQL SERVER 대비 기능

ORANGE FOR ORACLE V4.0 INSTALLATION GUIDE (Online Upgrade) ORANGE CONFIGURATION ADMIN O

PowerPoint Presentation

제목 레이아웃

<4D F736F F F696E74202D204D41544C4142B0ADC0C7B7CF28B9E8C6F7BFEB295F3031C0E55FBDC3C0DBC7CFB1E22E BC8A3C8AF20B8F0B5E55D>

untitled

G5 G25 H5 I5 J5 K5 AVERAGE B5 F5 AVERAGE G5 G24 MAX B5 F5 MIN B5 F5 $G$ $H$25 $G$25 $G$ $H$25 G24 H25 H24 I24 J24 K24 A5 A24 G5 G24, I5

fx-82EX_fx-85EX_fx-350EX

문서 템플릿

GEPIK contract

목차 BUG DEQUEUE 의 WAIT TIME 이 1 초미만인경우, 설정한시간만큼대기하지않는문제가있습니다... 3 BUG [qp-select-pvo] group by 표현식에있는컬럼을참조하는집합연산이존재하지않으면결괏값오류가발생할수있습니다... 4

FileMaker 15 ODBC 및 JDBC 설명서

Connection 8 22 UniSQLConnection / / 9 3 UniSQL OID SET

PowerPoint 프레젠테이션

DocsPin_Korean.pages

ETL_project_best_practice1.ppt

DBMS & SQL Server Installation Database Laboratory

chap01_time_complexity.key

PowerPoint 프레젠테이션

다양한 예제로 쉽게 배우는 오라클 SQL 과 PL/SQL

1217 WebTrafMon II

SQL

PowerPoint 프레젠테이션

CAD 화면상에 동그란 원형 도형이 생성되었습니다. 화면상에 나타난 원형은 반지름 500인 도형입니다. 하지만 반지름이 500이라는 것은 작도자만 알고 있는 사실입니다. 반지름이 500이라는 것을 클라이언트와 작업자들에게 알려주기 위 해서는 반드시 치수가 필요하겠죠?

Microsoft PowerPoint - 10Àå.ppt

FileMaker ODBC 및 JDBC 가이드

歯엑셀모델링

목 차

Relational Model

Remote UI Guide

윈도우시스템프로그래밍

Microsoft Word - SQL튜닝_실습교재_.doc

Spring Boot/JDBC JdbcTemplate/CRUD 예제

MySQL-.. 1

11강-힙정렬.ppt

EEAP - Proposal Template

Bind Peeking 한계에따른 Adaptive Cursor Sharing 등장 엑셈컨설팅본부 /DB 컨설팅팀김철환 Bind Peeking 의한계 SQL 이최초실행되면 3 단계의과정을거치게되는데 Parsing 단계를거쳐 Execute 하고 Fetch 의과정을통해데이터

ALTIBASE HDB Patch Notes

Database Applications - 멀티미디어 데이터베이스 – 제6장 텍스트 색인과 검색

YV-150-S.CHINESE1.0-1

03장.스택.key

Oracle Database 10g: Self-Managing Database DB TSC

NoSQL

PowerPoint Presentation

FileMaker ODBC and JDBC Guide

Microsoft PowerPoint - QVIZMVUMWURI.pptx

예제 1.1 ( 관계연산자 ) >> A=1:9, B=9-A A = B = >> tf = A>4 % 4 보다큰 A 의원소들을찾을경우 tf = >> tf = (A==B) % A

PowerPoint 프레젠테이션

1 데이터베이스 2 MySQL 설치 3 기초 SQL 4 고급 SQL 유용한함수들 JOIN inseog Kim Dep. of Applied Statistics, Dongguk통계데이터베이스 University jinseog.kim gma

빅데이터 분산 컴퓨팅 -6

Data Sync Manager(DSM) Example Guide Data Sync Manager (DSM) Example Guide DSM Copyright 2003 Ari System, Inc. All Rights reserved. Data Sync Manager

Microsoft PowerPoint - 5 [호환 모드]

SKINFOSEC-CHR-028-ASP Mssql Cookie Sql Injection Tool 분석 보고서.doc

금오공대 컴퓨터공학전공 강의자료

예제소스는 에서다운로드하여사용하거나툴바의 [ 새쿼리 ]( 에아래의소스를입력한다. 입력후에는앞으로실습을위해서저장해둔다. -- 실습에필요한 Madang DB 와 COMPANY DB 를모두생성한다. -- 데이터베이스생성 US

휠세미나3 ver0.4

Microsoft PowerPoint - a10.ppt [호환 모드]

ÀÌÁÖÈñ.hwp

다양한 예제로 쉽게 배우는 오라클 SQL 과 PL/SQL

자기공명영상장치(MRI) 자장세기에 따른 MRI 품질관리 영상검사의 개별항목점수 실태조사 A B Fig. 1. High-contrast spatial resolution in phantom test. A. Slice 1 with three sets of hole arr

<BAF9C7D8BFEEC7D7BCB1B9DA20C1F6C4A728B1B9B9AE292E687770>

MySQ4e-01

InsertColumnNonNullableError(#colName) 에해당하는메시지출력 존재하지않는컬럼에값을삽입하려고할경우, InsertColumnExistenceError(#colName) 에해당하는메시지출력 실행결과가 primary key 제약에위배된다면, Ins

FileMaker ODBC and JDBC Guide

Microsoft Word - CNVZNGWAIYSE.doc

Index

Microsoft PowerPoint Python-DB

5.스택(강의자료).key

ALTIBASE HDB Patch Notes

다양한 예제로 쉽게 배우는 오라클 SQL 과 PL/SQL

Chapter 4. LISTS

<C1A62038B0AD20B0ADC0C7B3EBC6AE2E687770>

Simplify your Job Automatic Storage Management DB TSC

[ 목차 ] 5.1 데이터베이스프로그래밍개념 5.2 T-SQL T-SQL 문법 5.3 JAVA 프로그래밍 2

Transcription:

FileMaker 14

5 5 5 5 5 6 7 7 7 8 9 9 10 11 11 12 12 13 14 17 17 18 19 21 22 22 22 23 23 24 24 25 25 25 27 27 28 28 30 31 33 33

4 35 38

1 http://www.filemaker.com/documentation/ko 1 1 1 1 1 http://www.filemaker.com/documentation/ko

1 1 1 SQL_C_WCHAR 1 1 1 1 1 1 1 1

SELECTSELECTlast_name SALARY * 1.05 SELECT SELECT [DISTINCT] {* column_expression [[AS] column_alias],...} FROM table_name [table_alias],... [ WHERE expr1 rel_operator expr2 ] [ GROUP BY {column_expression,...} ] [ HAVING expr1 rel_operator expr2 ] [ UNION [ALL] (SELECT...) ] [ ORDER BY {sort_expression [DESC ASC]},... ] [ OFFSET n {ROWS ROW} ] [ FETCH FIRST [ n [ PERCENT ] ] { ROWS ROW } {ONLY WITH TIES } ] [ FOR UPDATE [OF {column_expression,...}] ] column_alias departmentdept SELECT dept AS department FROM emp EMP.LAST_NAME E.LAST_NAMEEEMP DISTINCT SELECT DISTINCT dept FROM emp

SELECT SELECT SELECT FROMSELECT FROM table_name [table_alias] [, table_name [table_alias]] table_name table_alias LASTNAMEExecuteSQL SELECT "_LASTNAME" from emp FROM employee ELAST_NAMEE.LAST_NAMESELECT SELECT * FROM employee E, employee F WHERE E.manager_id = F.employee_id

INNER JOIN SELECT * FROM Salespeople INNER JOIN Sales_Data ON Salespeople.Salesperson_ID = Sales_Data.Salesperson_ID LEFT OUTER JOIN SELECT * FROM Salespeople LEFT OUTER JOIN Sales_Data ON Salespeople.Salesperson_ID = Sales_Data.Salesperson_ID 1 RIGHT OUTER JOIN 1 FULL OUTER JOIN WHEREWHERE WHERE expr1 rel_operator expr2 expr1expr2 rel_operatorselect SELECT last_name,first_name FROM emp WHERE salary >= 20000 WHERE WHERE expr1 IS NULL WHERE NOT expr2 SELECTWHERE

GROUP BY GROUP BY columns columnsselect SELECT dept_id, SUM (salary) FROM emp GROUP BY dept_id HAVING HAVING expr1 rel_operator expr2 expr1expr2select rel_operator SELECT dept_id, SUM (salary) FROM emp GROUP BY dept_id HAVING SUM (salary) > 200000

UNIONSELECTSELECT ALLUNION ALL SELECT statement UNION [ALL] SELECT statement UNIONSELECT SELECT last_name, salary, hire_date FROM emp UNION SELECT name, pay, birth_date FROM person EMPSALARYRAISESLAST_NAME SELECT SELECT last_name, salary FROM emp UNION SELECT salary, last_name FROM raises ORDER BY ORDER BY {sort_expression [DESC ASC]},... sort_expression ASC last_namefirst_nameselect SELECT emp_id, last_name, first_name FROM emp ORDER BY last_name, first_name SELECT emp_id, last_name, first_name FROM emp ORDER BY 2,3 last_nameselectorder BY 2last_name

OFFSETFETCH FIRST OFFSETOFFSETSELECT FETCH FIRSTOFFSET OFFSETFETCH FIRSTSELECT OFFSET OFFSETFETCH FIRST OFFSET OFFSET n {ROWS ROW} ] nn ROWSROW FETCH FIRST FETCH FIRST [ n [ PERCENT ] ] { ROWS ROW } {ONLY WITH TIES } ] nn. PERCENTn npercent,. ROWSROW WITH TIESORDER BY WITH TIESORDER BY last_namefirst_name SELECT SELECT emp_id, last_name, first_name FROM emp ORDER BY last_name, first_name OFFSET 25 ROWS SELECT emp_id, last_name, first_name FROM emp ORDER BY last_name, first_name OFFSET 25 ROWS FETCH FIRST 10 ROWS ONLY

ORDER BY SELECT emp_id, last_name, first_name FROM emp ORDER BY last_name, first_name OFFSET 25 ROWS FETCH FIRST 10 ROWS WITH TIES FOR UPDATE FOR UPDATE [OF column_expressions] column_expressions column_expressions SALARY SELECT * FROM emp WHERE salary > 20000 FOR UPDATE OF last_name, first_name, salary

SELECT 'CatDog' FROM Salespeople SELECT 999 FROM Salespeople SELECT DATE '2015-06-05' FROM Salespeople SELECT TIME '02:49:03' FROM Salespeople SELECT TIMESTAMP '2015-06-05 02:49:03' FROM Salespeople SELECT Company_Name FROM Sales_Data SELECT DISTINCT Company_Name FROM Sales_Data SELECT Amount FROM Sales_Data SELECT DISTINCT Amount FROM Sales_Data SELECT Date_Sold FROM Sales_Data SELECT DISTINCT Date_Sold FROM Sales_Data SELECT Time_Sold FROM Sales_Data SELECT DISTINCT Time_Sold FROM Sales_Data SELECT Timestamp_Sold FROM Sales_Data SELECT DISTINCT Timestamp_Sold FROM Sales_Data SELECT Company_Brochures FROM Sales_Data SELECT GETAS(Company_Logo, 'JPEG') FROM Sales_Data SELECT * FROM Salespeople SELECT DISTINCT * FROM Salespeople 열 SELECT * FROM Salespeople SalespeopleSELECT DISTINCT * FROM SalespeopleSalespeople 1 SELECT * FROM test WHERE c = SELECT * FROM test WHERE c <> 1 SELECTGetAs()

GetAS(field name, 'JPEG') SELECTSELECT NULL CAST()SELECT SELECT CAST(Company_Brochures AS VARCHAR) FROM Sales_Data 1 SQL_VARCHARSELECT 1 SELECT 1 SELECT GetAs()DEFAULT DEFAULT SELECT GetAs(Company_Brochures, DEFAULT) FROM Sales_Data GetAs() 1 GetAs()'FILE' SELECT GetAs(Company_Brochures, 'FILE') FROM Sales_Data 1 GetAs()'snd' SELECT GetAs(Company_Meeting, 'snd ') FROM Company_Newsletter

1 SELECT GetAs(Company_Logo, 'JPEG') FROM Company_Icons 'GIFf' 'PNTG' 'JPEG' '.SGI' 'JP2 ' 'TIFF' 'PDF ' 'TPIC' 'PNGf' '8BPS' DELETEDELETE DELETE FROM table_name [ WHERE { conditions } ] WHEREWHERE DELETE DELETE FROM emp WHERE emp_id = 'E10001' DELETEWHEREE10001 INSERT 1 1 SELECT INSERT INSERT INTO table_name [(column_name,...)] VALUES (expr,...) column_namevalues column_nameexpr column_name lastdates[4]

expr 'Don''t' INSERT INTO emp (last_name, first_name, emp_id, salary, hire_date) VALUES ('Smith', 'John', 'E22345', 27500, DATE '2015-06-05') INSERT EMP 삽입할 PutAs() INSERT INTO table_name (container_name) VALUES(? AS 'filename.file extension') PutAs()PutAs(col, 'type') SELECTcolumn_name SELECTINSERT SELECTINSERT INSERT INTO emp1 (first_name, last_name, emp_id, dept, salary) SELECT first_name, last_name, emp_id, dept, salary from emp WHERE dept = 'D050' INSERTSELECT INSERTSELECT SELECTINSERT INSERTUPDATE SELECTINSERT SELECT UPDATEUPDATE UPDATE table_name SET column_name = expr,... [ WHERE { conditions } ]

column_name expr 'Don''t' WHERE UPDATE UPDATE emp SET salary=32000, exempt=1 WHERE emp_id = 'E10001' UPDATEWHERE E10001 UPDATE emp SET salary = (SELECT avg(salary) from emp) WHERE emp_id = 'E10001' E10001 업데이트 PutAs() UPDATE table_name SET (container_name) =? AS 'filename.file extension' PutAs()PutAs(col, 'type') CREATE TABLECREATE TABLE CREATE TABLE table_name ( table_element_list [, table_element_list...] ) 1 table_nametable_name

1 table_element_list field_name field_type [[repetitions]] [DEFAULT expr] [UNIQUE NOT NULL PRIMARY KEY GLOBAL] [EXTERNAL relative_path_string [SECURE OPEN calc_path_string]] 1 field_name LASTNAMECREATE TABLE CREATE TABLE "_EMPLOYEE" (ID INT PRIMARY KEY, "_FIRSTNAME" VARCHAR(20), "_LASTNAME" VARCHAR(20)) 1 CREATE TABLErepetitions EMPLOYEE_ID INT[4] LASTNAME VARCHAR(20)[4] 1 field_typenumericdecimalintdatetime TIMESTAMPVARCHARCHARACTER VARYINGBLOBVARBINARYLONGVARBINARY BINARY VARYINGNUMERICDECIMAL DECIMAL(10,0)TIMETIMESTAMP TIMESTAMP(6)VARCHARCHARACTER VARYING VARCHAR(255) 1 DEFAULTexpr USERUSERNAMECURRENT_USER CURRENT_DATECURDATECURRENT_TIMECURTIMECURRENT_TIMESTAMP CURTIMESTAMPNULL 1 고유하게 1 NOT NULL 1 BLOBVARBINARYBINARY VARYINGfield_type 1 EXTERNAL relative_path_string SECUREOPEN calc_path_string relative_path_string

CREATE TABLE T1 (C1 VARCHAR, C2 VARCHAR (50), C3 VARCHAR (1001), C4 VARCHAR (500276)) NOT NULL CREATE TABLE T1NN (C1 VARCHAR NOT NULL, C2 VARCHAR (50) NOT NULL, C3 VARCHAR (1001) NOT NULL, C4 VARCHAR (500276) NOT NULL) CREATE TABLE T2 (C1 DECIMAL, C2 DECIMAL (10,0), C3 DECIMAL (7539,2), C4 DECIMAL (497925,301)) CREATE TABLE T3 (C1 DATE, C2 DATE, C3 DATE, C4 DATE) CREATE TABLE T4 (C1 TIME, C2 TIME, C3 TIME, C4 TIME) CREATE TABLE T5 (C1 TIMESTAMP, C2 TIMESTAMP, C3 TIMESTAMP, C4 TIMESTAMP) CREATE TABLE T6 (C1 BLOB, C2 BLOB, C3 BLOB, C4 BLOB) CREATE TABLE T7 (C1 BLOB EXTERNAL 'Files/MyDatabase/' SECURE) CREATE TABLE T8 (C1 BLOB EXTERNAL 'Files/MyDatabase/' OPEN 'Objects') ALTER TABLE ALTER TABLE ALTER TABLE table_name ADD [COLUMN] column_definition ALTER TABLE table_name DROP [COLUMN] unqualified_column_name ALTER TABLE table_name ALTER [COLUMN] column_definition SET DEFAULT expr ALTER TABLE table_name ALTER [COLUMN] column_definition DROP DEFAULT ALTER TABLE ALTER TABLE Salespeople ADD C1 VARCHAR ALTER TABLE Salespeople DROP C1 ALTER TABLE Salespeople ALTER Company SET DEFAULT 'FileMaker' ALTER TABLE Salespeople ALTER Company DROP DEFAULT SET DEFAULTDROP DEFAULT

CREATE INDEXCREATE INDEX CREATE INDEX ON table_name.column_name CREATE INDEX ON table_name (column_name) CREATE INDEX CREATE INDEX CREATE INDEX ON Salespeople.Salesperson_ID DROP INDEXDROP INDEX DROP INDEX ON table_name.column_name DROP INDEX ON table_name (column_name) SELECT PREVENT INDEX CREATION DROP INDEX ON Salespeople.Salesperson_ID SELECTWHEREHAVINGORDER BY 1

1 1 1 1 1 1 1 1 calcsales_data.invoice_id PRICE * 1.05 Number_Of_Days_In_June 'Don''t' 1 {D '2015-06-05'} 1 {T '14:35:10'} 1 {TS '2015-06-05 14:35:10'} DTTS

1 DATE 'YYYY-MM-DD' 1 TIME 'HH:MM:SS' 1 TIMESTAMP 'YYYY-MM-DD HH:MM:SS 'Paris' 1.05 DATE '2015-06-05' { D '2015-06-05' } {06/05/2015} {06/05/2015} TIME '14:35:10' { T '14:35:10' } {14:35:10} TIMESTAMP '2015-06-05 14:35:10' { TS '2015-06-05 14:35:10'} {06/05/2015 14:35:10} {06/05/2015 14:35:10} SELECT column1 / 3.4E+7 FROM table1 WHERE calc < 3.4E-6 * column2

last_name'jones ''ROBERT ': hire_datedate '2015-01-30' hire_date hire_date - DATE '2015-01-01' 29 hire_date - 10 SELECT Date_Sold, Date_Sold + 30 AS agg FROM Sales_Data SELECT Date_Sold, Date_Sold - 30 AS agg FROM Sales_Data = <> > >= < <= LIKE NOT LIKE IS NULL

IS NOT NULL BETWEEN IN NOT IN EXISTS ANY ALL SELECT Sales_Data.Invoice_ID FROM Sales_Data WHERE Sales_Data.Salesperson_ID = 'SP-1' SELECT Sales_Data.Amount FROM Sales_Data WHERE Sales_Data.Invoice_ID <> 125 SELECT Sales_Data.Amount FROM Sales_Data WHERE Sales_Data.Amount > 3000 SELECT Sales_Data.Time_Sold FROM Sales_Data WHERE Sales_Data.Time_Sold < '12:00:00' SELECT Sales_Data.Company_Name FROM Sales_Data WHERE Sales_Data.Company_Name LIKE '%University' SELECT Sales_Data.Company_Name FROM Sales_Data WHERE Sales_Data.Company_Name NOT LIKE '%University' SELECT Sales_Data.Amount FROM Sales_Data WHERE Sales_Data.Amount IS NULL SELECT Sales_Data.Amount FROM Sales_Data WHERE Sales_Data.Amount IS NOT NULL SELECT Sales_Data.Invoice_ID FROM Sales_Data WHERE Sales_Data.Invoice_ID BETWEEN 1 AND 10 SELECT COUNT(Sales_Data.Invoice_ID) AS agg FROM Sales_Data WHERE Sales_Data.INVOICE_ID IN (50,250,100) SELECT COUNT(Sales_Data.Invoice_ID) AS agg FROM Sales_Data WHERE Sales_Data.INVOICE_ID NOT IN (50,250,100) SELECT COUNT(Sales_Data.Invoice_ID) AS agg FROM Sales_Data WHERE Sales_Data.INVOICE_ID NOT IN (SELECT Sales_Data.Invoice_ID FROM Sales_Data WHERE Sales_Data.Salesperson_ID = 'SP-4')

SELECT * FROM Sales_Data WHERE EXISTS (SELECT Sales_Data.Amount FROM Sales_Data WHERE Sales_Data.Salesperson_ID IS NOT NULL) SELECT * FROM Sales_Data WHERE Sales_Data.Amount = ANY (SELECT Sales_Data.Amount FROM Sales_Data WHERE Sales_Data.Salesperson_ID = 'SP-1') SELECT * FROM Sales_Data WHERE Sales_Data.Amount = ALL (SELECT Sales_Data.Amount FROM Sales_Data WHERE Sales_Data.Salesperson_ID IS NULL) ANDOR salary = 40000 AND exempt = 1 NOT (salary = 40000 AND exempt = 1) SELECT * FROM Sales_Data WHERE Sales_Data.Company_Name NOT LIKE '%University' AND Sales_Data.Amount > 3000 SELECT * FROM Sales_Data WHERE (Sales_Data.Company_Name LIKE '%University' OR Sales_Data.Amount > 3000) AND Sales_Data.Salesperson_ID = 'SP-1' '-''+'

WHERE salary > 40000 OR hire_date > (DATE '2008-01-30') AND dept = 'D101' WHERE (salary > 40000 OR hire_date > DATE '2008-01-30') AND dept = 'D101' SELECT AVG(SALARY)AVG(SALARY * 1.07) DISTINCT COUNT (DISTINCT last_name) SUM AVG COUNT SUM(SALARY) AVG(SALARY) COUNT(NAME) COUNTCOUNT COUNT(*)

MAX MIN MAX(SALARY) MIN(SALARY) SELECT SUM (Sales_Data.Amount) AS agg FROM Sales_Data SELECT AVG (Sales_Data.Amount) AS agg FROM Sales_Data SELECT COUNT (Sales_Data.Amount) AS agg FROM Sales_Data SELECT MAX (Sales_Data.Amount) AS agg FROM Sales_Data WHERE Sales_Data.Amount < 3000 SELECT MIN (Sales_Data.Amount) AS agg FROM Sales_Data WHERE Sales_Data.Amount > 3000

CHR CHR(67) CURRENT_USER DAYNAME RTRIM RTRIM(' ABC ')' ABC' TRIM TRIM(' ABC ')'ABC' LTRIM LTRIM(' ABC')'ABC' UPPER UPPER('Allen')'ALLEN' LOWER LOWER('Allen')'allen' LEFT LEFT('Mattson',3)'Mat' MONTHNAME RIGHT RIGHT('Mattson',4)'tson' SUBSTR SUBSTRING SUBSTR('Conrad',2,3)'onr' 를반환 SUBSTR('Conrad',2)'onrad' SPACE SPACE(5)' ' STRVAL STRVAL('Woltman')'Woltman' 을반환 STRVAL(5 * 3)'15' 를반환 STRVAL(4 = 5)'False' 를반환 STRVAL(DATE '2008-12-25') '2008-12-25' TIME TIMEVAL USERNAME USER TIME() FilterCURRENT_TIME

SELECT CHR(67) + SPACE(1) + CHR(70) FROM Salespeople SELECT RTRIM(' ' + Salespeople.Salesperson_ID) AS agg FROM Salespeople SELECT TRIM(SPACE(1) + Salespeople.Salesperson_ID) AS agg FROM Salespeople SELECT LTRIM(' ' + Salespeople.Salesperson_ID) AS agg FROM Salespeople SELECT UPPER(Salespeople.Salesperson) AS agg FROM Salespeople SELECT LOWER(Salespeople.Salesperson) AS agg FROM Salespeople SELECT LEFT(Salespeople.Salesperson, 5) AS agg FROM Salespeople SELECT RIGHT(Salespeople.Salesperson, 7) AS agg FROM Salespeople SELECT SUBSTR(Salespeople.Salesperson_ID, 2, 2) + SUBSTR(Salespeople.Salesperson_ID, 4, 2) AS agg FROM Salespeople SELECT SUBSTR(Salespeople.Salesperson_ID, 2) + SUBSTR(Salespeople.Salesperson_ID, 4) AS agg FROM Salespeople SELECT SPACE(2) + Salespeople.Salesperson_ID AS Salesperson_ID FROM Salespeople SELECT STRVAL('60506') AS agg FROM Sales_Data WHERE Sales_Data.Invoice = 1 ABS ATAN ATAN2 CEIL CEILING DEG DEGREES DAY DAY(DATE '2015-01-30') DAYOFWEEK DAYOFWEEK(DATE '2004-05-01') MOD MOD(10,3)

EXP FLOOR HOUR INT Int(6.4321) LENGTH LENGTH('ABC') MONTH MONTH(DATE '2015-01-30') LN LOG MAX MAX(66,89) MIN MIN(66,89) MINUTE NUMVAL PI RADIANS NUMVAL('123') ROUND ROUND(123.456,0) ROUND(123.456,2) ROUND(123.456,-2) SECOND SIGN SIN SQRT TAN YEAR YEAR(DATE '2015-01-30')

CURDATE CURRENT_DATE CURTIME CURRENT_TIME CURTIMESTAMP CURRENT_TIMESTAMP TIMESTAMPVAL TIMESTAMPVAL('2015-01-30 14:00:00') DATE TODAY DATE() DATEVAL DATEVAL('2015-01-30') DATE() CASE WHEN input_expvalue_exp CASE {WHEN THEN...} [ELSE ] SELECT Invoice_ID, CASE Company_Name WHEN 'Exports UK' THEN 'Exports UK Found' WHEN 'Home Furniture Suppliers' THEN 'Home Furniture Suppliers Found' ELSE 'Neither Exports UK nor Home Furniture Suppliers' END, Salesperson_ID FROM Sales_Data CASE {WHEN THEN } [ELSE ] SELECT Invoice_ID, Amount, CASE WHEN Amount > 3000 THEN 'Above 3000' WHEN Amount < 1000 THEN 'Below 3000' ELSE 'Between 1000 and 3000' END, Salesperson_ID FROM Sales_Data

COALESCE SELECT Salesperson_ID, COALESCE(Sales_Manager, Salesperson) FROM Salespeople NULLIF SELECT Invoice_ID, NULLIF(Amount, -1), Salesperson_ID FROM Sales_Data

CREATE TABLEDEC create table t ("dec" numeric)

31 26 21 27 26 31 31 26 15 33 16 31 31 30 34 22 19 33 30 33 33 33 30 33 33 33 33 31 30 31 20 31 31 17 8 22 6, 7 26 32 20 13 5 32 14 9 10 16 11 11 32 26 10 17 32 26 25 7 7 10 30 32 25 32 32 30 30 32 32 32 31 32 30

39 26 25 20 27 18 34 32 7 7 7 14 13 27 12 10 5 32 22 18, 19 32 10 30 32 30 32 8 15 15 15 32 32 30 21 22 19 17 22 17 8 18 35 7 28 7 22 25 25 27 25 23 24 27 24 23 28 24 25 25 27 25 23 24 27 24 23 28 7 7 28 22 32 30 30 30 32 30 33 30 33 30 12 20 18 30 30 17 10 13

40 32 35 23 7 7 13, 14 17, 20 18 14 30 25 15 5 23 10 8 18 35 5 5 7 15 12 20, 21 16 18 18 16 19 20 35 23 8, 9 16