Database introduction and normal table creation queries
Day 39 - (25-03-2025)
DataBase
Database name-college
Student(roll,name,city)
Faculty(name,designation,subject)
l The database is a collection of entity (tables).
Entity is a collection of record
ü Types of database:-
I. Local database
II. Global database (web database)
ü Database Elements:-
I. Location
II. User name
III. Password
IV. Catalogue-(name of database)
ü Datbase Terminology:-
Ex- Roll name city -> this are called field
101 A Ngp
102 B pune
ü Field (column heading ):-
a. Single value field :- which should always be unique . ex-(roll no).
i. Multivalue field :- which can accept similar data ex.- (name- first name, last name and etc).
ii. Null Field :- accept the blank data .
ü How to create database in dot framework?
There are two specify architecture used in database handling :-
1. Connect architecture:- (inbuilt enviroment )
2. Disconnect architecture:- (using database software).
v Sql server database
1. It is a platform independent database
2. It support web application.
3. Extension of sql server (.mdf ).
v Database queries :- Set of command to perform the specify operation in a database
v Type of queries :-
1. Execute queries :- only display data record.(select )
2. Execute non queries:- Changes or updaate your data from the table ex:- (insert update delect) .
3. All queries is to be executed in the query editor windows.
ü How to open the query editor ?
ü Type of datatype in database
1. Int
2. Varchar
3. Nvarchar
4. Date
5. Image
u Create table queries
Ex-CREATE TABLE student(roll INT,name VARCHAR(50));
u How to display table strucutes.
Ex- SP_HELP student;
Comments
Post a Comment