Skip to content

Tag: sql

Wildcard for string before @ character

How would I use a wildcard to filter out any permutation of the following. There can be any number of zeros before the “@” character. Example Basically, I’m looking to wildcard any email address with only zeros before the @ character. Any help would be greatly appreciated Thank you ! Smiddy …

Tricks to exceed column limitations in SQL Database

Hello swarm intelligence! I have the following use case: For every movie that is requested by a user, I create a number of tags for that specific movie, derived from several sources (actors, plot etc.. ). I will use this data for associaton mining. The problem: If I use the movie for rows and the tags for col…

Issues creating a function

Thank you for reading my post and trying to assist. I am pretty new with PostgreSQL and am struggling with trying to create a Function to transform a table column that is currently integer (1,0) into ‘Yes’ or ‘No” and redisplaying the table after the change, what’s your recommend…

What part of my query is invalid with MySQL 5.7?

I have created the following query: It works during development but after testing it on the production server (which is uses MySQL 5.7) I get the following error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘cte1 A…

Parameter returning not in the correct format

I have an async task method that queries a database table for the total amount of Credits in a specific column. I have a string parameter in the method that I use for the query to identify which user is logged in, which is stored in Properties.Settings.Default.Student_Number;. The column for the student numbe…