To develop a common relational prior measure between teams in the video game database

Hi all

We use the Oracle 10 g 2 enterprise database.

I have a table with 3 columns Gameid, Crewid, Release_Yr

For each game, there are several lines for the crew has worked on this game.

Other games have a different number of the crew have been working on this game.

I want to develop a common relational prior measure between teams in the video game database.

The idea is to understand the degree of familiarity people have, in a team, based on their prior membership of the team.

For example game VG1 4 crew members are associated (this will be captured in 4 lines in the table)

Team A, B, C, D.

So, for the crew a VG1 game, each prior association (compare all games including the year of release is equal or before the game current year of release)

will be checked. If the crew has worked three times with the B team on different games (VG2, VG3, VG4) and once with D (VG2)

them, the measure will be of 3 + 1 = 4

I'll try to explain this graphically (with crew in columns, well in the table, they are in lines)

To calculate the measure for VG1

GAMEID Crewid Release_Yr rank (the rank is just for the sake of explanation)

--------------------------  ------------------------

VG1 A B C D 1 2013

VG2 A B C D 2012 2 X

VG3 A B C Z 3 2012

VG4 A B Y Z 4 2012

VG5 HAS C Y Z 5 2012

(1) measurement for VG1 to crew A with respect to B

GAMEID Crewid line

----------- ------------      --------

VG2 A AND B 2

VG3 A AND B 3

VG4 A AND B 4

-----------------------------

Total 3

Measure for VG1 for crew has compared to C

GAMEID Crewid line

-----------  -------------         --------

VG2 HAS C 2

VG3 HAS 3 C

VG5 A 5 C

-----------------------------

Total 3

Measure for VG1 for crew has against D

GAMEID Crewid line

---------------------------------

VG2 A D 2

-----------------------------

Total 1

So the final measure for vg1 to crew A = 3 + 3 + 1 = 7

================================================

(2) calculate the same measure for the B = crew

Measure for VG1 for crew B in respect A + measure for VG1 for crew B over C + measure for VG1 for crew B with respect to D

3 + 2 + 1 = 6

(3) calculates the measure for crew C = 3 + 2 + 1 = 6

(4) calculates the measure for crew D = 1 + 1 + 1 = 3

/*

-script

create the table game

(

GAMEID varchar2 (30),

crewid varchar2 (30),

release_yr number (4.0)

);

Insert in game values ('VG1', 'A', 2013);

Insert in game values ('VG1', 'B', 2013);

Insert in game values ('VG1', 'C', 2013);

insert into set values ('VG1"'d', 2013");

Insert in game values ('VG2', 'A', 2012);

Insert in game values ('VG2', 'B', 2012);

Insert in game values ('VG2', 'C', 2012);

insert into set values ('VG2"'d' 2012 ');

Insert in game values ('VG2', 'X', 2012);

Insert in game values ('VG3', 'A', 2012);

Insert in game values ('VG3', 'B', 2012);

Insert in game values ('VG3', 'C', 2012);

Insert in game values ('VG3', 'Z', 2012);

insert into game values ('VG4', 'A', 2012);

insert into game values ('VG4', 'B', 2012);

insert into game values ('VG4', 'Y', 2012);

insert into game values ('VG4', 'Z', 2012);

insert into game values ('VG5', 'A', 2012);

insert into game values ('VG5', 'Y', 2012);

insert into game values ('VG5', 'C', 2012);

insert into game values ('VG5', 'Z', 2012);

*/

-output

GAMEID CREWID RELEASE_YR measurement

VG1         A                 2013                  7

VG1         B                 2013                  6

VG1         C                 2013                  6

VG1         D                 2013                  3

VG2 A 2012 and so on

VG2 B 2012

VG2 C 2012

VG2 D 2012

I can implement the solution using sql and plsql and completely free to use any approach.

My actual table has around games 6,82,803 video

Total of records in the table is of about 28,03,800

Crew of average per game is 4 and some games bigger than the 900 crew.

Thank you very much.

Sheetal Gupta

Try this and let me know if something goes wrong. I wrote the request so that, for example for example, crewid X in gameid VG2 doesn't have a corresponding value. His count is therefore 1. If this is not the case, let me know on what needs to be done. If you want it to be 1, then remove the DECODE function and just use COUNT (*).

SELECT T1. GAMEID,

T1. CREWID,

T1. RELEASE_YR,

DECODE (COUNT (*), 1.0, COUNT (*)) CNT

GAME T1 LEFT OUTER JOIN

GAME T2

ON T1. GAMEID! = T2. GAMEID

AND T1. CREWID! = T2. CREWID

AND T1. RELEASE_YR > = T2. RELEASE_YR

AND EXISTS (SELECT CREWID FROM GAME WHERE GAMEID = T1. GAMEID AND CREWID = T2. CREWID)

AND EXISTS (SELECT 1 GAME WHERE CREWID = T1. CREWID AND GAMEID = T2. GAMEID)

GROUP T1. GAMEID,

T1. CREWID,

T1. RELEASE_YR

ORDER BY GAMEID, CREWID;

OUTPUT:

VG1 A 7, 2013

VG1 2013 6 B

VG1 2013 6 C

VG1 2013 3 D

4 2012 VG2

VG2 2012 3 B

VG2 2012 3 C

VG2 D 2012 0

VG2 X 2012 0

VG3 A 6 2012

VG3 2012 4 B

VG3 2012 4 C

VG3 2012 4 Z

VG4 A 5 2012

VG4 2012 3 B

VG4 2012 2 Y

VG4 2012 4 Z

VG5 A 5 2012

VG5 2012 3 C

VG5 2012 2 Y

VG5 2012 4 Z

Post edited by: Parth272025

Tags: Database

Similar Questions

  • . MOV stops flashing between black and the video in first pro cc

    I have created a. MOV in Flash cc and after that I have to export, it works fine. But if I import it in first pro; about halfway through it starts glitching on years spend my video and a black background. No effects have been used. just resized video to fit the image. How can I fix it?

    Purple?

    No, I want to say is yellow, green or red?

    If its red or yellow he return green see if that improves things.

  • Various measures between the ruler tool and marquee tool?

    I use Photoshop CS 5 Extended

    Why are there two different measures?

    I positioned guides on the image for purposes of measurement.  I have the snap-to Guides on. I used the ruler tool snap a guide and I extended a straight line to the other guide (the SHIFT key down). The ruler tool read 712 pixels.

    Then I used the marquee tool to align the guides and it read x 720 pixels.

    What you believe?

    raylaur wrote:

    Then I used the marquee tool to align the guides and it read x 720 pixels.

    Where?  In the Info Panel?  If Yes, have you read the W (width) and not the X (horizontal pixel position)?

    I just did what you said and got consistent measures.

    -Christmas

  • What is the difference between dawn and the beta?

    What is the difference between dawn and the beta?

    Beta is the next version of Firefox that is due to be released in 5 weeks, and Aurora is the one after that--like an Alpha version of development.

  • break a subform that contains vertical lines between pages / break the vertical lines between pages

    Hello

    I have a table whose fields can develop. There is an another subform on the side that contains two vertical lines with the height increases if the height of the table increases. The table and the subform are in a provision passed. The challenge is that the subform with the lines does not break between pages. The subform is enabled to allow page breaks, but still it does not break. How to get there?

    I solved by creating the columns on the side and leave the table and breaking lines between pages. The cell border will serve as lines.

  • Is it possible to kern (widen the spacing) between letters in the Pages?

    Is it possible to kern (widen the spacing) between letters in the Pages?

    Yes, which version are you talking about?

    Peter

  • A good laptop for video game development?

    I'm new to development and am looking for a new laptop that would work well for development. I know one a laptop is not the best option, but I need to be mobile because I tend to move around a lot. I'm looking for something under $ 1500. I need something that works well for making games indie and the latest software of the unit running. I would greatly appreciate all advice!

    Apple - MacBook pro 13 "16 GB Ram upgrade

    http://www.Apple.com/shop/buy-Mac/MacBook-Pro?product=MF839LL/A & step = config #.

    its what I use and it works very well for steam games, etc...

    Hope this helps, good luck to you.

  • Is there a way I can share files between users on the same Mac without an internet connection?

    Hello world!

    Quick question here: is there a way I can share files between users on the same Mac without an internet connection?

    I have two users say that A and B. If I go the long way via the 'Go' menu > 'Computer', I ended up being told to contact my computer or the network administrator for assistance. Both users are admin one and file sharing is allowed in system preferences... I have to admit that I use 10.9.5 because my MacBook Pro would not work with OS Xs national parks.

    Any ideas would be cool because I'm sure that it used to work fine with "Snow Leopard" without being connected to the internet - or should I just send an email to myself and recover the files on the other user :-) to recover my USB is

    Choose go to folder from the Finder Go menu, provide/Users/Shared/as the path and place the files.

    (142147)

  • Active measure of calories during the bike ride

    Hello

    I do a lot of road cycling and also use my Apple Watch to measure my fitness activity.

    I used the option open air training on rides Cycle and it seems good but drain the battery of the watch. I don't really it measure the speed and distance as my Garmin that does very well and is also linked to Strava, but I don't want the watch to measure my year, and the number of calories active.

    So, I tried cycling without starting a workout. The watch is a precise measure of the amount of time work, I exercised, but the number of calories burned seem much less than if I used a training to measure the same route.

    The question is, which is more accurate? A workout outdoor Cycle or while leaving the watch to do its own thing? I suspect the former. This then begs the question, how shows measure of calories burned.

    Thank you very much

    Phil

    Hi Phil

    The external Cycle estimate is more accurate.

    When recording a workout outdoor Cycle, Apple Watch esteem Active Energy (calories / kilojoules) using a calculation that is suitable for this type of activity. Apple has not released details of the calculation method.

  • How to record measured analog data on the PC?

    Hello

    I am a beginner in the real-time hardware. I have the cRIO-9024 controller and the cRIO-9112 chassis. I have a few questions:

    (1) I can't see the examples because Labview 2009 shows that The NI Service Locator is not running. I just installed Labview 2009. How can I solve it?

    (2) what is the best way to filter the measured analog data? There are hardware module filtering or I have to use Labview tools as filters pint? I would like to read data to the time step 1 Ms.

    (3) how can I save measured analog data on the PC? I tried to use 'write to file measured', but he did my program slower and I couldn't get my 1 mS of a cycle. Can I use cRIO-9024 memory somehow and after when the programme is complete to save the files to the hard drive? Maybe it would be faster?

    Thanks for any help and examples, whether it would be possible.

    Hello Rodzynek,

    If you do not have the FPGA module (or just for now) the solution you gave with the filter would be OK. Place a second loop for file IO (and possible your communication to the user Windows interface) would be a good idea. Do not forget that you are using on the function of file create the file path represents the drive of the controller cRIO (which is mostly a c drive). You can send via FTP to the RIO DC (using the IP address) and have a look at the files.

    A suggestion to get this file programattically is that the cRIO controller sends the file name of the Windows user interface (after the closing of the record), with the Windows user interface, you can use the FTP functions in Labview to get the measures file.

    Best regards

  • Random 1 second yellow flashes between elements after recording video project on computer

    I use Windows Movie Maker 2.6 (one that does not come with Windows Live Essentials), and I can edit the clips and other very well. I followed the steps correct to record video, but a movie, I get random yellow flashes 1 second that interrupts the film; It is not pleasant. I understand that this can happen between the first and the second clip due to the different size and other, but the clip of third and fourth are the same exact information, and a flash appears between the two clips anyway. When I preview the movie before you save it, there is no sign of it; It is only after I saved the film for my computer and I play on Windows Media Player, so I know that this is an incident regarding the recording of the film.

    Curiously, I saved another video and is not the case.
    I downloaded my videos on YouTube, so my friends can watch and criticize how I made the video so far. I'll post the links so that they can be viewed and hopefully give me more specific answers, since I have no idea what could cause this.

    Keep Holding On [verse 2] [Test]- original video where the flashes occurred

    Keep Holding On [verse 2] [Test 2]- same video clips with effects and transition at the beginning of the first clip; occurs at the same place
    Keep Holding On [bridge] [Test]- video where occur not flashing

    A fast and quick response would be greatly appreciated.

    Hi belle_lover,

    You can try to uninstall the codecs if you have installed a.

    After uninstalling the codecs, you can try to recreate the video clip and check what is happening.

    For more information, you can consult the following link:

    http://Windows.Microsoft.com/en-us/Windows-Vista/work-with-clips-in-Windows-Movie-Maker#section_3

    The problem may be with the video. You can try to install the Director windows live and check if you can play the video without any problem.

    You can visit the following link to download Windows Live Movie Maker:

    http://download.live.com/MovieMaker

    Hope this information is useful.

    Jeremy K.
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • Differences between navigationClick and the TrackWheelListener

    In fact, I have a few questions here.

    What are the differences between navigationClick and the TrackWheelListener?  When should I use that one.  I'm trying to follow the MVC pattern.

    Is there a good example of a code that follows the MVC pattern?

    The TrackwheelListener really must be used when a peripheral wheel and make your own custom management of movements on the device wheel.  Due to the transition between the wheel (eg. 8700) and trackball devices (eg. 8100 and more) we mapped the trackball to the TrackwheelListener events in an attempt to ensure backward compatibility.  However, it does appear the following limitations:

    (1) left and right movement does not exist in a TrackwheelListener, but it is possible using the Trackball.  As a result, users have a user experience on a Trackball device.  Many vendors allow the user, hold down the ALT key and roll the ball up and down control to indicate the left/right movement as a work-around.  But again, this isn't the best user experience.

    (2) TrackwheelListener is an independent mechanism of the UI classes.  Therefore, once you receive notification of a movement or click you are then required to determine which field in your user interface should work on this movement or click.  This requires additional processing and the code to determine how to handle the event.

    Therefore, the recommendation is that you would substitute navigationClick, navigationMovement, and navigationUnclick methods to manage all movement of the trackball and scroll wheel.  It will manage both wheel and trackball devices correctly which solves #1.  It is also integrated in the UI classes themselves which reduces the impact of the #2 above.

    The only drawback to the use of these methods is that it requires your application built with the JDE 4.2.0 and requires a minimum of 4.2.0 terminal software.  For the vast majority of third-party developers, v4.2.0 is a sufficient minimum requirement given the proportion of the market that is running 4.2.0 or higher (over 75%).

  • What's the development Guide bad about recording the videos programmatically?

    Hi all

    According to BlackBerry Java Application - Multimedia - Guide to development to these URLS:

    http://NA.BlackBerry.com/eng/deliverables/8542/Record_video_without_using_the_camera_app_734824_11.j...

    http://NA.BlackBerry.com/eng/deliverables/8542/Recording_media_in_a_BB_app_734823_11.jsp

    It has support for recording video API. But on this forum, there are several clarifications where it says that the video recording API is not supported.

    I'm confused as to what is true? If the API of the video recording is not supported, I ask that people BlackBerry put a warning on the page in the URL above and provide an alternative solution that works.

    I plan an application that must call the video camera and capture the video and I tested on Blackberry Bold (9000) Rogers v4.6.0.162.

    If the examples of development mentioned above bad?

    No device is out there on the market that works 5.0 OS... However, RIM it will publish soon - Yes, I assume that devices that are greater than or equal to 4.5 will stretch... But of course about 4.6 or higher (includes your "BOLD" )...

    See you soon...

  • How can I change the spacing between icons in the taskbar?

    I have a small screen laptop.  Because I want a decent number of programs in my taskbar for easy access, I chose the small icons and no names, etc.  However, the icons of small programs (when not in use) are spaced so far that there is little room to spare.  New programs quickly cause Group and are difficult to manage.

    Why is Microsoft put so much empty space between the small icons unopened?  It's wasted space.

    More important still, how to shrink the space between icons?  On Vista and XP, you could drag the icons to manage your space.  How do I do this with Windows 7?

    Thank you!

    Just after I posted that space is really needed, I found the answer who asked the original question.

    You can change the space between icons (really the size of the buttons) by changing the size of "Buttons" in the window color and appearance. The default on my version of Windows (2008 R2) was 18 years old. When I set it down to the size buttons for the GET pinned icons smaller and thus the icons closer together.

    I don't know if the path is the same in Win7, but in 2008 R2, you right-click on the desktop and select Personalize. Then click on the color button of the window (at the bottom of the window). The dialog box that appears should be titled 'window color and appearance '. In the drop-down list item, select the caption buttons and adjust the size to change the distance between the icons.

    I've only tried a couple of sizes too so setting can cause problems. Once you apply, you will need to right click on the desktop and do a Refresh or even logoff and back on again.

  • My screen keeps turning yellow and flickering between normal screen & the yellowish one.

    My screen keeps turning yellow and flickering between normal screen & the yellowish one.

    It is most likely a hardware problem and could be a problem with your computer or monitor.  Check the connections.  If it is possible to test the monitor with another computer and your computer with another monitor to circumscribe.

Maybe you are looking for