Skip to content

Tag: sql

Sql syntax error while doing left outer Join in SQL

I’m using oracle database and trying to delete duplicate records from that. For the same I’ve written a below query but getting this error Its giving red indicator under outer keyword in Left outer join in query. Query: Answer Oracle does not permit JOINs in DELETE queries. This is clear if you lo…

How to update database after receiving PayPal IPN

I am trying a simple listener to update my user info database (like setting their account type from FREE to PREMIUM) after receiving the PayPal IPN. Upon checking the IPN history, the IPN is successfully sent to my listener but can’t seem to update my database. I wanted to update the user’s accoun…

Run UPDATE query while the INSERTs are running

I have a DB table which size is around 100,000 rows. I Need to run an UPDATE query on that table (affecting every row) which runs for approximately 25 minutes. During this 25 minutes, there will be approximately 300 INSERTs to the same table. I’m wondering whether those INSERTs will run? Will they be bl…

Retrieve text between two periods in a value

I’ve been spinning around a bit on how to accomplish this in SQL DW. I need to extract the text between two periods in a returned value. So my value returned for Result is: I’m trying to extract the values between period 1 and 2, so the red portion above: The values will be a wide variety of lengths. I’ve…