PC(code, model, speed, ram, hd, cd, price)
Find the hard drive sizes that are equal among two or more
PCs.
Answers were Sorted based on User's Feedback
Answer / sandeep
Select hd from PC
Group by hd
having count(hd)<>1
| Is This Answer Correct ? | 16 Yes | 1 No |
Answer / cullen
Select hd from PC
Group by hd
having count(*)>=2
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / piko1989
Select distinct hd
from pc
GROUP BY hd
having count(hd)>=2
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / rafal
select hd
from PC
group by hd having count(model) >= 2
| Is This Answer Correct ? | 0 Yes | 0 No |
What is use of @@ spid in sql server?
How to get a list of columns using the "sys.columns" view in ms sql server?
How do SQL server 2000 and XML linked?
Explain the difference between clustered and non-clustered index?
How to create an identity column?
i have a table student like sname ----- ram ram ram raj raj raj i need the output like sname ----- ram raj ram raj ram raj
What happens if null values are involved in datetime operations?
How to retrieve error messages using mssql_get_last_message()?
Is truncate autocommit?
when we use function instead of procedure? plz tell me the situation with ex?
How to create a view and a stored procedure in ms sql server using "create view/procedure" statements?
explain the difference between oracle- sql and sql server sql ? if both are same y we r using 2 sw.s?
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)