queries

  • Thread starter Gregory Debosschere
  • Start date
G

Gregory Debosschere

Hello, I have a little question. I organise a workshop with 3 activities and
now I want to make a query so I can see who does what activitie at what
hour.

So for exemple:
Name 14H 15H 16H
Hayley Java Router Safety
Craig Router Java Safety

How can I do this with a query? If you know that I start with a
tblParticipers:
NameId Name
1 Hayley
2 Craig

and a tblOrganisationWorkshop:

ParticipersId Uur Workshop
1 14 Java
1 15 Safety
1 16 Router
2 14 Safety
2 15 Java
....
Thanks
 
N

Neil Sunderland

Gregory Debosschere said:
Hello, I have a little question. I organise a workshop with 3 activities and
now I want to make a query so I can see who does what activitie at what
hour.

So for exemple:
Name 14H 15H 16H
Hayley Java Router Safety
Craig Router Java Safety

How can I do this with a query?

TRANSFORM First(O.Workshop)
SELECT P.Name
FROM tblParticipers AS P
INNER JOIN tblOrganisationWorkshop AS O ON P.NameID = O.ParticipersID
GROUP BY P.Name
PIVOT O.Uur;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Query's 1
combining tables into query 2
Field as column name. 2
Please Help 3
making a table with a query 2
sql statement 1
Beginner SQL Query Question 7
Refreashing queries in multiple spreasheets 2

Top