Different System database available:
Master Database:
Master
o Purpose - Core system database to manage the SQL Server instance.
o The Master database is the logical repository for the system objects
residing in the sys schema.
o The first database in the SQL Server startup process.
TempDB :
o Temporary database to store temporary tables, table variables, cursors,
work tables, row versioning, create or rebuild indexes sorted in TempDB,
etc.
o Each time the SQL Server instance is restarted all objects in this database
are destroyed, so permanent objects cannot be created in this database.
o Each time a SQL Server instance is rebooted, the TempDB database is
reset to its original state
Model
o Template database for all user defined databases
o User defined tables, stored procedures, user defined data types, etc can
be created in the Model database and will exist in all future user defined
databases
o The database configurations such as the recovery model for the Model
database are applied to future user defined databases
MSDB
o Primary database to manage the SQL Server Agent configurations
o Provides some of the configurations for the SQL Server Agent service.
Ans 4: 1- tbl_all_constraint( table with Primary Key, Default Constraint, Check
Constraint ), 2- tbl_fk_constraint ( table with Foreign Key).
Ans5 : Union : it keeps performs a DISTINCT on the result set, eliminating any duplicate rows.
UNION ALL does not remove duplicates and it therefore faster than UNION.
Ans6:
ASCII,LTRIM,SOUNDEX,CHAR,NCHAR,SPACE,CHARINDEX,PATINDEX,STR,CONCAT,QUOTEN
AME,
STUFF,DIFFERENCE,REPLACE,SUBSTRING,FORMAT,REPLICATE,UNICODE,LEFT,REVERSE,U
PPER,LEN,RIGHT,LOWER,RTRIM