Viewing 15 posts - 11,866 through 11,880 (of 15,381 total)
sqluser_8119 (5/23/2012)
This isn't real data so relax
LOL. I meant the info in your desired output. Obvious the inserts is fake stuff.
So it looks like Lynn and I posted the...
May 23, 2012 at 1:49 pm
komal145 (5/23/2012)
I want status for only those records which have sys_current_step(5) = "enrollmentanalyst"
and status will complete or pending.
I need to know the status of records...
May 23, 2012 at 1:42 pm
I think something along these lines is what you are after?
select * from
(
select claim_stat, patient_nbr, status_note_code, biller_cd, form_id, patient_name, entry_date, process_date, tracking_id, claim_id,
ROW_NUMBER() over(partition by patient_nbr, claim_stat order by...
May 23, 2012 at 1:40 pm
sqluser_8119 (5/23/2012)
- If...
May 23, 2012 at 1:33 pm
Took me a couple to find the article from Jeff about this topic.
http://www.sqlservercentral.com/articles/T-SQL/74118/%5B/url%5D
May 23, 2012 at 1:18 pm
derek.colley (5/23/2012)
Lynn - trying yours now 🙂 The more practice I get...
May 23, 2012 at 1:14 pm
OK if you really want some help you have to help me understand what you are trying to do. You want a new table with a single column in it?...
May 23, 2012 at 1:00 pm
diva_di_dati (5/23/2012)
May 23, 2012 at 12:42 pm
komal145 (5/23/2012)
107141Initiated5/18/2012 16:01ADMIN
107145Customer Service5/18/2012 16:01ADMIN
107145Enrollment Technicia5/18/2012 16:07ADMIN
107145Customer Service5/18/2012 16:07ADMIN Pending
1071Imported5/12/2012 13:49ABD Pending
1075Enrollment Analyst5/12/2012 13:49ABD2 Pending
1071Routing5/12/2012 13:49ABD3 Pending
1073ENROLLMENT TECHNICIA5/12/2012 13:49ABD4 Pending
1081Routing5/18/2012 2:03ABDComplete
1085Enrollment Analyst5/18/2012 2:03ABD2Complete
1085Intake5/18/2012 2:03ABD3Complete
1083INDEXING5/18/2012 10:29ABD4Complete
1084Enrollment Analyst5/18/2012 10:53ABD5Complete
My...
May 23, 2012 at 12:40 pm
diva_di_dati (5/23/2012)
select RECIP as recipno,
DIAGNOSIS_CODE as diag_1,
/*icd 9 codes must be 5 in...
May 23, 2012 at 12:37 pm
Did you read the article that Paul posted? It explains DATEDIFF quite well. Here is again so you don't have to scroll around for it.
http://www.sqlteam.com/article/datediff-function-demystified
May 23, 2012 at 12:32 pm
diva_di_dati (5/23/2012)
What is OP? Be kind guys
OP = Original Poster
--EDIT--
Now just stop Lynn...that is about the 10th post you did this today!!! 😛
May 23, 2012 at 12:30 pm
quillis131 (5/23/2012)
I was wondering and cannot think straight on this, So I came with an idea of getting ideas/views from different people..
HARD RULE : When a Primary Key is defined...
May 23, 2012 at 12:22 pm
derekr 43208 (5/23/2012)
Yes. As I explained earlier, the first query has a correlated subquery in the EXISTS predicate. This query is run for each row in the outer...
May 23, 2012 at 12:10 pm
So what do you want for output? Try creating a temp table and insert to hold what the desired output should be. I don't get it from your description.
May 23, 2012 at 12:03 pm
Viewing 15 posts - 11,866 through 11,880 (of 15,381 total)