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’s the use of custom fields in report?
What is the syntax to execute the sys.dm_db_missing_index_details? : sql server database administration
What are “lost updates”?
What is an entity-relationship diagram (erd)?
Explain different types of locks in sql server.
How will you go about resolving deadlocks?
How to create new tables with "select ... Into" statements in ms sql server?
What are the different types of backups avaialabe in sql server 2005?
write the query for taking database restore in sql?
Which is the best place or learning center for MS SQL?????In Bangladesh?????
what is a schema in sql server 2005? Explain how to create a new schema in a database? : Sql server database administration
What is sql server programming?
Oracle (3253)
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)