Skip to content

Tag: sql

tricky SQL with substrings

I have a table (postgres) with a varchar field that has content structured like: The uuid can occur in more than one record. But it must not occur for more than one combination of [givenname];[surname], according to a business rule. That is, if the John Smith example above is present in the table, then if uui…

Cannot execute SQL query

I have the following code to execute a SQL query in vb.net : opdragaliaens.CommandText = “UPDATE UBH ” & “SET ton = wh.total_net ” & …

Captalizing Each Word of an existing table

I have a table called ‘Artists’. There is a column called Artist in ‘Artists’. Artist firstname lastname Firstname lastname Firstname Lastname firstname I tried the query on this Post I want to …

Grouping By Date When Used In Case

I’ve got a working query where I can export to Excel and pivot myself to not be grouped by the fldTrancationDateTime column and that is working fine as a short term solution. Is the only option here to use SQL pivot so I can only group by the Product and have each date range populated? Instead of one ro…