Convert Cross Join to Inner Join
Hopefully this isn't too daunting given that I'm providing a rather lengthy piece of sample code. I understand that cross joins using where clauses are the same as inner joins but I would rather...
View ArticleAn aggregate may not appear in the WHERE clause
Hi,Having trouble with this one:[code="sql"] SELECT * FROM [SQLNODEBSTAGE].[PEC_PROD].[DBO].[Staging_Eligibility] WHERE MAX(staging_eligibility_id) <> (SELECT MAX(staging_eligibility_id) FROM...
View ArticleCoalesce and ISNULL not grabbing columns with NULL
I am trying to combine data from two tables. 1 table has a column where a value could be NULL. When I run my select, I never see the row with the NULL value. Here is my commandSELECTCOALESCE...
View ArticleQuery optimization
Hi all,I've been searching for a tool that would take a query (sql server) and generate alternatives and execute each x number of times so that you can see its performance and sort by that. I remember...
View ArticleHASHBYTES MD5 - problem
Hi,I run into a problem while loading data into DataVault. I create my dv key with HASHBYTES('MD5', <business key>)The load failed due 'Duplicate data' error and the duplicate key being:...
View Articlethe reasons with a intent to development
And below no strikes ate the reasons with a intent to development your wellness; you’ve most additional further additional additional almost always than now not than now...
View Articlesp_prepexec failing to get the handle
Hi,my colleagues have a problem where IBM DataPower acts as the gateway between SqlServer and their software (I don't know the details). What happens is that with some customer numbers they always...
View ArticleUpdate column data from Linked Server
Hello everyone,It seems that I get stuck with updating column data from Linked Server.It would be great if someone could assist. :)So, this is the updated script from Linked Server:[quote]UPDATE [DATA...
View ArticleDetox Diet Recipes; They Just Don't Work
Friends; i want to show you my 3 Garcinia Slim Diet nutrition tips to drop pounds. These will really allow you melt the pound merchandise in your articles just provide them a fair shake. How to attract...
View ArticleDynamic pivot and its effect on the plan cache
We have a heavily used GUI that displays specific business data in a pivot.A stored procedure is used to create the pivot, using dynamic SQL.The SP is using EXEC sp_executesql with parameters in the...
View ArticleApproach to normalising 15 million transactions
We have a requirement to normalise 15 million historical transactions into a number of tables. This involves various transformation processes currently implemented in T-SQL stored procedures. Current...
View ArticleSSAS Calc measure on filtering multi-members
HelloI am trying to create a formula in Calculated measureDimension Cell has multiple members including Control and Core. There is one more dimension called Data. I also have measure called...
View ArticleSQL Server Thesaurus on AWS RDS
Any way to use thesaurus on AWS instance with no access to the underlying file system to edit the xml file ?Any other alternatives ?I'm stuck hard with this!Any quick help is appreciated.Peeyush
View ArticleEasier Way to Access Extended Events?
We have extended event definitions on all our non-prod servers, primarily to aid with debugging and development. At any point we can look to see a list of almost-real-time stored procedure calls.The...
View Articlewant no header row in output
Is there a way to call a sql select w/o it returning the column header row? Is there some sort of setting i can run before the select?
View ArticleTurn Column into Rows
Hello, I am looking to take 1 column and take that data and turn it into a row. Basically, I want to take a range of dates and make the columns. Here is my same code:CREATE TABLE #Dt_Range (DtCols...
View ArticleXML Schema Collection from multiple XSD files
Hello,I need to generate XML files for a new customer, using standard Electronic Commerce Format they have (https://vefa.difi.no/ehf/)I have three XSD files - one has compexTypes as below and the other...
View ArticleToo many stored procedures
Hi all,I have hundreds of SPs and I was thinking that maybe I could do a SP that runs all of the other ones, instead of creating a separate job step for all of them.New SP's are still being developed...
View ArticleHow to Calculate the Values for a Column having Formulas , The Formula...
I have the table contents as shown in this picture:screenshot[img]https://i.stack.imgur.com/FAuzP.jpg[/img]The formula column contains the the column names as variables in the formula expression.I am...
View ArticleNo data in one column of a view (NULL value instead
Hello,I have a table [DataXYZ].[dbo].[DataXYZ_GeoLoc_Input] with, as you can see, data for both "x" and "y" columns for year 2015:[img]http://www.cjoint.com/data/FKxqcfsonpU_XYZ-input.png[/img]I have a...
View Article