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 are the lambda triggers?
What is the datatype returned by count(*)
22 Answers 247Customer, Asian CERC,
What is difference between equi join and natural join?
What is row by row processing ?
How to update muliple row in single query?
What is difference between rollback immediate and with no_wait during alter database?
Do you know what guidelines should be followed to help minimize deadlocks?
How do I start sql server 2017?
Can Having clause be used without Group by clause?
6 Answers CarrizalSoft Technologies, CSC, CTS,
Does partitioning improve performance sql server?
What is the disadvantages of index?
Explain the storage models of OLAP?
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)