Relational databases:
Data is primarily stored in the form of tables. Say for e.g. there is a product table. The data is
contained as fields, prod_ID, Product _name, color…and there will be a sales table. A new record is
created for each sale. Each sales wil have the prod_ID
Data Normalization:
https://searchsqlserver.techtarget.com/definition/normalization
While data normalization rules tend to increase the duplication of data, it does
not introduce data redundancy, which is unnecessary
duplication. Database normalization is typically a refinement process after the
initial exercise of identifying the data objects that should be in the relational
database, identifying their relationships and defining the tables required and the
columns within each table.
https://www.guru99.com/database-normalization.html
SQL Codes:
Select * <from Table name> = This will essentially fetch all the columns in the table
Select <column name 1> <Column name 2> from <Table name> = This will essentially fetch only
the selected columns
We can simply drag and drop or type (Intellisense will help)
select
*
from
[dbo].[Customer]
where
TotalChildren >= 4 or
[YearlyIncome] <= 60000 or
[HouseOwnerFlag] = '1'
Take home – 4850
Hsg = 800 – Munich – 1200
250- soaps
100 – pkt
Travel – 64
40