Scripts

Technical Article

Get FirstDate and LastDate of Every month from two Dates

Get FirstDate and LastDate of Every month from two Dates.

Like IF we have @date1='05/02/2015' and @date2= '11/25/2015' then we will get list of first date and last date from month 5 to 11.

SELECT ID,FirstDate,LastDate,Month,Year FROM [GetFLDatelist](@date1,@date2)

★ ★ ★ ★ ★ ★ ★ ★ ★ ★

(5)

You rated this post out of 5. Change rating

2015-11-09 (first published: )

1,299 reads

Blogs

Monday Monitor Tips: Cloud Migration

By

We added costing information awhile back to Monitor for your cloud VM estate. We’ve...

Word to the wise: don’t turn on SQL vulnerability checks on a blog about SQL

By

Recently, in an attempt to thwart leechers (1990s kids will know), I added some...

Dazzling Stuff in Databricks (SQL) – Qualify

By

Once upon a time I had a series about some cool stuff in Snowflake:...

Read the latest Blogs

Forums

BCA KCU Bukit Darmo Boulevard Telp:0821-8200233

By layanan_Bca88

Telp/Wa 628218200233 Jl. Mayjend. Jonosewojo No.14, Pradahkalikendal, Kec. Dukuhpakis, Surabaya, Jawa Timur 60225

Layanan BCA KCU MOJOKERTO (Telp):0821-820-0203

By m4rt1n4

Telp/Wa 628218200203 Jl. HOS. Cokro Aminoto No.5, Mergelo, Jagalan, Kec. Magersari, Kota Mojokerto, Jawa...

The Speed of Count

By Steve Jones - SSC Editor

Comments posted to this topic are about the item The Speed of Count

Visit the forum

Question of the Day

The Speed of Count

Which of these might run quicker on the AdventureWorks database in SQL Server 2025?

-- A
select count(*) from AdventureWorks.Sales.OrderDetail

-- B
select count(1) from AdventureWorks.Sales.OrderDetail

-- C
select count(OrderDetailID) from AdventureWorks.Sales.OrderDetail

See possible answers