EN VI
Posts (0)
Questions (6)
2024-03-12 06:00:05
You have a cursor, so my_table_name is a row/record from that cursor. You need to refer to the column/field in that: ... WHERE segment_name=my_table_name.table_name; But you also need to select into...
Tags: oracle plsql
2024-03-13 16:30:06
You can split the string into individual characters and then use MATCH_RECOGNIZE (from Oracle 12 onwards) to perform row-by-row pattern matching to look for consecutive ASCII values: SELECT value FROM...
Tags: sql oracle
2024-03-13 21:30:04
Use conditional aggregation: SELECT COUNT(CASE WHEN LOWER(nazwisko) LIKE '%a%' THEN 1 END) as "Ile nazwisk z A", COUNT(CASE WHEN LOWER(nazwisko) LIKE '%e%' THEN 1 END) as "Ile nazwisk z E" FROM...
Tags: sql oracle
2024-03-14 00:00:09
You need a conditional aggregation query for this - WITH data AS (SELECT '001' EMPLOYEE, 'Basic' ELEMENT, 100 VALUE, 'Sales' DEPT FROM dual UNION ALL SELECT '001', 'Rent', 300, 'Sales' F...
Tags: sql oracle pivot
2024-03-14 21:00:05
Find first row using the FIRST_VALUE analytic function and then use the SUM analytic function to find a cumulative total and subtract: SELECT id, dt, amount, -- Find the first...
Tags: sql oracle recursion
2024-03-16 06:00:06
In Oracle, a DATE is a binary data-type that consists of 7 bytes representing century, year-of-century, month, day, hour, minute and second. It ALWAYS contains those 7 components and it is NEVER store...
Tags: sql oracle date

Login


Forgot Your Password?

Create Account


Lost your password? Please enter your email address. You will receive a link to create a new password.

Reset Password

Back to login