Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Selecting record by day

 
   Database Forums (Home) -> Datamining RSS
Next:  SQL Query Analyzer TO SQL Server from NON-Domain ..  
Author Message
user

External


Since: Dec 21, 2007
Posts: 2



(Msg. 1) Posted: Mon Jan 07, 2008 10:58 pm
Post subject: Selecting record by day
Archived from groups: microsoft>public>sqlserver>datamining (more info?)

My table has a datetime column that says when each record was added. How can I
write a SELECT that gives the last record that was added each day?

 >> Stay informed about: Selecting record by day 
Back to top
Login to vote
Dejan Sarka

External


Since: Mar 18, 2004
Posts: 317



(Msg. 2) Posted: Wed Jan 09, 2008 3:58 am
Post subject: Re: Selecting record by day [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

> My table has a datetime column that says when each record was added. How
> can I write a SELECT that gives the last record that was added each day?

Without create table dll, inserts for sample data and desired result it is
hard to give you a quesry that would work for sure. I suggest you to check
if you can get some idea from here:
http://sqlserver2000.databases.aspfaq.com/why-should-i-consider-using-...auxilia

--
Dejan Sarka
http://blogs.solidq.com/EN/dsarka/default.aspx

 >> Stay informed about: Selecting record by day 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Selecting every Sunday between two dates - Can anyone tell me the SQL statement that selects every Sunday (or other specified day) date between two dates? Thanks in advance

selecting data mining algorithm - Has there been any work related to the (autonomous preferrably) selection of data mining algorithm or technique based on the type of database/schema/meta data information? Thanks Irtaza

SBA Invoice email - Although the standard invoice within sba is lame, it is much easier to use than exporting to Word, etc. Is there a way to email this form? If printed to a file, it uses a format that no one else can read. There should be an easy way to email this..

Shrink .LDF File - Dear All, The SQL Server 2000 in my network is hosting many database for many business units within the organization. The server is heavily used for data collection and web hosting. One of the .LDF file has grown very fast and I am very sure that it....

SELECT in sections - I want to know how to retrieve records from a SELECT command in sections. I mean, if total records of a SELECT command is 100,000, I want to use SELECT that retrieves me them in 20 "sections" of 5000 : first 5000, second 5000, sixth 5000 or ...
   Database Forums (Home) -> Datamining All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]