Viewing 15 posts - 1,381 through 1,395 (of 2,171 total)
select t2.statename, count(*) as jobnames
from table2 as t2
left join table1 as t1 on t1.state = t2.stateabbrv
group by t2.statename
August 21, 2007 at 2:39 pm
Blimey!
Since there are only 50 states and 1 district in the USA, it can't be that hard to set the ranges accordingly...
CREATE PARTITION FUNCTION States50_1
(VARCHAR(20)) AS RANGE LEFT FOR VALUES...
August 21, 2007 at 2:28 pm
Just for curiosity, I checked Books Online and found this
The following partition function partitions a table or index into four...
August 21, 2007 at 12:10 pm
I use SSMS2008.
The fun thing is that if I copy and paste the code to MS Word first, copy the code from MS Word and paste here, I get single...
August 21, 2007 at 12:00 pm
ALTER the table and use VARCHAR(MAX) as datatype instead of TEXT.
August 21, 2007 at 10:53 am
I haven't access to SQL Server 2005 right now, but what happens if you add
, ELEMENTS
at the end?
August 21, 2007 at 8:39 am
select upper(left('smith',1)) + lower(substring('smith',2,...
August 21, 2007 at 6:51 am
Why? I thought the MobileApplicationID was unique?
CREATE PROCEDURE dbo.uspMobileApplicationReportMenu
(
@MobileApplicationID UNIQUEIDENTIFIER,
@CustomerID UNIQUEIDENTIFIER
)
AS
SET NOCOUNT ON
;WITH peso ([@Id], [@Text], [Level])
AS
August 21, 2007 at 4:28 am
August 21, 2007 at 12:55 am
Since all tables (t2..tn) join on the same columns, try to rewrite them as an UNION instead.
SELECT <Col List Here>
FROM t1
LEFT JOIN (
SELECT f1, f2 FROM t2 UNION ALL
SELECT f1, f2 FROM t3...
August 20, 2007 at 2:43 pm
It would be nice to know if the information was helpful or not...
August 20, 2007 at 1:46 pm
The output (based on the sample data you have provided) look like this
<SiteMap>
<item LookId="DefaultItemLook" Id
August 20, 2007 at 1:35 pm
First create this Stored Procedure
CREATE PROCEDURE dbo.uspMobileApplicationReportMenu
(
@MobileApplicationID UNIQUEIDENTIFIER,
@CustomerID UNIQUEIDENTIFIER
)
AS
SET NOCOUNT...
August 20, 2007 at 1:33 pm
Viewing 15 posts - 1,381 through 1,395 (of 2,171 total)