Daschle
Mar 14th, 2003, 12:16 PM
This is a really basic, stupid question, but I can't find any website which will bloody answer the question.. it's all advanced stuff, and is well beyond my ability to grasp.
I have a SQL database called "downloads". There's several tables, one of which is "filename" and one of which is "downloads". Obviously, it's a download counter.
I'm trying to write a query that'll search the database and return the "downloads" value based on a single filename.
The standard query it uses is..
SELECT * FROM downloads ORDER BY downloads DESC
But that generates everything.
How would I just simply return the value of "downloads" where "filename" is blah, in table "downloads"?
Thanks.
I have a SQL database called "downloads". There's several tables, one of which is "filename" and one of which is "downloads". Obviously, it's a download counter.
I'm trying to write a query that'll search the database and return the "downloads" value based on a single filename.
The standard query it uses is..
SELECT * FROM downloads ORDER BY downloads DESC
But that generates everything.
How would I just simply return the value of "downloads" where "filename" is blah, in table "downloads"?
Thanks.