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

Composite Key

Hi all,

i hv three common keys in three tables (like:ranjit,ram,murali)..then how to create cmoposite keys...can any one hepl me....urgent

Thanks in advance!!!

Smiley

1 Solution

Accepted Solutions
Not applicable

hi

suppose you have three common field like A, B, C are common in Three tables.

then if you want to make composite key then in each table write this code

A & B & C as new_key

View solution in original post

4 Replies
MK_QSL
MVP
MVP

You can use in script like below......

FirstName&" "&MiddleName&" "&Last Name

Not applicable

Hi Rathnam,

Composite key means combination of two or more fields will be used as a key.

For example,

Table A , Table B, consider the relation between the two tables are country, customer and salesperson.

You can create the key as country&'-'&Customer&'-'&Salesperson as KEY.

Sometimes you may need to add the date field also in the key based on the req as well as data modelling.

Not applicable

hi

suppose you have three common field like A, B, C are common in Three tables.

then if you want to make composite key then in each table write this code

A & B & C as new_key

preminqlik
Specialist II
Specialist II

Create composite key in three tables

eg:

fieldName1&'separator'&fieldname2&'separator'&feildname3

for example

CusID&'-'&Location&'-'&Postion                     as               [Cus_Loc_Pos key]

here the separator is for developer understanding you can use any symbol in that.