Skip to content
Advertisement

Tag: sql

Deleting rows within a SQL select query

Sorry this is my first time writing a post and I have only started my coding journey, so I will probably not write this post very well. I’ve tried googling this issue but to no avail (at least not in a way I can understand it). I’ve written a SQL SELECT query and it works, but I want to delete

How to optimize the performance of the following SQL query?

For the following query , I tried creating index on table tmp.req_index_cont_t with columns indcont_key_1 and ind_no but still optimizer is performing full table scan , I am not getting how to resolve this issue , please guide : Answer There’s not enough information here to answer your question. Why do you think a full table scan is not the

How to use result of SELECT in a limit

I have a table here that keeps repeating results over environments. Cf : … etc etc. I tried to use a group by but as there are slight changes in the encoding, it’s not really effective. I tried to specify an environment too but from a machine to another, it changes. But I do have a Column named ” Ordinal_Position

Can you help me to correct this query in sql

ERROR at line 1: ORA-00979: not a GROUP BY expression Answer You are getting this error for WEIGHT_IN_PERCENTAGE. If WEIGHT_IN_PERCENTAGE is same for every row in a group you can use (SUM(POINTS) * max(WEIGHT_IN_PERCENTAGE)) or you can SUM(POINTS*WEIGHT_IN_PERCENTAGE) multiply it with POINTS before sum: OR

creating a full text index in SQL database

I am searching for a database solution for real full text indexing. I have read Postgres’ full text search chapter but it describes text searching which is not a “full” index and it is heuristic in nature. However I found this https://pgpedia.info/f/fulltextindex.hml contrib/fulltextindex module which sound promising. So my questions are as follows. why was it removed in PostgreSQL 8.1?

Advertisement