You are here:
Questions related to query optimization, finding complex results.
Experience in the area: I have been working in the field since 2005 year. Education/Credentials: BE IT, First Class, 2005 Batch.
BE IT, India
| User | Date | K | C | P | Comments |
|---|---|---|---|---|---|
| Mike | 03/28/12 | 10 | 10 | 10 | |
| JJ | 01/22/12 | 10 | 10 | 10 | |
| Alp Durmaz | 02/21/11 | 10 | 10 | 10 | |
| sam | 02/04/11 | 10 | 10 | 10 | super kool |
| Brian | 09/29/10 | 10 | 10 | 10 | Good understanding and a good answer |
Hi Alp, I think it should be better to design the table in a different way to handle such kind of information. However, here is the SQL Query for given situation. ######################## SELECT
Hi Alp, Sorry for very late reply... You may try the below query: ############################ IF ( SELECT COUNT(*) FROM Customers WHERE CustomerID = 3000 ) = 0 BEGIN SELECT 0
Dear Ron, There are multiple ways of achieving details of author according to email address. You can write a query with DISTINCT clause on Email Address column or can also write query using MAX on
Hi Alp, My apologies for late reply! The required result can be obtained using GROUP BY clause and MAX function. Here's the sample query: ###################### SELECT MAX(DealID), CustomerID
Dear Alp, You can use GROUP BY and MAX built-in functions to achieve the required result. Here's a sample query. ############## SELECT DealID, MAX(CustomerID) as CustomerID FROM Deals GROUP BY
Answers by Expert:

©2012 About.com, a part of The New York Times Company. All rights reserved.