Relative Content

Tag Archive for sqldatabricks-sql

Finding the linked orders data in sql

trying to find the chain of orders using SQL query joining below two tables. If one order is dependent on two orders then the baseline order will be the one with minimum created_date.

Finding the linked orders data in sql

trying to find the chain of orders using SQL query joining below two tables. If one order is dependent on two orders then the baseline order will be the one with minimum created_date.

Sum Register With Date SQL

I’m trying to create this query at work, but when I run it it shows the following error, basically it adds up if the record is in that period of the week: