SQL Notes
SQL Notes
SQL Notes
a. FIELD(pk)(fk)
b. DATATYPE
c. RELATIONSHIP
EXAMPLE
CAFIRM MANAGEMENT
1 CLIENTID
2 CLIENTCODE
3 CLIENTNAME
4 CLIENTADDESS
5 CLIENTPAN
6 CLIENTDOB
7 REGDATE
8 ARTICLEID
9 ARTICLENAME
10 ARTICLEREGNO
11 ARTICLEQUALIFACTION
12 DOJ
13 SERVICEID
14 SERVICECODE
15 SERVICENAME
16 SERVICEFEES
TRANSACTION TABLE
1 TID
2 CLIENT CODE
3 ART_CODE
4 SERV_CODE
5 FEES
6 DATE
QUERY
QUERY ARE QUESTIONS ASKED BY CLIENT ANSWED BY SERVER
QUERIES ARE WRITTEN IN SQL(STRUCTURE QUERY LANGUAGE)
SQL
1 IT IS A 4 GL
2 NON PROCEDURAL LANGUAGE
3 COMMAND BASED LANGUAGE
4 NOT A CASE SENSETIVE LANGUAGE
5 IT HAVE 3 MAIN FUNCTIONS
a. DDL( DATA DEFINATION LANGUAGE
b. DML(DATA MANIPLATION LANGUAGE
c. DCL(DATA CONTROL LANGUAGE
6 COMMANDS
a. SELECT
i. SELECT FIELDNAME1,,,,,,,,,,FILENAME10 FROM TABLENAME WHERE
<CONDITION>
1. CONDITIONAL OPERATORS =,>,<,>=,<=,<>
2. Example