Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Help with SQL query

  • 01-08-2012 4:14pm
    #1
    Registered Users, Registered Users 2 Posts: 2,055 ✭✭✭


    Hi all
    An SQL query driving me mad...

    three tables (I'll shorten the fields)
    Tables: Venue, Symbol, Venue.Symbol

    Venue - VenueId, name, address1, address2, telephone etc
    Symbol i- SymbolID, Image
    Venue.Symbol - VenueId, SymbolID

    each venueID in venue.symbol may have several records (ie symbols)
    I want all venue details once but symbols listed afterwards (dont want all venue details repeated for every symbol associated) as I'm going to format these in a report
    eg

    22
    Zipppys Bank
    Main Street
    Dublin 2
    01 8976737

    Image ofSymbol2
    Image of Symbol3
    Image of Symbol4

    next record................................etc


Comments

  • Registered Users, Registered Users 2 Posts: 200 ✭✭druidhill


    What SQL statement have you got so far?


  • Moderators, Society & Culture Moderators Posts: 9,689 Mod ✭✭✭✭stevenmu


    If you don't have a set number of symbols per venue, and you don't want to repeat the venue details for each symbol, then you'll need to do two queries, one to get the venue, then another to get the symbols for that venue.


  • Registered Users, Registered Users 2 Posts: 2,055 ✭✭✭Zipppy


    ok have this sorted (i think ) thanks for replies :)
    Zip


  • Registered Users, Registered Users 2 Posts: 2,040 ✭✭✭Colonel Panic


    Hi, you should post your solution if you sorted it yourself. Some poor soul might have the same problem as you and wonder what you did!


Advertisement