select sal from emp group by sal
Answers were Sorted based on User's Feedback
Answer / shiva
select sal from emp group by sal;
this query group the same salary.Suppose the table contains 30
records in that same sal is 3 times repeating by using above
query it will fetch only 27 rows of sal.So it wont give the duplicate sal.
| Is This Answer Correct ? | 14 Yes | 3 No |
Answer / pankajsharma
it will fetch all the salaries one tme in case of duplicacy
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / arun karthick
select sal from emp group by sal; and select distinct sal
from emp ;
Both queries will give the same result - fetch the salary
in emp table without duplicates.
| Is This Answer Correct ? | 1 Yes | 0 No |
Differentiate between % rowtype and type record.
What is aggregate function in sql?
What is the difference between nested table and varray?
what is a trigger in mysql? Define different types of trigger. : Sql dba
what are wild cards used in database for pattern matching ? : Sql dba
How many indexes can be created on a table in sql?
What are nested triggers ?
6 Answers Amazon, Appeal Soft, IBM, Infosys, TCS,
What is the maximum number of columns in sql table?
How will you a activate/deactivate integrity constraints?
What are pl sql procedures?
What is embedded sql what are its advantages?
What is the difference between having and a where in sql?
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)