Databases
--
Questions
--
Followers
Top Experts
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
CUR_QTR:
LOAD
      NAME,
      DATE1,
      COMPANY,
      AMT,
      LEFT(DATE1,4)            AS YR,
       RIGHT(DATE1,2)            AS MTH
;
SELECT *
FROM CUR_QTR;
JOIN(CUR_QTR)
LOAD
NAME,
      DATE1,
      COMPANY,
      AMT,
      LEFT(DATE1,4)            AS YR,
       RIGHT(DATE1,2)            AS MTH
FROM
[C:\TEST.xlsx]
(ooxml, embedded labels, table is Sheet1);
This is the query from Qlikview. CUR_QTR is the table from SQL server that has data for 201703 only. For prior period the data is loaded from Excel file. While creating the pivot table in QLikview, this script is used to create dimensions n measures. Measure is the sum(Amt).

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
DIFF1 : {201703} - {201612}
Provided tested solution.






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
Databases
--
Questions
--
Followers
Top Experts
Databases are organized collections of data, most commonly accessed through management systems including schemas, tables, queries and processes that allow users to enter and manipulate the information or utilize it in other fashions, such as with web applications or for reporting purposes.