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 |
Define views.
What is the difference between UNIQUE and DISTINCT keywords in DBMS?
What is the difference between the following two sql statements select count(*) from <tablename> select count(col_name) from <tablename>
What are the different types of collation sensitivity in sql server?
What are the different ways of moving data/databases between servers and databases in SQL Server?
Explain syntax for viewing, dropping and disabling triggers?
List the advantages of using stored procedures?
Explain the commands in sql server?
Describe in brief databases and sql server databases architecture.
Which is faster statement or preparedstatement?
What is co-related sub query?
What is the difference between join and inner join?
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)