+ Reply to Thread
Results 1 to 1 of 1

Thread: SQL Joins and Limits

  1. #1
    Shadow121's Avatar
    Shadow121 is offline x10 Lieutenant Shadow121 is an unknown quantity at this point
    Join Date
    Jul 2006
    Location
    Centerville
    Posts
    455

    SQL Joins and Limits

    I Have a query pulling and combining two tables together into one set of data. However, it is pulling all 12 from the one table. I was wondering how I could modify my present query, to get only where the userparts.owner is a person, and limit it to pull only the first 4 it comes from.

    Code:
    "SELECT * FROM medaparts LEFT JOIN userparts ON medaparts.id = userparts.medapart_id;
    I've tried patching in LIMIT 4 and a check to make sure the userparts.owner is the person it needs to, but it doesn't work.

    Edit: Guess I should've played around some more with it. I got it working.
    Last edited by Shadow121; 06-20-2010 at 08:13 PM.

+ Reply to Thread

Similar Threads

  1. Sub / Addondomain Limits
    By clonetrooper9494 in forum Free Hosting
    Replies: 1
    Last Post: 03-16-2010, 08:26 PM
  2. New Question on Limits.
    By adsensefun in forum Free Hosting
    Replies: 1
    Last Post: 11-15-2007, 06:02 PM
  3. I have reached 80% of my limits of bandwidth of band
    By emulesur in forum Free Hosting
    Replies: 2
    Last Post: 10-28-2005, 11:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers