NormalizationIn Relational database design,the process of organizing data to minimize redundancy is called Normalization.DeNormalizationIt is the process of optimize the performance of a database by adding redundant data.Different Normalization Forms1 NF Eliminate Repeating groups2NFEliminate Redundant Data3NFEliminate Columns which are not dependent on key columnBCNFEliminate non-trivial dependencies in candidate key attribute then separate it4NFIsolate independent multiple relationship5NFIsolate semantically related multiple relationship(Separate Many-Many Relationship)ONFA Model is limited as express object role modelDKNFA model free from all modification anomaliesTrick to find all index tables in a databaseSELECT NAME FROM SYS.TABLES WHERE OBJECTPROPERTY(OBJECT_ID,'ISINDEXED')=1Trick to find all non-index tables in a database SELECT NAME FROM SYS.TABLES WHERE OBJECTPROPERTY(OBJECT_ID,'ISINDEXED')=0Fulltext definition functions with exampleSELECT EMP_NAME FROM EMPLOYEE , CONTAINSTABLE(EMPLOYEE,EMP_NAME,'CHANDR') AS TabNameSELECT EMP_NAME FROM EMPLOYEE WHERE FREETEXT(EMP_NAME,'CHAN')SELECT EMP_NAME FROM EMPLOYEE WHERE CONTAINS(EMP_NAME,'CHAN')SELECT RANK()OVER(ORDER BY Description),Description FROM EMPLOYEEHow to find current version of the sql serverSELECT @@VERSION
No comments:
Post a Comment