Skip to content
Advertisement

Tag: ssms

Filter out certain rows based on condition

I have this Input Table: I want to check each project separately then exclude If the project owner has his name inside col2 and other people with him, then remove the row which is repetitive Jack Jack, a. For example, In Project B Jack has his name inside Col2 and he is working with Maria , so remove Jack Jack

Insert Data Into Temp Table with Query

I have an existing query that outputs current data, and I would like to insert it into a Temp table, but am having some issues doing so. Would anybody have some insight on how to do this? Here is an example This seems to output my data currently the way that i need it to, but I would like to

sql runs fast in ssms slow in asp.net

I have been having this problem for a couple of weeks now. The problem is that the query takes 4-5 minutes to run on the website and at most 2 or 3 seconds to run in ssms. Also I found that after I make a change to this query like adding the customerId variable it will start running quickly on

How to create a summary view from multiple views?

Given I have the following view where N=1..100 Currently we have summary views which insert to a table like The table is then used to create an overall summary like Is there a way to create summary_view_all_plants without having to create each individual summary_view_N? I would like to be able to iterate though a list of reports and dynamically generate

Advertisement