User Profile

Collapse

Profile Sidebar

Collapse
mikevde
mikevde
Last Activity: Jul 18 '07, 10:46 AM
Joined: Feb 16 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • thanks that works perfectly now!

    M
    See more | Go to post

    Leave a comment:


  • Can you help me with that ASP code? That is the part I am struggling with really.
    Thanks
    See more | Go to post

    Leave a comment:


  • ASP & SQL problem to split values into separate columns

    Hi,

    I have a query where I select all the values from my MS SQL table that are LIKE a certain string. The query works, but in the ASP page, I only want to write the date once, while writing the values from the other column in all cases.

    To illustrate, i have a table that looks like this:

    ID Date Name
    1 2007/01/01 city_house
    2 2007/01/02 city_farm
    3 2007/01/02...
    See more | Go to post

  • mikevde
    replied to Selecting top 10 results using DISTINCT
    Hi
    Can anyone help me with this? So far no comments. Thanks[


    QUOTE=mikevde]Hi,

    Can anyone confirm whether it is possible to:

    a) use subqueries in mySQL
    b) use DISTINCT TOP in mySQL?

    I am trying to find a way to return the top 5 results in my table. For simplicity sake:

    user I hits I date

    for one user, there may be several records but with...
    See more | Go to post

    Leave a comment:


  • mikevde
    started a topic Selecting top 10 results using DISTINCT

    Selecting top 10 results using DISTINCT

    Hi,

    Can anyone confirm whether it is possible to:

    a) use subqueries in mySQL
    b) use DISTINCT TOP in mySQL?

    I am trying to find a way to return the top 5 results in my table. For simplicity sake:

    user I hits I date

    for one user, there may be several records but with different 'hits' values. e.g

    userA I 15 I ddmmyy
    userB I 22 I ddmmyy
    userC...
    See more | Go to post

  • mikevde
    started a topic mySQL date range query

    mySQL date range query

    Hi,
    I want to select data from a range of dates i.e over a 1 month period

    I've tried this:

    SELECT * FROM table WHERE DATE_SUB(Date() , INTERVAL 30 DAY)

    but the query isnt working as it is retrieving all the data from the database, rather than just that 30 day period (and as a result it crashes)

    any suggestions as to why the sql isnt working?

    Thanks
    See more | Go to post
No activity results to display
Show More
Working...