
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
what is primary key and foreign key
what is primary key and foreign key give me example i am new to learn qlikview please help me

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
This are the normal SQL concepts. You can do a quick google search and learn about it. Below is one of the link.
Primary and Foreign Key Constraints | Microsoft Docs
Regards,
Kaushik Solanki


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi!
Primary key is a Unique key in your table, as example ID of goods in SKU dictionary.
Foreign key is a ID of goods in fact table with sales, as example, where primary key may be a transaction key.
These terms are more often used in an SQL environment. In QlikView, all the links are built on associations.


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
There is no concept of primary-foreign key relation in QLIK. For SQL u can check out
https://www.w3schools.com/sql/sql_foreignkey.asp
regards
Pradosh

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Primary Key is a unique identifier in a table. For example:
In a table containing records of all employees (Employee ID, name, Dob, Designation), the "employee id"(being unique to each employee) to will be the primary key.
If another table is added which contains salaries for each designation ( Designation, Salary), the tables will be linked through designation column, thus making it the foreign key.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
but interview purpose they asked questions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Those questions serve a purpose: the interviewer tries to get an idea of the breadth of your knowledge. If you only know something about the insides and workings of QlikView, you won't be able to figure out how to connect to an RDBMS (most common data source) and grab the necessary data for building a specific document, for example a Sales Order overview.
Compare this to the same interviewer asking questions about Excel. Maybe the company where you are solliciting for a job is a heavy user of Microsoft Excel. You won't learn how to become an Excel expert here in the Qlik Community, because there are probably a 1000 on-line sources that are better suited to teach you how to use Excel.
BTW Google is a better search engine anyway, even for looking up stuff in the QlikView community. If you're not sure about a new concept, always start your investigations there.


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
please close the thread.
Regards
Pradosh

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thanks
