Viewing 15 posts - 1 through 15 (of 358 total)
Using the representative data you have supplied do you actually need to use cross apply, a simple left join will return your expected results
select a.patient,ProcDate,ResultDate,Value
from...
June 11, 2021 at 12:18 pm
could you supply some example representative data and what your expected outcome is?
June 11, 2021 at 12:05 pm
must you really shrink the TEMP DB, would it not be better to increase the diskspace.
February 15, 2021 at 4:22 pm
Assuming tables are joined on product type you could run through a CTE, use Row_number() to identify the most recent check and return your full list .....
;with...
February 15, 2021 at 4:10 pm
Looks like a duplicate post, Tarr94, take a look at what i posted on your origonal post https://www.sqlservercentral.com/forums/topic/sql-server-data-migration#post-3729874
March 4, 2020 at 9:37 pm
Sorry it took so long for me to get back to you, been a tad busy, here is the most basic example of a migration from a source system into...
February 29, 2020 at 8:23 pm
I would check with the Vendor that you can do can update the database your self otherwise as frederico_fonseca explained you may be in breach of contract therefore you will...
February 10, 2020 at 8:48 pm
there are many ways to complete a migration of data and there are plenty of tools to help you out, that is if you have a budget for such tools.
i...
February 6, 2020 at 10:56 am
your query is most likely doing a costly sort operation etc, do you have an actual execution plan? also can you provide data structure and indexes for the table
February 3, 2020 at 9:13 am
Sorry my bad i pasted the wrong field
update a set a.Person =b.Person_to,
a.Pctg=b.Pctg_New
from #holders a
join #transfers b on a.person=b.person_from and a.kind=b.kind
this will give you the same results as your cursor, by...
January 21, 2020 at 1:52 pm
im not 100% sure what you exactly want however, i would recommend you reading Jeff Moden article on tally tables and remove your loop.
January 21, 2020 at 12:55 pm
no need to use a CTE, a simple join will do the job, only 2 records in your holders table match your transfers.
select *
from #holders a
join...
January 21, 2020 at 12:39 pm
your table is not fragmented as it cant be, your table is a heap.
November 21, 2019 at 9:06 am
Fantastic article, do you have any links to using the % to return value. never seen the use of % like this (T.N-1)%3 +1
thanks
November 16, 2019 at 12:23 pm
are you just wanting to count the number of occurrences of a date regardless of time, example,my orders table stores datetime so if i count orders created yesterday i get...
November 8, 2019 at 10:29 am
Viewing 15 posts - 1 through 15 (of 358 total)