Jump to content
  • 0

List with keywords from another table


Maryan

Question

Hello,

I have database as attached image.

data are as follow
2 records in table position :

positionId=1, positionName="Eric"
positionId=2, positionName="Jimmy"

3 records in table skills :
skillId=1 , skillName = "Business"
skillId=2 , skillName = "Economy"
skillId=3 , skillName = "Finance"

 

4 records in linkPositionSkill
positionId=1 , skillId=1
positionId=1 , skillId=2
positionId=2 , skillId=2
positionId=2 , skillId=3

Thanks to views and datapages, I can easly have a report/list as follow
Eric - Business
Eric - Economy
Jimmy - Economy
Jimmy - Finance

I look for having a report/list with data shown as follow
Eric : Business, Economy

Jimmy : Economy, Finance

I couldn't find solution at the moment with views or datapages.
Is it possible to build such dataPage, with my current free access ? if yes, how is this possible ?
Thanks in advance.

 

database.caspio.PNG

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 1

Hello @Maryan,

I tried recreating the Tables on my end to help you achieve your desired result.

You may follow these steps:

1. Create a View and join the three Tables.

5725234

5725235

 

2. Create a Tabular Report, use LinkPositionSkill Table as Data Source, select PositionID field only, and enable the Show Distinct option

5725236

5725237

5725238

3. Add Calculated Field and paste this Formula:

STUFF((SELECT ', ' + CAST(Skills_SkillName AS nvarchar) FROM _v_PositionSkills WHERE Positions_PositionID= target.[@field:PositionID] FOR XML PATH ('')), 1, 1, '')

Please make sure to change the highlighted texts to the correct field and table names.

 

Here's the result:

5725239

Hope this helps!

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...