Viewing 15 posts - 2,971 through 2,985 (of 5,502 total)
Why not
1 1 jane doe
3 2 joe doe
What's the rule to select one name out of many? Min(id), Min(name), max(name) or something else?
August 19, 2010 at 3:53 pm
Depending on the number of rows and whether the data can be aggregated asynchronously or not I would either use
ROW_NUMBER() OVER(ORDER BY RowId ) - ROW_NUMBER() OVER(PARTITION BY RowType...
August 19, 2010 at 3:51 pm
Based on Ninja's_RGR'us code snippet:
SELECT LEFT(@str,LEN(@str)-CHARINDEX('\', REVERSE(@str), 1))
August 19, 2010 at 3:33 pm
Would you mind providing some sample data that reflect table structure and data structure (e.g. How can the checkpoint rows be identified? Is there an identity column? or the like)
August 19, 2010 at 3:27 pm
Use ROW_NUMBER() OVER(PARTITION BY Rx_Nbr ORDER BY System_ID) as pos in a CTE (or subquery)
and select the data using
SELECT
Rx_Nbr,
MAX(CASE WHEN pos=1 THEN NewNDC_Nbr ELSE...
August 19, 2010 at 2:49 pm
Hi Forum Newbie ( 😉 )
At a first glance: it's the same issue like the first file:
There is a line where the default namespace is reset to an empty string:...
August 19, 2010 at 6:13 am
I think we're all intrigued by the why, but there's one thing I consider being worse.
And it's not Jack and Jeff being rejected. It's the way the decision has been...
August 18, 2010 at 5:41 pm
I didn't know you're trying to add some value to a 3rd party app ... 😉
Do you know the table structure and how you need to query it to get...
August 18, 2010 at 5:16 pm
If you only need to know if a client id exists use EXISTS instead of COUNT(). See Gail's related blog[/url].
Side note: Is there any index on clientId to support...
August 18, 2010 at 2:30 pm
The lock icon basically means you don't have the permission to view or modify it.
I'd recommend you get someone with the proper permission asking him to give you a function...
August 18, 2010 at 2:13 pm
There is simply not enough information to give any advice.
What do you mean by "is locked"? What is the purpose of the procedure? What is the structure of that "list...
August 18, 2010 at 12:40 pm
I would use XQuery over OpenXML.
However, I had to change your sample data:
Your row < NewDataSet xmlns="" > will result in an XQuery error since you need to use valid...
August 18, 2010 at 10:19 am
You don't have a "source" defined to apply the WHERE clause to. Your source is a table with one row and one column holding the month of getdate():
IF Exists (
SELECT...
August 18, 2010 at 6:26 am
to "quote" Bob Dylan:
"How many chars can I split with this code
before it will starting to fail?
The answer, my friend, is written in the link[/url].
The answer is...
August 18, 2010 at 5:21 am
Viewing 15 posts - 2,971 through 2,985 (of 5,502 total)