SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Last Working Day
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

RefreshSQL
Starting Member

United Kingdom
1 Posts

Posted - 08/01/2014 :  05:42:19  Show Profile  Reply with Quote
Hi All,

I am new to the forum so go easy on me.

I am looking for a query that can return me all of the leads created in the last working day. So for example on a monday it will return the leads we recieved on friday.

Could anyone give me any ideas?

Thanks

gbritton
Flowing Fount of Yak Knowledge

1086 Posts

Posted - 08/01/2014 :  11:39:59  Show Profile  Reply with Quote
Add a WHERE clause to your query to limit the dates returned.

BTW if you need more help, please post:

1. CREATE TABLE statements to create the tables used in your query
2. INSERT INTO statements to populate the tables in step 1 with test data
3. Your query so far as executed against the tables from steps 1 and 2
4. The current output from your query when executed against the tables from steps 1 and 2
5. The desired output from your query when executed against the tables from steps 1 and 2
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000