Limit Results Based on Aggregated Threshold
Problem
A post was recently added to one of the forums that I monitor so that I can help users in...
2011-04-11
1,693 reads
Problem
A post was recently added to one of the forums that I monitor so that I can help users in...
2011-04-11
1,693 reads
SQL Saturday #70 (Twitter: #SQLSat70) was another successful event! And...I had yet another full house (some even left due to...
2011-03-19
425 reads
If you are anywhere within driving distance to Columbia, South Carolina, register NOW and then hop in your car Friday...
2011-03-18
432 reads
This site really is about business intelligence, but it is good to mix things up a bit every now and...
2011-03-15
708 reads
In a previous blogs, I discussed what shared schedules were and walked you through step by step instructions on how...
2011-03-08
2,201 reads
In my two previous blogs in this series, I discussed shared schedules and walked you through step by step instructions...
2011-03-03
958 reads
I can’t tell you that all of your dreams will come true. I won’t tell you that you will make...
2011-03-02
530 reads
In my previous post, I discussed what shared schedules were and how you could use them. With that knowledge under...
2011-03-02
1,911 reads
As you will see by the dates in my screenshots, I wrote them quite a while back while touring the...
2011-02-28
2,376 reads
Most of my examples utilize either adhoc type of data samples or one of the versions of AdventureWorks. I do...
2011-02-27
2,798 reads
Here’s a way to centralize management, rotate secrets conveniently without downtime, automate synchronization and...
This may or may not be helpful in the long term, but since I’m...
By Steve Jones
“I’m sick of hearing about Red Gate.” The first article in the book has...
Comments posted to this topic are about the item Dynamic T-SQL Script Parameterization Using...
Comments posted to this topic are about the item Widespread New Technology Adoption
Comments posted to this topic are about the item Multiple Sequences
In SQL Server 2022, I run this code:
CREATE SEQUENCE myseqtest START WITH 1 INCREMENT BY 1; GO CREATE TABLE NewMonthSales (SaleID INT , SecondID int , saleyear INT , salemonth TINYINT , currSales NUMERIC(10, 2)); GO INSERT dbo.NewMonthSales (SaleID, SecondID, saleyear, salemonth, currSales) SELECT NEXT VALUE FOR myseqtest , NEXT VALUE FOR myseqtest , ms.saleyear , ms.salemonth , ms.currMonthSales FROM dbo.MonthSales AS ms; GO SELECT * FROM dbo.NewMonthSales AS nmsAssume the dbo.MonthSales table exists. If I run this, what happens? See possible answers