What is the difference between UNIQUE and DISTINCT keywords in DBMS?
First we declare is as primary key and after group by we can get uniqu values.
CREATE TABLE Persons (
ID int NOT NULL,
LastName varchar(255) NOT NULL,
FirstName varchar(255),
Age int,
PRIMARY KEY (ID)
);
SELECT ID, LastName,FirstName
FROM Persons
GROUP BY ID, LastName,FirstName;
| Is This Answer Correct ? | 0 Yes | 0 No |
What does select 1 mean?
Explain transaction server implicit?
Find first and last day of current month in sql server
Can anyone tell that the extra features are there in SQL SERVER 2008 that are not available in previous versions .
How to execute stored procedure and set temp table in sql server?
What are sql server procedures?
what is a cursor and what is its use?
What sql server means?
Does any body please help me what question's have asked for SSRS in the interview?
What are recommended options to be used while using db mirroring? : sql server database administration
How to insert multiple rows with a subquery?
What is transaction server auto commit?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)