Thanks feherke for your quick and useful response!
I have managed to use the code you provided to find the more 'professional' solution that I was looking for.
Here's my final bit of code for anyone else who may find it useful:
addLoadListener(function() {
var n = 10; // number of...
I have created the following code that selects 10 random images from a selection of 59 without any duplicates.
The code works great but as a bit of a newbie to javascript, I’m sure the section where I am checking for duplicates could be made more efficient.
I was wondering if anyone could point...
Thank you so much r937 for this.
I had to change INNER JOIN to LEFT JOIN and it worked perfectly!
(I must admit it took me some time to work this out but I got there in the end)
And yes, I will post all future mySQL posts in forum436, thanks for that. I'm still new to this site but have been...
Thanks to Golom and r937 for responding.
Unfortunately the suggestions throw up the following errors:
DELETE * FROM shoppingbasket
WHERE DateAdded < SUBDATE(NOW(), INTERVAL 30 MINUTE)
AND NOT EXISTS (
SELECT * FROM shoppingbasket newer
WHERE DateAdded >= SUBDATE(NOW(), INTERVAL 30 MINUTE)
AND...
Hi,
I have created the following SELECT statement that works perfectly and retrieves the data I want to work with:
SELECT * FROM shoppingbasket
WHERE DateAdded < SUBDATE(NOW(), INTERVAL 30 MINUTE)
AND NOT EXISTS (
SELECT * FROM shoppingbasket newer
WHERE DateAdded >= SUBDATE(NOW(), INTERVAL 30...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.