thanks that works perfectly now!
M
User Profile
Collapse
-
Can you help me with that ASP code? That is the part I am struggling with really.
ThanksLeave 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... -
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...Leave a comment:
-
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... -
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
No activity results to display
Show More
Leave a comment: