0% found this document useful (0 votes)
118 views

SQL Notes

The document discusses database concepts like tables, fields, data types, and relationships. It also covers SQL concepts such as DDL, DML, and DCL commands as well as queries, forms, reports, macros, and modules. Tables are used to store data and relate to each other through primary and foreign keys, while queries are used to retrieve, filter, and manipulate the data in the tables.

Uploaded by

Scribd12345
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
118 views

SQL Notes

The document discusses database concepts like tables, fields, data types, and relationships. It also covers SQL concepts such as DDL, DML, and DCL commands as well as queries, forms, reports, macros, and modules. Tables are used to store data and relate to each other through primary and foreign keys, while queries are used to retrieve, filter, and manipulate the data in the tables.

Uploaded by

Scribd12345
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

1 1 TABLES

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

CLIENT MASTER ARTICLE SERVICES


1 CLIENTID 1 SERVICEID
2 CLIENTCODE 1 ARTICLEID 2 SERVICECODE
2 ARTICLENAME
3 CLIENTNAME 3 SERVICENAME
4 CLIENTADDESS 3 ARTICLEREGNO SERVICEFEES
4 ARTICLEQUALIFA
5 CLIENTPAN
6 CLIENTDOB CTION
5 DOJ
7 REGDATE

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

select quere:-SELECT QUERY


SELECT FILED1,FILED2,,,,,
FROM <TABLE NAME>
WHERE <CONDITION>
Order by field1
7 To make the strata use group by clause
a. Filter the date in group by query use having clause
8 Subquery (query within a query is known as a subquery)
9 Query in ms access(automatic write the sql code)
a. Design view
i. Select query (filter the data)
ii. Append query
iii. Update query
iv. Make table query
v. Crosstab query
vi. Delete query
b. Query wizard
i. Simple query wizxard (used to generate summery)
ii. Cross tab query wizard (trend )
iii. Duplicate query wizard
iv. Unmatched query wizard
10 Forms
a. Forms are the screen
b. Forms are decorated b the controls
11 REPORTS
a. TABULAR REPORT
b. COLUMNER REPORT
c. LABLES
12 MACRO ARE USED TO ELIMANETED CODING PART FROM THE USERS
13 MODULES ARE USED TO WRITE PROGRAMMING

You might also like