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 the security principal at the database level that represents your session?
Do you know what are the reporting services components?
How to use subqueries with the exists operators in ms sql server?
Difference between server.transfer and server.execute method?
1.what is the difference between view and cursor? 2.If we do any change in view will it affect the database,similarly when we do changes in cursor will it affect the databse?with certain example?Thanks
sql server has its default date format in da form "yy-mm-dd" its possible to convert da current date format of sql server to desired format. Now my question is dat how to get da previous and comin days date in my desired format??
What is BLOCK statements in SQL?
Can you explain various data region available in ssrs with their use?
how you can move data or databases between servers and databases in sql server? : Sql server administration
What is the syntax to execute the sys.dm_db_missing_index_details?
what are defaults? Is there a column to which a default can't be bound? : Sql server database administration
Explain insert into select statement?