Viewing 15 posts - 151 through 165 (of 668 total)
Are you just loading into those 2 tables? How is the data being loaded? Can you create a staging table with these constraints already on them, then use SSIS to...
January 11, 2019 at 12:09 pm
Not sure what the leading decimal is before concat, but the column name should have any effect, even though those columns names are not good.
create table...
January 11, 2019 at 12:03 pm
No idea what you are asking. Sounds like homework to me
January 11, 2019 at 8:22 am
I would start with the parts that are reaching across databases. Here's a few:
select top 1 * from CoreHistory..PRODUCT where PRODUCT_ID = c.PRODUCT_ID order by SESSION_ID desc
select...
January 10, 2019 at 1:44 pm
without any ddl and sample data or an execution plan, we can't help at all. what performance issues are you having? How long does it take?
January 10, 2019 at 1:14 pm
Are there any triggers on the table?
January 10, 2019 at 12:49 pm
If it's a stored procedure, then either @FYTD_Min and @CYTD_Min are passed in as parameters or looked up somewhere, just don't hardcode them. You could have them passed with default values (sorta...
January 9, 2019 at 9:47 am
without and ddl, sample data and expected results, it will be hard for anyone to help you.
January 9, 2019 at 9:31 am
select t.YearMonth,
t.Department,
t.CPT,
t.FSC,
t.Location,
t.Units,
SUM (Units) OVER (ORDER BY CPT, yearMonth, Department, FSC) AS RunningTotal
from #T t
January 7, 2019 at 12:21 pm
What if you left the table as it is and then add columns to the end as needed? Not sure why you want to keep the table as close to...
January 7, 2019 at 7:31 am
this was triple posted. I responded to this one
January 4, 2019 at 12:52 pm
This is triple posted. Please use this link as that is where I posted a response
https://www.sqlservercentral.com/Forums/2015379/Query
Duplicate posts are this one and https://www.sqlservercentral.com/Forums/2015382/Need-Specific-result
January 4, 2019 at 12:51 pm
I've seen alot of people (even developers) refer to CSV files as Excel files because they have associated csv extensions with Excel. Some of the questions the OP asked are...
January 4, 2019 at 9:59 am
I was able to get this to return the correct data. Format File and data file are attached
Here's the sql
...
January 4, 2019 at 9:50 am
Viewing 15 posts - 151 through 165 (of 668 total)