Database structure for a 5 star ratings system

This is something I've been asked to look at creating. At the moment the site has a database back end storing details of a few hundred holiday properties. So that part is already set up.
So I'm familiar enough with databases etc, but less so the formulas and any additional database structure for any voting.
It would be pretty simple, ie visitors could vote 1, 2, 3 4, or 5 stars for any property.
There needs to be a total score recorded somewhere for each property.
And the site needs to display the average score for that property.
Any pointers on this much would be much appreciated.
Thanks.

Consider my wrist duly slapped.
Yes, Google is an excellent resource, although in my experience for many things such as this a search will return 101 different ways of doing something, many of which will do, or explain, 80% of what you need.
So sometimes posting on a forum is better for getting a recommendation from someone for a good tutorial on something.

Similar Messages

  • Troubles with my Aperture star ratings system

    Been using aperture 2 for a couple of years now. No serious problems with it at all. Then, 2 weeks ago, all of a sudden my star ratings system started playing up and I have no idea why.
    The problem is strange; it is still possible for me to rate photographs from 1 to 5 stars but when i come back to that folder and try to look at my 1 star or better pics then i see them all and the ratings i have assigned them. However, if i try to look at 2 star or better or 3 star or better etc photos then my screen is completely empty and if i want to export or sort my pics i now have to do it manually which seriously interrupts my workflow.
    This issue applies to all my folders in aperture and I'd appreciate any help anyone can give me. Thank you very much !!!

    Try here first http://support.apple.com/kb/HT2945

  • Database structure : How to design the track system of a railway station

    Dear Oracle experts,
    I'm interested in your opinion about a database design problem.
    I want to design a database which describes e.g. the tracks of trains in
    a big railway station with many switches. What I always know is the position of every switch in my railway station.
    If I know all of the present switch-positions I know automatically where a train which is at a certain position would move.
    In my database I would like to store these pathways and search the pathway of train at a certain position and the present switch positions.
    One problem is that if one of the switches is at a position which leads to a pathway which would the train drive round the next switch the position of the next switch would be uninteresting. Since I have to search the table with my pathways with my set of switch positions I willl have to put datasets for all positions of the circumscribed switch
    into my table.
    Exampel :
    I have 3 switches. If switch 1 is at position 1 switch 2 is circumscribed and the train drives to switch 3. If switch 1 is on position 2 the train drives to switch 2. If switch 2 could have 10 positions then I would have to create datasets for all the 10 positions of switch 2 for all positions of switch 1 although these positions are not always interesting.
    To solve this problem I would like to describe some kind of search tree in my database structure. Does someone of you have an idea how to solve this problem ?
    Best ragards,
    Daniel

    Hirachical is interesting, but you pay a big performance/feature penalty by using it.
    If this is a real train station, then changes probably won't be done on the tracks for a long time, and if so, it's a rare event that your program may not need to be able to handle dynamically?
    If that, then your DB becomes simple ... have a table of tracks coming into the station, and another list of tracks going out. Maybe also "destination tracks" within your station.
    Then simply have a table that takes a source/destination pair of tracks, and then a column for each switch. The column holds the setting of the switch to provide the path between source and destination.
    Then you have a simple and fast query access. It's rather easy to turn the table for reporting if you want a more dynamic query access; but I guess your main need for the system is to ask "what do my switches need to be set at if a train needs to go from point A to point B". If so, a simple table layout as above is going to be your solution. And it's going to be fast and efficient.
    Only if you dynamically want to be able to design the track layout does this become a harder problem. But you could still use the same "construct":
    Table: Destination Pairs
    PairID Number
    FromTrack Number references tracks
    ToTrack Number references tracks
    Table: Switch settings
    SwitchID Number references Switches
    PairID number references Destination Pairs
    SwitchSetting number
    primary key: SwitchID, PairID
    Now your query is a join - but it's possible to simply list all the switch settings on a given pair. No need for hirachical queries.

  • Database Structure For Articles and Categories

    Hi - This is a question about database structure - please help. Thanks
    For a website with many subjects or themes is it best to use 1 big table to hold or the articles or many small tables to hold articles for different subjects - I will explain what I mean.
    Say my website has a 'cooking' section, a 'sports' section and a general 'blog' section.
    In each section the articles will be organized into different sub-categories but I can't see a way to do this.
    Case 1: All the articles are stored in 1 table. There is a second table which 'assigns' an article to a category (the cateogries themselves are stored in a separate table) and also assigns a sub-category (sub-categories stored in a separate table???) and then what if there needed to be a sub-sub-cateogry?? This just doesn't seem to work well!
    Case 2: For each theme there is a separate table - Cooking Table, Sports Table, Blog Table. And for each separate table there is a categories table Cooking-Categories which assigns each cooking article a sub-cateogry (and the sub-categories are stored in a separate table also) - and what if I needed to make a sub-sub-category - then would I need to make another table? This just sounds like a lot of tables even though the end result would probably be easier!
    Case 3: All categories are stored in 1 table - as well as all subcateogires of those categories as well as all sub-sub categories, etc (each with an ID)... Each article is 'assigned' a category ID
    Please someone show me the light! I am confusing myself.
    Thanks
    Chris

    There is no 'best' way of creating a database. It's more logic that is involved in examining the parameters that determine what DB will suit your current requirement. These parameters may include but aren't limited to:
    Latency
    Performance
    Sortability
    Accessibility
    Ease-of-use
    Scalability
    If I were you, for the said purpose, I'd create with 4 tables as follows:
    Categories - this will hold your main categoriesCatID, Name, Order ID
    Sub-CategotiesSubCatID, CatID (that the SubCat is linked to), Name, Order ID
    Sub-Sub CategoriesSubSubCatID, SubCatID, CatID, Name, Order Id
    ArticlesArticleID, SubSubCatID (can hold multiple Sub-Sub-categories) SubCatID (can hold multiple Sub-categories), CatID (can hold multiple Categotries), Name, Order ID, Article Title, Article Description, Article Thumbnail, URL Name, Metatags (for SEO, if you're looking at doing SEO)
    The CatID in Article Table will usually be an INT value with limited chars, the SubCatID and SubSubCatID in Article Table will ideally be a varchar value with about 200 chars so you could assign multiple SubCatIDs to one article.
    I'd like to add here that this is very much a debatable post. What suits me may not suit you and/ or the others who may read this post! But this way, I can accomplish my programming/ coding task/ CMS integration with ease-of-use.
    Good luck with your DB!
    ~ST

  • Database structure for Oracle to use with SMP 3.0

    Hi,
    We are planning to use Custom Database for SMP 3.0.
    Please help me with the Database Structure I need to create in Oracle DB instance to use with SMP 3.0.
    Additional Details:
    SMP Version: 3.0
    Service Pack Level: SP 03
    Server OS: Windows Server 2008 R2
    Database Version: Oracle 11.2

    Will this PDF be useful? at page # 33 as titled Oracle Database Preparation
    Regards,
    JK

  • Database, compatabiliy for TstStand 2.0

    I would like to connect to a different database other than Orcale, SQL Server and Access. How can I get TestStand to give me that option. I am willing to debug this new interface, but I need some direction. Help?

    Hi Craig,
    By DEFAULT, TestStand supports Microsoft SQL Server, Oracle, and Microsoft Access. This does not mean that you are limited to these databases. We have just tested the product with, and included SQL scripts to create the default database structures, for these DBMS'. To add support for your specific DBMS, you simply need to create a new connection string that points to your database. The way you build the connection string will depend upon whether you are using the ODBC driver or the vendor specific driver to connect to your database. Once you have done that, the only other thing you need to do is modify one of the schemas that best matches your database structure and functionality that it supports. Have a look at the section titled "Adding Support fo
    r Other Database Management Systems" inside of the TestStand 3.0 Reference Manual. I would recommend reading the entire Database chapter to gain an understanding of how database logging works in TestStand. Please let me know if you need additional help.
    Ryan R.
    NI

  • Gathering Entire Database Structure

    Hi Geeks,
    I want to gather the entire database structure for our client database, which is outside of our country and it is impossible to send the export dump file since so many formalities are there. I need to gather the information, but not through export dump file. I don't need the datas, but only the structure from A-Z.
    Is there any possible way to do it.
    Kindly help me.
    Thanks,
    Bang.

    Hi,
    If i understood your question correctly then can use RMAN if you have the access. invoke "show schema" command to know the structure of your Database; Eg in my case:
    C:\Documents and Settings\smuthalagan>set oracle_sid=test
    C:\Documents and Settings\smuthalagan>rman
    Recovery Manager: Release 10.1.0.2.0 - Production
    Copyright (c) 1995, 2004, Oracle. All rights reserved.
    RMAN> connect target
    connected to target database: TEST (DBID=1915532430)
    RMAN> report schema;
    using target database controlfile instead of recovery catalog
    Report of database schema
    File K-bytes Tablespace RB segs Datafile Name
    1 460800 SYSTEM *** E:\ORACLE\PRODUCT\10.1.0\ORADATA\TE
    ST\SYSTEM01.DBF
    2 30720 UNDOTBS1 *** E:\ORACLE\PRODUCT\10.1.0\ORADATA\TE
    ST\UNDOTBS01.DBF
    3 245760 SYSAUX *** E:\ORACLE\PRODUCT\10.1.0\ORADATA\TE
    ST\SYSAUX01.DBF
    4 5120 USERS *** E:\ORACLE\PRODUCT\10.1.0\ORADATA\TE
    ST\USERS01.DBF
    5 153600 EXAMPLE *** E:\ORACLE\PRODUCT\10.1.0\ORADATA\TE
    ST\EXAMPLE01.DBF
    RMAN>
    Thanks
    --Raman                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Lighthouse Waveset Database Structure

    Hi All,
    Can anybody help me in figuring out the database structure for the default Lighthouse Database - waveset
    In IDM 5.0, 9 tables have been defined in the waveset database (14 tables in idm 6.0). Primary, foreign and composite keys have been defined for the same. Can anyone help me in finding out which attribute is the primary/foreign/composite key to which table..
    I would also appreciate if somebody helps me in finding out which attribute(from which table) holds the application data viz .... User data(Provisioning Status like deleted, disabled, etc etc), Logs, Reports etc.
    Any help will be highly appreciated....
    Best Regards

    The data structure is found in the scripts which create the tables for you in the db_scripts directory. When you install you have to run that script. All the info should be there.
    Main tables (userobj, account etc) all have a PK of ID. The tables are linked to the *attr tables  via the id column (1-many relation). Most of the information you are looking for is part of the xml stored for each object if it is not specifically stored as an extended attribute in attr1..5.
    a bit more so you know where to start looking:
    userobj, userattr: user objects, no account information
    account, acctattr: all resource account objects
    task, taskattr: all tasks
    org, orgatrr: organisations in IDM
    object, attribute: all other objects
    Logging:
    log, logattr: audit log information
    syslog, slogattr: system log
    Reports are always generated they are not stored.
    WilfredS

  • MMS Topology Database Structure

    Hello,
    Is there an Appnote out there somewhere that describes the database
    structure for MMS topology? I need to somehow extract the info populated
    by ZSM discovery and port it to our central database in HP openview.
    Cheers,
    Dennis.

    Dennis,
    It appears that in the past few days you have not received a response to your posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
    - Check all of the other support tools and options available at http://support.novell.com in both the "free product support" and "paid product support" drop down boxes.
    - You could also try posting your message again. Make sure it is posted in the correct newsgroup. (http://support.novell.com/forums)
    If this is a reply to a duplicate posting, please ignore and accept our apologies and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • Create database structure?_

    i want to create a database structure for following :
    1 member can have many groups
    1 group can have only one group member
    1 group can be joined by many members
    please help me to structure these in sql?
    Ashish Fugat (ashuthinksatgmail.com) SE

    Three Tables
    GroupTable (GroupID, Group Desc,.. any other columns)
    MemberTable (memberID,MemberName,...)
    GroupMembershiptable (GroupID,MemberID,..)
    Each record in GroupMembership denotes association between member on to a group
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Star ratings in iweb

    can anyone recommend a resource which would allow me to include a star ratings system on my iweb site? i am not publishing to .mac servers. thanks in advance!
      Mac OS X (10.4.8)  

    try this:
    http://star.recompile.net/
    it does not work directly with iweb. you need to add it using post-html editing:
    http://karreth.com/iweb/Adding%20GoogleAdSense%20Or%20PayPal%20Button.html
    max

  • Star ratings for movies

    Is there any plan to implement star ratings for movies? Every other cable system I ever used had these (Cablevision, Comcast), as does Tivo. There are a lot of movies in the listings, and I have found this feature extremely useful to help choosing. When I saw this wasn't on FIOS, I was very tempted to immediately go back to Cablevision, even though I love everything else about FIOS. Please implement this!!!

    Hey Tim... Verona neighbor here.  The only thing good about Comcast was their guide DATA.  They use Gemstar and Verizon uses FYI. 
    I have voiced my opinion as much as one can.  I can only hope they are listening and one day the guide will be accurate and as complete as the competitions.
    Fingers crossed!
    tim79 wrote:
    Is there any plan to implement star ratings for movies? Every other cable system I ever used had these (Cablevision, Comcast), as does Tivo. There are a lot of movies in the listings, and I have found this feature extremely useful to help choosing. When I saw this wasn't on FIOS, I was very tempted to immediately go back to Cablevision, even though I love everything else about FIOS. Please implement this!!!

  • How to trace the database table for a structure

    hi
    am trying to find the database table for a structure unfortunately am failing to use the sql tracer any one know howelse i can do that the structure name is 'busbankcheck' and 'bus000flds'.
    thanx in advance

    Hi florence,
      1)      U can go to tcode sldb and give ur structure name or if u can find which logical database it is from u can get the tables of the structure....
    Suppose it is of HR it may be like pnp logical database and then to sldb and give pnp and u can get all the table of that....
    2)If u know which fields u want from the stucture....then go to table DD03L and give ur fields name and it iwll bring where all tables this field is avaialble and u can find them......
    3) the st05 sql trace can help u.....
    I hope any one of the three will definetely help uuu
    Regards
    vamsi
    Edited by: vamsi talluri on Jan 22, 2009 1:24 PM

  • Error in database parameter for star schema table in RSRV

    Hi Experts,
    In RSRV, I executed the following checks in my cube and it is showing me the following error:-
    1)  Check database parameter for star schema table for InfoCube ZMM_MVAL
    564971 units missing from fact table /BIC/FZMM_MVAL; see details
    Message no. RSRV134
    Diagnosis
    In the fact table /BIC/FZMM_MVAL records have been found that contain values other than zero for key figures that have units, but that have no value for the unit of the key figure. Since the value of the unit has to correspond to the value of the key figure, this inidicates an error when the data was loaded. The values of the units have not been loaded into BW correctly. Choose Details to display the incorrect records.
    2)  Consistency of time dimension of InfoCube ZMM_MVAL
    /BIC/FZMM_MVAL PARTITIONED 1878 ( 30 - 50 )
    Please advise me on this.
    Thanks in Advance.
    Aparna

    As mentioned in the log, check the Unit KFs in your cube and make sure that unit is populated for all such values.
    e.g. if Qty is 5 KG, then unit KF will have 5 and unit info object should have KF.
    Regards,
    Gaurav

  • Moving the 80 Million records from Conversion database to System Test database (Just for one transaction table) taking too long.

    Hello Friends,
    The background is I am working as conversion manager and we move the data from oracle to SQL Server using SSMA and then we will apply the conversion logic and then move the data to system test ,UAT and Production.
    Scenario:
    Moving the 80 Million records from Conversion database to System Test database (Just for one transaction table) taking too long. Both the databases are in the same server.
    Questions are…
    What is best option?
    IF we use the SSIS it’s very slow and taking 17 hours (some time it use to stuck and won’t allow us to do any process).
    I am using my own script (Stored procedure) and it’s taking only 1 hour 40 Min. I would like know is there any better process to speed up and why the SSIS is taking too long.
    When we move the data using SSIS do they commit inside after particular count? (or) is the Microsoft is committing all the records together after writing into Transaction Log
    Thanks
    Karthikeyan Jothi

    http://www.dfarber.com/computer-consulting-blog.aspx?filterby=Copy%20hundreds%20of%20millions%20records%20in%20ms%20sql
    Processing
    hundreds of millions records can be done in less than an hour.
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

Maybe you are looking for

  • I have just update my mac mini server to OX Yosemite, but now the iTunes is not working at all.

    I have just updated my Mac Mini Server (Mid 2011) to OS Yosemite ver 10.10, after the update, iTunes is not working, and i have tried to reinstall iTunes over and over again but it was not successful , please advise if you have a solution or share si

  • C6380 LCD doesn't Pop up

    Does anyone know what's wrong with my C6380? The LCD display doesn't pop up when the printer starts. It just lay down all the times. Even I reset the printer with (press: Print Photos + Red Eye Removal), same thing happended. Does anyone has an idea?

  • General JSP Questions

    Hi, I work at a marketing company and here we still use Classic ASP, and now we're starting to learn and implement JSP on our projects. We managed to get things working just like we do in ASP, however with just that I don't see any advantage at all,

  • Dreaded Error 2096

    I just recieved the iPod Touch. Anxious to get it started, I went on to Apple in order to download the version 8 iTunes as well as the newest version of Quicktime Player. At first, I encountered the "compatibility" error for Quicktime; so I turned it

  • OWB Install

    I am trying to do a first time install of OWB on Linux platform (back end Oracle 9.2.0.3) for evaluation purpose and here are my questions. Can my Design & Runtime repository reside in the same database along with the target database - Basically I am