Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
deepakqlikview_123
Specialist
Specialist

data model

Hi All,

Please find attached QVW file.

I want to join Rep_MisBRC_Vehicle_Mapping table to Ves_Vehicle_Master by using Vehicle ID.

I want to retrieve all records from table Ves_Vehicle_Master.I also want to remove all synthetic keys

Can u please suggest what would be good data model for this.

Thanks,

1 Solution

Accepted Solutions
its_anandrjs

On the base of the  VehicleID you can join this two tables and for avoiding the synthetic keys rename the fields or remove it from the tables see the script keep your master table upside and left join

LOAD VehicleID,

     VehiclePartNumber,

     ModelID,

     ModelTypeID,

     VehicleShortDescription,

     VehicleDescription,

     ClassOfVehicle,

     HorsePower,

     FuelUsed,

     NumberOfCylinders,

     SeatingCapacity,

     UnladenWeight,

     AxleWeight,

     AnyOtherAxle,

     FrontAxle,

     RearAxle,

     TandemAxle,

     GrossWeight,

     DealerTypeID,

     IsGearBoxApplicable,

     FactoryModelCode,

     IsDeleted,

     CreatedBy,

     CreatedOn,

     UpdatedBy,

     UpdatedOn,

     IsMigratedData,

     EBSReportID,

     EBSReportDescription,

     IsIDMSMigratedData,

     IsAvailableForApePariwar,

     IsInActive

FROM

(qvd);

Left Join

LOAD VehicleType,

     ModelTypeDescription,

     ModelHead,

     MainHead_OneTwo,

     SubHead_OneTwo,

     SubMainHead_ThreeLast,

     SubHead_ThreeLast,

     VehiclePartNumber as Vehical_PartNumber, 

     VehicleShortDescription as Vehicle_ShortDescription,

     RegionwiseGroup,

     RegionwiseSubGroup,

     Sequence,

     FuelGroup,

     VehicleID

FROM

(qvd);

View solution in original post

3 Replies
ashfaq_haseeb
Champion III
Champion III

Hi,

Try below

VES_VehicleMaster:

LOAD VehicleID,

     VehiclePartNumber,

     ModelID,

     ModelTypeID,

     VehicleShortDescription,

     VehicleDescription,

     ClassOfVehicle,

     HorsePower,

     FuelUsed,

     NumberOfCylinders,

     SeatingCapacity,

     UnladenWeight,

     AxleWeight,

     AnyOtherAxle,

     FrontAxle,

     RearAxle,

     TandemAxle,

     GrossWeight,

     DealerTypeID,

     IsGearBoxApplicable,

     FactoryModelCode,

     IsDeleted,

     CreatedBy,

     CreatedOn,

     UpdatedBy,

     UpdatedOn,

     IsMigratedData,

     EBSReportID,

     EBSReportDescription,

     IsIDMSMigratedData,

     IsAvailableForApePariwar,

     IsInActive

FROM

(qvd);

left join(VES_VehicleMaster)

LOAD VehicleType,

     ModelTypeDescription,

     ModelHead,

     MainHead_OneTwo,

     SubHead_OneTwo,

     SubMainHead_ThreeLast,

     SubHead_ThreeLast,

     //VehiclePartNumber,

     //VehicleShortDescription,

     RegionwiseGroup,

     RegionwiseSubGroup,

     Sequence,

     FuelGroup,

     VehicleID

FROM

(qvd);

Regards

ASHFAQ

its_anandrjs

On the base of the  VehicleID you can join this two tables and for avoiding the synthetic keys rename the fields or remove it from the tables see the script keep your master table upside and left join

LOAD VehicleID,

     VehiclePartNumber,

     ModelID,

     ModelTypeID,

     VehicleShortDescription,

     VehicleDescription,

     ClassOfVehicle,

     HorsePower,

     FuelUsed,

     NumberOfCylinders,

     SeatingCapacity,

     UnladenWeight,

     AxleWeight,

     AnyOtherAxle,

     FrontAxle,

     RearAxle,

     TandemAxle,

     GrossWeight,

     DealerTypeID,

     IsGearBoxApplicable,

     FactoryModelCode,

     IsDeleted,

     CreatedBy,

     CreatedOn,

     UpdatedBy,

     UpdatedOn,

     IsMigratedData,

     EBSReportID,

     EBSReportDescription,

     IsIDMSMigratedData,

     IsAvailableForApePariwar,

     IsInActive

FROM

(qvd);

Left Join

LOAD VehicleType,

     ModelTypeDescription,

     ModelHead,

     MainHead_OneTwo,

     SubHead_OneTwo,

     SubMainHead_ThreeLast,

     SubHead_ThreeLast,

     VehiclePartNumber as Vehical_PartNumber, 

     VehicleShortDescription as Vehicle_ShortDescription,

     RegionwiseGroup,

     RegionwiseSubGroup,

     Sequence,

     FuelGroup,

     VehicleID

FROM

(qvd);

Joseph_Musekura
Support
Support

Hi,

In addition to above suggestions, please check this link:

http://community.qlik.com/thread/39177

Regards