Is this possible using the music selections...?

Everything, that fits not well into other forums - Questions, Talk, Beta-Versions ...
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Guest
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Is this possible using the music selections...?

Postby Guest » 12. Sep 09, 20:30

I have a few (cough cough) karaoke song in my DB. I decided to try to clean things up a little. Now everything is done except one problem. There are many artist that have a "The" at the begining of the artist name, unfortunatly those same artists also have song in which the "The" is missing.

I was wondering if there is a way to isolate all the ones missing the "The", using the ones with the "The" as comparision? Or anything that would permit me to isolate the ones missing it so I could add it..... I've tried my hand at using the selections for it, but no luck.

Doing it all manually is an option but not one I really want to do......

If anyone can think of a solution using any other app(s), I am eagerly listening.

User avatar
Service-Team
Posts: 2448
Joined: 7. Dec 04, 04:48
Location: Germany
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Is this possible using the music selections...?

Postby Service-Team » 14. Sep 09, 14:56

This works with a using SQL Expression as the field and leadartistname IN (SELECT SUBSTR(leadartistname, 5, 999) FROM tracks WHERE leadartistname LIKE 'the %') as the value:

missing-the.png
missing-the.png (292.2 KiB) Viewed 1876 times


... seems as if we also have some things to clean up ;-)

Best regards,
Your Siverjuke-Team

Guest
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Is this possible using the music selections...?

Postby Guest » 15. Sep 09, 18:57

Hmm, NICE.
The SLQ Expression stuff seems to be in a foreign language. I'm gonna hafta try to be more fluent!!
Thanks SJ-Team

User avatar
Service-Team
Posts: 2448
Joined: 7. Dec 04, 04:48
Location: Germany
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Is this possible using the music selections...?

Postby Service-Team » 15. Sep 09, 19:31

Well, SQL is SQL ;-)
If you are interested in learning this language, see eg. http://www.w3schools.com/SQl/default.asp

However, for Silverjuke, mostly the WHERE-conditions are useful, and, however, for most stuff you won't need SQL at all.

Best regards,
Your Silverjuke-Team

Guest
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Is this possible using the music selections...?

Postby Guest » 16. Sep 09, 19:09

Thanks, will have a look.


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “Main Forum”