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 |
Explain some stored procedure creating best practices or guidelines?
Name 3 of the features that the sql server built-in function loginproperty performs on standard logins? : sql server security
How to execute multiple stored procedures at one time in sql server?
How do I partition a table in sql server?
What is the difference between a Application Server and a Database
Can I run multiple instances of sql server 2000 at the same time on one computer?
How to connect ms access to sql servers through odbc?
What are Row versions of DataRow?
Why do we need different type of parameter?
Explain difference between control flow and data flow?
What are the difference between primary keys and foreign keys?
What you can do to delete a table without the delete trigger firing?
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)