Sql DB
2 TopicsSQL Table refresh
Hello Community, need your help on this ( i am not able to attach files so pasting a sample of table) I have a table as per the below structure Run Date Region Manager supplier part spend 10-Mar-23 Region3 Manager3 Suppr2 Part3 18891 10-Mar-23 Region1 Manager1 Suppr2 Part3 10824 10-Mar-23 Region3 Manager2 Suppr3 Part2 14979 10-Mar-23 Region3 Manager2 Suppr1 Part3 15868 10-Mar-23 Region1 Manager2 Suppr3 Part3 15111 10-Mar-23 Region1 Manager2 Suppr1 Part2 19506 my organization does not grant create table access on the server so workaround is to dump the above table into Access DB which i will use to create reports in Power BI. The ask here is the owner of this table will refresh spend values for the existing dataset without altering the table structure and append data only in case a new region or a new manager or a new supplier has sent the data every before fiscal month run. the april run month table is now like this(Red ones are the new data received) Run Date Region Manager supplier part spend 10-Apr-23 Region3 Manager3 Suppr2 Part3 77036 10-Apr-23 Region1 Manager1 Suppr2 Part3 366771 10-Apr-23 Region3 Manager2 Suppr3 Part2 100775 10-Apr-23 Region3 Manager2 Suppr1 Part3 434291 10-Apr-23 Region1 Manager2 Suppr3 Part3 169688 10-Apr-23 Region1 Manager2 Suppr1 Part2 75593 10-Apr-23 Region 2 Manager4 Suppr1 Part2 340684 10-Apr-23 Region 2 Manager4 Suppr4 Part4 253959 10-Apr-23 Region 2 Manager1 Suppr4 part1 341101 10-Apr-23 Region 4 Manager2 Suppr2 Part5 28213 10-Apr-23 Region 4 Manager3 Suppr3 part1 42718 what i need is there should be some way to keep the old data table in access and a new column/table is added as per run date so that i can substract values from previous run to current run and check which region > manager> supplier> part has shown a high variance.792Views0likes0CommentsForce world wide queries to single time zone
Hello, I hope somebody would be able to help me. We are using an Azure SQL database. When querying datetime fields, the result is adjusted for the time zone that you are in. As example, I have a column called CreationDate in table Bronze. A record is inserted in California with a system datetime of 1 July 08h00 (Pacific time). When somebody in Ireland queries the data, the value in CreationDate reflects 1 July 15h00 (Irish time). We know that we can force the time during query time (see query below), but that means that all reports need to include this logic. We would prefer if there was an Azure SQL configuration setting that will always return the same value, regardless of time zone. Could anybody tell me how we do this? Thank you - Jaunine SELECT [CreationDate] ,CONVERT(DATETIME2(0), [CreationDate], 126) AT TIME ZONE 'GMT Standard Time' AT TIME ZONE 'Pacific Standard Time' as pst_date FROM Bronze where trim([item]) = '1524200'Solved2.3KViews0likes5Comments