I am not able to query the contents of the Notification_log table. The table is in a Postgres 9.2 instance that stores my hive metadata. ...
I am not able to query the contents of the Notification_log table. The table is in a Postgres 9.2 instance that stores my hive metadata. ...
I have a table called device_info that looks like below (only a sample provided) device_ip cpu memory ...
I have a table net_score that looks like below (only a sample provided) As you can see I have a date, ip and up_score column and the data is calcul ...
I have a Postgres table that looks like below Now I want a separate count of 0s and 1s per ip. I tried the queries below But I want to combine t ...
At recovery time or server reboot time, PostgreSQL finds the last checkpoint record from the pg_control file and starts recovery from this point. Whi ...
For example: If my current date is 2022-07-21, my query should give me 2022-06-30. I could easily do it in IBM DB2 but struggling in postgresql. ...
I am trying to connect to cloud sql(postgres) via simple python application code.. I am trying to run container locally using cloud shell.. getting be ...
I would like to insert into a table values which come from another table without having duplicates. I tried this way but i doesn't work for me.. coul ...
I'm just trying to exit the function with an error, however the stack is not cleared. I wrote a Foo class and create logs in the destructor. However, ...
I have a situation at work where I need to create a new Dataframe from a previous one The previous dataframe looks like: |id|name|balance|deleted|min ...
I am using psql 9.6.22. I am importing .sql dump file in psql command line. I am getting the error: invalid line number: e ERROR: invalid byte sequenc ...
I am trying to get the folders name which are in the subfolders. Example: Now I am trying to get the f4 name along with the parent folder name lik ...
i have a table that contains latitude and longitude locations i want to sort it as the closest to my location or the location i provide : ...
I am trying to join two tables together, one of them a subquery that returns a concatenated column, with PostgreSQL 9.2 but it is taking a long time. ...
I have col A in the table and I want to truncate all the letters after last digit in the values of col A and create col B. Col A ...
I have a table that stores information about items sold across all locations by a sweet shop. It sells pastries, waffles, ice creams, candies etc. I ...
I have a table approval like below.. Now i need bpname column's distinct value based on ad_wf_activity_id column's maximum number like below. ...
I have 2 tables name test and test_snapshop. in test table i am saving the current data and in test_snapshot i am saving older data. Now i need to do ...
What I have: How can I insert multi columns rows to table items with same _id from _items by ONE multi insert query? I am using Postgresql-9.2 ...
I am trying to convert below piece of code from oracle to postgres(Basically the goal is to insert some records in table based on some date without ov ...