Viewing 15 posts - 466 through 480 (of 533 total)
Michael Valentine Jones (4/7/2010)
Baseball would be better with a true open market: uncapped salaries, no draft, and uncapped ownership.
Salaries are already uncapped.
Getting rid of the draft would be the...
April 16, 2010 at 11:24 am
By the way, you would really only use the above example with the subquery if there were additional fields that you want to include that are associated with that max...
April 16, 2010 at 10:52 am
A simple subquery also works:
SELECT t.id,
t.name,
t.[date]
FROM @Test t
WHERE t.[date] = (SELECT MAX(sq.[date]) FROM @Test sq WHERE sq.id = t.id and sq.name = t.name)
April 16, 2010 at 10:45 am
Yes we can!
April 15, 2010 at 5:29 pm
Lynn Pettis (4/15/2010)
April 15, 2010 at 4:39 pm
Is there any purpose for this process other than building a comma delimited flat file for another system?
April 15, 2010 at 4:18 pm
WayneS (4/15/2010)
bteraberry (4/15/2010)
April 15, 2010 at 3:46 pm
IMO opinion then your primary key should be a composite of:
ID of person entering +
patientID +
visitID
You can just run SQL queries to generate reports on where the same patient/visit had...
April 15, 2010 at 3:07 pm
So there could be a situation where the same person answers the same questions for the same visit in two different ways and you want to enter both sets of...
April 15, 2010 at 2:48 pm
So you want the same patient to be able to take the same test on the same visit multiple times so long as they provide different answers? That doesn't...
April 15, 2010 at 2:27 pm
SQL Server Books Online is your friend.
sys.dm_exec_query_stats:
total_worker_time
bigint
Total amount of CPU time, in microseconds, that was consumed by executions of this plan since it was compiled.
April 15, 2010 at 11:23 am
I've done that before with just a very simple vb.net windows service. All it does is watch a folder and then fire a specific package based on the filename....
April 13, 2010 at 4:33 pm
Not sure if I understand, but if you want to get values in separate columns rather than delimited in one column, why are you using XML PATH?
April 13, 2010 at 3:42 pm
That's progress, but I'm still not quite sure what you're looking for. So you only want to do an update if exactly one of the names is found within...
April 13, 2010 at 12:43 pm
Viewing 15 posts - 466 through 480 (of 533 total)