shake off the space dust
[url=https://livestream.com/ispot/events/7745392]Patriots vs Texans Live Streaming[/url]
View Articlepreviously directed episodes
[url=https://livestream.com/ispot/events/7746006]Packers vs Bengals Live Streaming[/url]
View Articlesp_send_dbmail HTML with status update
Hi I'm working on a project that involves sending mails to people to update them about progress made.The thing is that I have to do it with like arrow sign posts progress bar, something like on the...
View ArticleTSQL Query help plz..
Hi All,Need tsql help please. Below is the sample schema/tables and description is written at the end(my requirement).use master go create database banking go use banking go create table BankBran
View ArticlePerformance choice: computed persisted field in aa base table, vs. identical...
Hi all,I've been working a performance issue that occurs from time to time with a reporting stored procedure, and I've got solutions readily available to me, but I'm wondering about methodology that...
View ArticleRetrieve multi-year data based on a table with Year and Week Number columns
I have business data (simplified) that has a table with columns: Year, WeekNo and Amount.e.g. (all amounts are examples only)2017, 4, 10.002017, 5, 20.002017, 6, 15.002017 ....2017, 51, 23.002017, 52,...
View ArticleCode-first vs database-first, any new developments?
I'm discussing this topic with a developer, and I'm also performing due diligence and looking for other opinions on the internet. I'm finding quite a bit of information, and it's tough to tell how much...
View ArticleHash index on memory-optimized table
I have a memory optimized table where I currently have a hash index on two columns. Most of my queries have in the join or where clause the two columns and only the two columns. I have a few queries...
View ArticleT-SQL - Script gone... bad?
I hope you can help me. I have been informed that the code I wrote does not have mutually exclusive case statements for the WH_STATE_CD. I am clueless as of how to fix it (it may be so simple that it...
View ArticleBest Practice to Write a View for 3rd Parties
We have a fees table, which we shall now share with other departments, meaning they should only be able to query the fees.Until recently I would simply write CREATE VIEW fees_viewASSELECT fees_Id,...
View ArticleHow can this query be rewitten?
Hi Experts, I have written a query based on our requirement using co-related sub-query. Checking if this can re-written using a JOIN instead of co-related subquery? Mainly, 5th column in the SELECT...
View Articleinsert from flat file
How do you insert data into a table variable from a flat file?[code language="sql"]DECLARE @Format TABLE( Field1 VARCHAR(50), Field2 VARCH
View Articleselect from flat file
How do select from a flat file?[code language="sql"]SELECT Field1 ,Field2 ,Field3 FROM OPENROWSET(BULK 'C:\Test.txt' ,FORMATFILE='C:\Test.txt') AS Test WHERE Field1 &
View ArticleCount of Cells based on columns in SSRS
Select TOP 1000 SUM(UnitPrice),SUM(ExtendedAmount)FROM dbo.FactInternetSaleswhere SalesTerritoryKey IN (6,7,1,9,4)How can I write expression in SSRS to achive this kind of aggregation.
View ArticleDatabase design to handle Millions of records
Dear Techies,Please suggest how should design database to handle millions of records. And also let me know strong points to handle that much of records instead of another database(Like Oracle, DB2,...
View ArticleUpdate a #temptable IF @Table_Variable
Hello, I'm trying to update a #TempTable IF @Table_Variable <> to a couple values, but I can't seem to get the syntax right.I think I'm close, but either getting the error "Must declare the...
View Articletsql help
Hi Experts, Need tsql help. I have a table row as follows. Basically, it will contain a huge string values delimited by a pipe '|' symbol.requirement is to spilt single column value into multiple...
View Article