codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  DISTINCT Function with Date string  jimmytieu at 18:05 on Tuesday, June 01, 2004
 

I'm trying to use a DISTINCT in my SQL statement on an ID string. This works well, but when I add a date string, called DateEmailSent, the DISTINCT ID does not work. Can someone help me or explain why this cannot work? The bold in the SQL statement below is what I added.

Thanks for your time!


< -- SQL Statement -- >
SELECT DISTINCT SupportID, ID, Email, SerialNumber, DateEmailSent

FROM support_thread WHERE Status = 'Receive' OR Status = 'View'

GROUP BY DateEmailSent, SupportID, ID, Email, SerialNumber"

< -- End of SQL Statement -- >









CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Re: Print and print preview file on the website without using the File - Print on the IE
•  Re: ASP.NET web controls
•  Re: JavaSript Problem In Mac Safari Browser
•  Re: DHTML div positionning Problem
•  Convert script to NS6 compatible - Please Help!
•  Print .doc file from the website using System.Diagnostics.Process
•  Re: Fullscreen code
•  Re: iframe targeting
•  Excel n ASP


Recent Articles
Communicating with the Database (Using ADO)
MagicGrid
Simple Thumbnail Browsing Solution
Type Anywhere
A Better Moustrap: FmtDate to replace FormatDateTime
ASP.NET Forum Source Code
Internal Search Engine
Javascript Growing Window
Simple date validation
Search engine friendly URLs using ASP.NET (C#.NET)


Site Survey
Help us serve you better. Take a five minute survey. Click here!

© Copyright codetoad.com 2001-2005