Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 Script Library
 Select statement

Author  Topic 

dturner
Starting Member

24 Posts

Posted - 2005-12-14 : 00:53:15
Hello all and I am happy to have joined the forum.

Got a question

I am trying to select records from a table which
have seen a VW Bug >= 5 times in one day

My table hold information such as
Dateseen
personid
email
name


What is the best way to select this information?

Thank you

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-12-14 : 00:58:20
This is the Forum to contribute workable scripts. Hereafter post your questions at Developer Forum

Post some sample data and the result you want

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

dturner
Starting Member

24 Posts

Posted - 2005-12-14 : 01:13:47
Madhivanan Thank you,

Ok
So table has such data as

2001-05-05 15:23:27.453 ME@yahoo.com Joe 4112
2000-12-22 08:11:12.857 notME@yahoo.com Mikey 235
2000-05-05 16:21:37.497 ME@yahoo.com Joe 4112
2000-10-02 16:21:05.030 notyou@yahoo.com Johnson 22222
1998-12-18 08:46:06.900 she@yahoo.com Elliot 1
2001-05-05 12:41:37.587 ME@yahoo.com Joe 4112
2001-02-11 20:36:08.520 him@yahoo.com Tim 34255
2001-05-05 05:29:16.800 ME@yahoo.com Joe 4112
2001-10-05 10:58:07.310 earth@eartlink.net sue 23232
2001-05-05 18:59:12.427 ME@yahoo.com Joe 4112


This is what I would want returned:

Name email Count
Joe ME@yahoo.com 5

Go to Top of Page

dturner
Starting Member

24 Posts

Posted - 2005-12-14 : 01:35:04
Close

Reposted at Developer

The world has more information to offer than I can hold in my head
Go to Top of Page
   

- Advertisement -