Data Engg 03
Data Engg 03
Data
Database
Disadvantage:
Table
URL : https://www.microsoft.com/en-in/download/details.aspx?id=42299
How to download and install Microsoft SQL server 2008/2012/2014/2018/2019 for windows7/
windows10/ windows11
Computer Configuration : RAM - 4GB/ 8GB Har disk :256SSD/ 256GB/ 512GB ,
OS - WINDOWS 10 /11
OS : Windows 2007/08-
https://youtu.be/3BFxALltQaM
Colors
In this user can create database by using a simple syntax i.e., CREATE DATABASE Name
1. Select SQL statement and click on Execute button on top of SQL server window.
2. Select SQL statement and press F5 key from keyboard
1.TINYINT
It will store value ranging from 0 to 255.
Suppose we want to store number 129 then it will store in below format
128 64 32 16 8 4 2 1 = 255
1 0 0 0 0 0 0 1
Example:
1.
2.
Session -02
2.SMALLINT
It stores value ranging from -32768 to 32767.
1.
Declare @val smallint
SET @val = 256
print @val
O/P - 256
2.
3.
4.
3.INT or INTEGER
It stores an integer value i.e., ranging from -2147483648 to
2147483647.
1.
2.
3.
4.BIGINT
It stores an integer value beyond the range of integer data type,
it stores 8 bytes of data.
1.
2.
3.
5.Decimal
It will display exact fixed-point number
We can use Precision as well as scale along with Decimal
Precision: total number of digits, both to the the left and right of
the decimal point.
Scale : the number of digits to the right side of the decimal point.
1.
2.
3.
2.String or character data types
If we want to store string or character data in RDBMS then it should
always be enclosed within single quotes ('').
1.char
It will allow to store values like A-Z, a-z, 0-9, special
characters.
Static Memory allocation and its maximum size is 8000 characters.
For example:
if we want to store values like mobile number with country code or
email id then it contains alphanumeric value combination then we can
use string or character data types in SQL.
Functions
1.
2.
3.
4.
5.
6.
2.varchar
It will allow to store values like A-Z, a-z, 0-9, special
characters.
Dynamic Memory allocation and its maximum size is 8000
characters.
1.
2.
3.
4.
5.
Session-03