Setting Unique Key in SQL Server

We can't Have 2 Primary Keys in Sql Server, but if we want two unique keys there is a option to have 2 uniques columns 1 is primary key and second is Unique key.Create table with Primary Key:CREATE TABLE Authors (AuthorID INT NOT NULL PRIMARY KEY,Name VARCHAR(100) NOT NULL)GOAlter table with … [Read more...]

Sql Server What are Store Procedures with Example?

Definition: A stored procedure, by definition, is a segment of declarative SQL code which is stored in the database catalog and can be invoked later by a program, a trigger or even another stored procedure. A stored procedure, which calls itself, is recursive stored procedure. Most DMBSs support … [Read more...]

Sql Server What are Sub queries with Example?

A subquery is a SELECT statement that is placed within parentheses inside another SQL statement. (Generally, a subquery can be replicated with a JOIN, or vice versa.) However, using subqueries can assist in understanding the SQL statement. For instance, when using keywords like “IN” and … [Read more...]

C#.NET/VB.NET interview questions With Answers

C#.NET/VB.NET interview questionsExplain the elements of the .NET Framework.a. CLR (Common Language Runtime): It is a common managed environment where all the .net programs run. Supports multiple languages and has the garbage collector. b. .Net Framework Class Libraries: For each source code … [Read more...]

SQL Cheat Sheet For All type of Basic queries

SQL Select StatementsSELECT * FROM tbl Select all rows and columns from table tblSELECT c1,c2 FROM tblSelect column c1, c2 and all rows from table tblSELECT c1,c2 FROM tblWHERE conditionsORDER BY c1 ASC, c2 DESCSelect columns c1, c2 with where conditionsand from table tbl order result by column … [Read more...]

FREE E-BOOK “DBMS Korth 4edition”

Free Download LinkBy Geeks Track … [Read more...]

SQL SERVER Interview Questions

SQL ServerWhat is normalization? What are different types of normalization?What is denormalization?What are the different types of joins? What is the difference between them?What is a candidate key?What are indexes and what is the difference between clustered and nonclustered?How can you increase … [Read more...]