" /> Hyperion question - unique values - Genesys CTI User Forum

Author Topic: Hyperion question - unique values  (Read 4947 times)

Offline mark

  • Sr. Member
  • ****
  • Posts: 415
  • Karma: 2
Hyperion question - unique values
« on: March 14, 2007, 12:22:41 PM »
Advertisement
Probably an easy one for you all :D

I have created a hyperion query against the cfg db for agent name, skill, skill level.

When I process the query, I get the results that I want, however it does have multiple results. For example, Agent1 with Skill1/Level1 will show 200+ times.

Query:
Cfg.Person - Firstname, lastname
Cfg.Skill - name
Cfg.Skill Level - level

Any help would be appreciated :D

Mark


Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: Hyperion question - unique values
« Reply #1 on: March 14, 2007, 01:23:44 PM »
Hi Mark,

Here it is  :)

[font=Courier New][color=navy]SELECT person.first_name,person.last_name,skill.name,skl.level_
FROM cfg_person person,cfg_skill_level skl,cfg_skill skill
WHERE person.is_agent=2 AND skl.person_dbid = person.dbid AND skill.dbid = skl.skill_dbid
ORDER BY person.last_name,skill.name
[/color][/font]

René

Offline Adam G.

  • Hero Member
  • *****
  • Posts: 552
  • Karma: 12
  • Still Gorgeous.......
Re: Hyperion question - unique values
« Reply #2 on: March 14, 2007, 01:31:14 PM »
Rene beat me to it but here is a Hyperion report that I just rustled up.

Please rename the .txt to .bqy

Pavel


Offline mark

  • Sr. Member
  • ****
  • Posts: 415
  • Karma: 2
Re: Hyperion question - unique values
« Reply #3 on: March 14, 2007, 01:35:59 PM »
Thanks both :]

Pavel, the file tells me 'Incorrect fields encountered. Document may be corrupt'.

Are you free this afternoon? Was looking at giving you a call regarding Munich later on :]

Mark

Offline mark

  • Sr. Member
  • ****
  • Posts: 415
  • Karma: 2
Re: Hyperion question - unique values
« Reply #4 on: March 14, 2007, 01:45:43 PM »
Ahh in the query my joins were a bit wrong!

Have now got it right,

cfg.person: dbid  connected to cfg.skill level: person dbid
cfg.skill level: skill dbid connected to cfg.skill: dbid

i had skill and skill level the wrong way around (and a few un needed links!)

Mark

Offline Adam G.

  • Hero Member
  • *****
  • Posts: 552
  • Karma: 12
  • Still Gorgeous.......
Re: Hyperion question - unique values
« Reply #5 on: March 14, 2007, 01:50:13 PM »
[quote author=mark link=topic=2125.msg7345#msg7345 date=1173879359]
Thanks both :]

Pavel, the file tells me 'Incorrect fields encountered. Document may be corrupt'.

Are you free this afternoon? Was looking at giving you a call regarding Munich later on :]

Mark
[/quote]

Mark,

Have emailled you the bqy just in case. It has been written against a v7.2 config Server DB.

Pavel

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: Hyperion question - unique values
« Reply #6 on: March 14, 2007, 02:09:50 PM »
Just a note - don't use ".txt" extension when uploading a binary file because it becomes corrupted.

to Pavel: even I was faster, you won  ;)

René