dimension

Technical Article

Date Calendar

  • Script

Code to create a handy date calendar cross-reference table with a ton of pre-populated, slice-and-dice data field variations to aid in complex date parameterization / selection criteria.

4.72 (53)

You rated this post out of 5. Change rating

2019-04-15 (first published: )

15,119 reads

Technical Article

RE: PLEASE HELP NEEDED? - with a select avg

  • Reply

Here's a shot in the dark:USE NORTHWIND SELECT  CustomerID  , COUNT(*) No_of_Orders  , DATEDIFF(d,MIN(OrderDate), MAX(OrderDate)) TimeSpan  , COUNT(*)*1.0 / DATEDIFF(d,MIN(OrderDate), MAX(OrderDate)) DailyOrder FROM  Orders WHERE CustomerID = 'ERNSH' AND (OrderDate >='19960717' AND OrderDate <='19960723') GROUP BY CustomerIDBtw, since this is an exercise given to you, don't you think you should find the solution yourself?

You rated this post out of 5. Change rating

2005-02-24

Technical Article

RE: oracle pl/sql

  • Reply

I would post Oracle related questions here http://www.LazyDBA.com . They maintain a mailing list oracledba@lazydba.com which is quite active. Frank http://www.insidesql.de http://www.familienzirkus.de

You rated this post out of 5. Change rating

2003-11-21

1 reads

Technical Article

RE: SA do I need to remember the password

  • Reply

I think Microsoft made Great Plains use the SA by design not by default. GP goes into SQLServer as SA and does all kinds of "System Administrator" kind if stuff when setting up users and customizing the application. Its a real pain as the DBA to work with this because the Director of Finance wantes […]

You rated this post out of 5. Change rating

2003-11-14

Blogs

Real-World SQL Mastery: Your Hands-On, Mess-Free Sandbox

By

Are you ready to take your SQL skills from theoretical to tactical? If you've...

Set a Runtime Variable in an Azure DevOps Pipeline

By

Note: I DO NOT recommend this. Any changes to a pipeline should be in...

A New Word: Symptomania

By

symptomania – n. the fantasy that there’s some elaborate diagnosis out there that neatly...

Read the latest Blogs

Forums

7 sept, scheduled book

By philip.scott

Comments posted to this topic are about the item 7 sept, scheduled book

7 sept, schedlued article

By philip.scott

Comments posted to this topic are about the item 7 sept, schedlued article

6 sept, published book

By philip.scott

Comments posted to this topic are about the item 6 sept, published book

Visit the forum

Question of the Day

Azure Data Lake Storage Gen 2

Azure Data Lake Storage Gen 2 is built on ...?

See possible answers