DATA BASE (DAY 1) BASIC(ENTITY,RECORD , FIELD, QUERY, INSERT )
**DATABASE**
1) DATABSE IS A COLLECTION OF ENTITY.
2) WHAT IS ENTITY ?
= ENTITY IS A COLLECTION OF FIELD AND RECORD.
3)WHAT IS FIELD ?
= FIELD IS A REPRENTING OF RECORD.
*SINGLE VALUE FIELD [ROLL,ID,UNIQUE]
* MULTI VALUE FIELD[FIRST NAME ,SECOND NAME,SIRNAME]
* NULL FIELD [MOBILE , BLOOD GROUP EX BLANK]
* DATABASE TOOLS
1)SQL SERVER
2) MS ACCESS
3) EXCEL
4) XML
* DATABASE QUERY
* DATABASE IS A SET OF INSTROCTION SETUP IN A DATABASE.
* INSERT QUERY
*TWO TYPES OF QUERY
1) ALL COLOUM =INSERT INTO STUDENT(tablename)VALUES(10,'MOHAN','NAGPUR')
2) PERTICULAR COLOUM=INSERT INTO STUDENT(tablename)VALUES('NAME','CITY')VALUES('RAM','NAGPUR')
* DATABSE CLOSES
1)WHERE CLOSE
2) BETWEEN CLOSE
3) GROUP BY
4)ORDER BY
5)LIKE
6)IN CLOSE
*SELECT QUERY IS ALWAYS USE DISPLAY THE RECORD.
1) ALL RECORD SHOW = SELECT * FROM STUDENT;
2) ONLY NAME = SELECT NAME FROM STUDENT ;
3)ROLL NO CHECK AND OTHER = SELECT * FROM STUDENT WHERE ROLL=101;
4) GREATER>THAN = SELECT * FROM STUDENT WHERE AGE>100;
5) DELETE NAME AND OTHER = DELETE FROM STUDENT WHERE ROLL=101;
6) UPDATE =UPDATE STUDENT SET NAME='RAM' WHERE ROLL=101;
7) REPEATED DATA IN SINGLE TIME=SELECT CITY FROM STUDENT GROUP BY CITY;
(ROLL INT , NAME VARCHAR , CITY VARCHAR , AGE INT , GENDER VAARCHAR);
Comments
Post a Comment