I am trying to expand upon and already useful median query in SQL. I need to figure out where to put a GROUP BY statement so I can get the median "length of stay" grouped by a field in the table called "TSheetTitleDescription". The folowing is the median query that works flawlessly:
SELECT...
I need some help with a median calculation. I can calculate the median length of stay for a group of patients with the following query I picked up.
SELECT Avg([R1]) AS Median
FROM [
SELECT Max(Q1.R2) AS R1
FROM
(SELECT TOP 50 PERCENT LOS_min_amb_work.los AS R2
FROM...
I am trying to calculate the median of some times taken from a query. The query calculates time from arrival to disposition in minutes. (by multiplying the time by 1440).
My access report can spit out the average of these for all the patients but the median is a different story. I have dound...
I am looking for some expertise in writing a query. This is from a large Emergency Department database written in access 2000, front and back end......
I have a patient ID (unique), arrival time and discharge time. What I need to do is count the number of peole in the department each hour. I...
I have a reprt based on a query. Each listing in the report has multiple items- name, account number, mode of arrival, diagnosis. All of the items are single in the listing except diagnosis which may have multiple items. When I run the report it lists a name and account number and all the...
How do I move a database I created and secured on my laptop to a network drive and then on to computers for other folks to use? I have copied the security file (mdw) to the other computer but it does not give me the ability to use the workgroup administrator tool to join the mdw file. It says...
I have an extensive database I would like to convert to SQL server. I created it in Access 97 and have upgraded to access 2000 (no further as all of the computers on the network do not support Access beyond 2000). I have a front end on each cmputer that uses it and a backend residing on one of...
I am looking for a way to use the time interval to automatically shut down a database after a period of inactivity. It is health care related and HIPPA requirements dictate this.
Any thoughts on the code would be appreciated.
And where the code should be inserted- into the main data entry form...
I am working on a duplicates query. Some data points I am using are the date and say medical record number. I am looking to run a duplicates query between certain dates. That part is easy. But I want the records to be returned only if it is a duplicate in the last 48 hours. So for instance...
I have a main report based on 3 subreports. Of course the three subreports are based on 3 queries. I want all three subreports to limit the records to a certain date range.
Now I can do it for each subreport by specifying in the query under the date field "between [paramter 1] and [parameter...
I need some help writing a query. I need to know how many patients are in my department at a given day and time. Currently, my database records the time they are admitted and the time they are discharged. Arrival time is HospitalArrivalTime which gives date and time. It is shortened using...
I have taken a few folks advise and created a date field that defaults to todays date and a time field that remains an enterable field on the form. However, I still need to have the date/ time field as I have multiple queries(hundreds) based on it so I am looking to this group for an answer-
On...
I have a form that uses a query of an underlying table as it's record source. I have a date/time field as follows:
Arrival Time 09/02/03 16:33
I use an input mask as follows
99/99/00\ 00:00;0;*
Now to the problem- to speed up data entry (since my IT department can not generate an interface...
I have an interesting problem in trying to get report dates. I have a query to report a count of certain records. a report is linked to this query that is run each day and gives the total by day starting at the begining of the month through the current day. I t is run each moring for the...
OK complex problem I have not been able to get to the bottom of. I have a query that needs to pull out records for a time period as follows:
SELECT [11-7_tally_report].DispositionVehicle, [11-7_tally_report].[ED#], [11-7_tally_report].Pediatric, [11-7_tally_report].Adult...
How would I return a time interval based not on 24 hour clock but rather based on 11pm one day to 11 pm the next day?
I am able to sort my records by hour but I need to then count them by the time interval of 11pm-7am(which of course crosses over the midnight time period into a new day) 7am-3pm...
I want to run a report part of which is based on a query with a date/time field. I want the report run each day from the begining of the month without user input of dates. So for example, today is 8/13/03 and todays report would include all of the dates from 8/1/03 through today and tomorrow...
I have the following SQL statement in a query:
IIf([Detail]![DispositionCode]=41,1) AS Admitted
Where 41 is the admitted disposition code. I would like for it to say if it is 41 or 31 or 12, 1 as admitted but I can not come up with the correct syntax.
And I need to use this because in the...
I am trying to create help files for my database. Any suggestions on how to set this up? I have thought about setting up a control that opens a switchboard but am not sure then where to place the help files.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.