Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
nareshthavidishetty
Creator III
Creator III

SQL Query

We are hvaing two tables

Fact:

sales,

Code1,

TransID

from XYZ;

Dim:

TransID,

Quantity

from ABC;

Qlikview logic: sum(Quantity) where dimension = Code1

Please provide the SQL query to check in SQL DB for UT.

Thanks..

1 Solution

Accepted Solutions
Clever_Anjos
Employee
Employee

Maybe

SELECT

     Code1,

sum(Quantity)

from XYZ

INNER JOIN ABC on ABC.TransID = XYZ.TransID

group by Code1

View solution in original post

4 Replies
Anil_Babu_Samineni

I don't see any Logic in Qlikview here, What are you trying and what you want to use in SQL? Please provide full picture

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Clever_Anjos
Employee
Employee

Maybe

SELECT

     Code1,

sum(Quantity)

from XYZ

INNER JOIN ABC on ABC.TransID = XYZ.TransID

group by Code1

prashantsanchet
Creator
Creator

SELECT

     Code1,

sum(Quantity)

from XYZ

INNER JOIN ABC on ABC.TransID = XYZ.TransID

group by Code1

its_anandrjs

In Qlik you can try this

Fact:

sales,

Code1,

TransID

from XYZ;

Inner Join(Fact)

Dim:

TransID,

Quantity

from ABC;

Noconcatenate

NewChk:

Load

Code1,TransID,

Sum(Quantity) as QtySum

Resident Fact

Group By Code1,TransID;


Drop table Fact,