Viewing 15 posts - 736 through 750 (of 1,243 total)
Try this one[/url] first. There's many out there so a little searching might find one that does exactly what you need. Working days vary from country to country...
February 11, 2015 at 3:43 am
Have you got a calendar table? That will make the calculation of working days much easier.
February 11, 2015 at 3:26 am
Stuart Davies (2/10/2015)
Ed Wagner (2/9/2015)
SQLRNNR (2/9/2015)
Sir KneighfCriminal (had to look that one up)
Smooth
Plane
February 10, 2015 at 1:13 am
Brandie Tarvin (2/5/2015)
Oh, and let's not forget where it all starts.
My cousin's daughter once said 'I know its a boys' job, but I want to be a scientist when I...
February 5, 2015 at 8:55 am
Edvard Korsbæk (2/4/2015)
I have this table:
[dbo].[Login_details](
[login_data_id] [int] IDENTITY(1,1) NOT NULL,
[login_no] [int] NULL,
[logindate] [datetime] NULL,
[logoutdate] [datetime] NULL,
CONSTRAINT [PK_Login_details] PRIMARY KEY CLUSTERED
(
[login_data_id] ASC
)
This query:
Select count(*) from dbo.Login_details group by...
February 4, 2015 at 2:03 am
Sqlraider (2/2/2015)
Iwas Bornready (2/2/2015)
February 3, 2015 at 1:16 am
bugg (1/30/2015)
Mark Cowne (5/3/2012)
SELECT s.ORDER_NUMBER, s.PRODUCT_ID, 1 AS QTY, s.VALUE/s.QTY AS VALUE
FROM @SPLITROW s
INNER JOIN master.dbo.spt_values t ON t.type='P'
AND...
January 30, 2015 at 6:05 am
TomThomson (1/26/2015)
Half the people who have replied so far think they can use a column filter to select rows, which is a bit startling; and more than four...
January 26, 2015 at 6:47 am
You're welcome. I've done some tinkering with postcodes myself in the past so I recognised what you were trying to do 🙂
January 26, 2015 at 5:33 am
SELECT
left(Postcode,patindex('%[0-9]%',postcode)-1)
FROM YourTable
where patindex('%[0-9]%',postcode) > 0
order by 3
That should do the trick for all the...
January 26, 2015 at 5:29 am
Have all your postcodes definitely got numbers in them? I know they should have but it might be worth checking.
January 26, 2015 at 5:05 am
Viewing 15 posts - 736 through 750 (of 1,243 total)