Viewing 15 posts - 526 through 540 (of 668 total)
Another concern with leaving deleted records in the table is primary key issues. If a user enters a record that was previously deleted, it will fail on the primary...
July 12, 2010 at 7:02 am
I assume you want to delete the records from wce_history.
delete h
from wce_history h
join...
July 12, 2010 at 6:20 am
You're going to need to be more specific on what you want. Can you provide table layouts, sample data and expected results? See the first link in my...
July 9, 2010 at 9:04 am
select *
from #orders o
inner join (select orderLocation_FK, order_FK, max(orderLocationHistoryTS) orderLocationHistoryTS
...
July 9, 2010 at 7:21 am
Are you looking for this? I think there's a better way to write this, but I want to make sure I have the correct result set first
select * ...
July 9, 2010 at 6:42 am
What are you looking for? All records where there was a OrderLocation of Not Processed?
select *
from #orders o
inner...
July 9, 2010 at 6:20 am
I re-read your problem. See how this works? I found this concept from another thread on this site. I'm not going to take credit for all of...
July 7, 2010 at 3:07 pm
we're going to need a little more than this. Can you provide table layouts, sample data, and expected results? It'll be better than us guessing at what the...
July 7, 2010 at 2:05 pm
here is the setup that I am using. The final query returns all insurers regardless of activity. Then if the activity is in the year 2010 it is...
July 7, 2010 at 1:59 pm
That won't work since it will only return 2010 data. You need to add the filter to the sum statement. Keep in mind that since there is no...
July 7, 2010 at 12:41 pm
I'm not sure what you did or what you are looking for. Can you post what you did? If you are looking for all records for the Year...
July 7, 2010 at 12:24 pm
what are the constraints on the new table? You will probably end up with something like Field1 not in (1,2,3) and Field2 not in (4,5,6), etc...
July 7, 2010 at 12:14 pm
not really sure what your question is. Can you pare down your code and add a little more detail to your question?
July 7, 2010 at 12:10 pm
If you did want to use a pivot table, here's the syntax for that, but it's a little more difficult. Both examples had the same explain plan
Select InsurerID, [January],...
July 7, 2010 at 12:06 pm
Viewing 15 posts - 526 through 540 (of 668 total)