Skip to content

Tag: sql

Full Join using a fuzzy join but with distinct matching

We have a table of expected payments and a table of payments made. We need to be able to match payments with a singular expected payment but we allow a +-3 day window for it to be made. On top of that, it should be a one-to-one match. So imagine I have a table of expected payments and payments The

How can I change the layout/structure of my table?

I currently have a table with 3 columns in it. The columns are best described as group_id, task and task_count. There are up to 15 possible tasks and over 500,000 group_ids. The task_count is the number of events that took place in a group_id for that task. Currently, the table looks like this: So in group 55…

Oracle : Not a valid function or procedure name

I have to create a procedure that inserts a person to table: When I call the function: I get the error: Answer You can use: Which, if you have the table: Then you can do: And the table contains: ID_OSOBY | IMIE | NAZWISKO | WIEK | STAN_CYWILNY | TELEFON | PESEL | ID_ADRESU ——-: | :— | :&#821…

Oracle calculate YTD ,PYTD, QTD , PQTD , MTD, PMTD

My query is Im new to oracle and in my query i have hard coded the values of year ,month and quarter. But i want my query to work without giving any value so that it automatically picks value let me know how can it be done. Answer You can use: (Although I’m not convinced you want the initial ENTRIES,

Names of nodes at depth d for every descendant leaf

I have a category hierarchy that products are attached to. That category hierarchy is saved as an adjacency list. Products can be attached to any category nodes at any level. The category hierarchy is a tree. I would like to… get the name of every level 3 category… per product… where that pr…