Viewing 15 posts - 6,856 through 6,870 (of 10,144 total)
eseosaoregie (6/30/2011)
Every RU and BU combo is related to more than 1 ENT....
June 30, 2011 at 6:51 am
sqlnaive (6/30/2011)
Thanks Nakul. Thats not what I'm looking for. Lolz.Actually looking for "If input string is like AAAA, pqrstuv, xxxx-lmn, ZZZsswD then output string should be 'AAAA', PQRSTUV', 'XXX-LMN', 'ZZZSSWD'".
The...
June 30, 2011 at 2:04 am
Jnrstevej (6/29/2011)
... I didn't think a CASE Statement could achieve what i was looking for so i quickly dismissed it for the IF Statement....
CASE works within a statement, IF chooses...
June 29, 2011 at 7:44 am
Jnrstevej (6/29/2011)
June 29, 2011 at 7:31 am
Steve, working effectively with TSQL, as with any programming language, requires experimentation...
SELECT 'PL01' + '_' + CASE
WHEN vendor IS NULL THEN SPACE(4)
WHEN LEN(vendor) < 4 THEN CAST(Vendor AS CHAR(4))
WHEN LEN(vendor)...
June 29, 2011 at 7:10 am
Can you post the query?
June 8, 2011 at 7:00 am
Jeff Moden (5/15/2011)
ChrisM@home (5/2/2011)
This is probably the simplest set-based solution.
Oh... be careful, Chris. Apologies for quibbling but a Recursive CTE isn't set-based. It's a form of hidden RBAR...
May 15, 2011 at 11:37 pm
You're welcome - and you have the benefit of a fully-documented method 🙂
April 7, 2011 at 8:06 am
lance.kentwell (4/6/2011)
April 7, 2011 at 7:08 am
Hello
Read this article [/url]by Jeff Moden to understand how the following code works.
-- make some sample data
SET DATEFORMAT DMY
DROP TABLE #tblMeeting
CREATE TABLE #tblMeeting(
...
April 7, 2011 at 7:04 am
This should work just fine although it's far from elegant.
SELECT DISTINCT i.ipaddress, u.user_name
FROM dbo.scr_dim_site_request sr
INNER JOIN dbo.scr_dim_site s
ON sr.site_id = s.site_id
INNER JOIN dbo.scr_fct_exact_access ea
ON sr.site_request_id...
April 6, 2011 at 5:43 am
lance.kentwell (4/5/2011)
April 6, 2011 at 2:47 am
Roy Ernest (4/4/2011)
First they tried to hit me from...
April 5, 2011 at 2:07 am
Viewing 15 posts - 6,856 through 6,870 (of 10,144 total)