Things that make me happy
To generate random value in PL/SQL
To update a column with a random value in PL/SQL, you can use the DBMS_RANDOM package, which provides functions for generating random numbers or strings.
To update random number
BEGIN
UPDATE employees
SET salary = ROUND(DBMS_RANDOM.VALUE(100, 500));
COMMIT;
END;
DBMS_RANDOM.VALUE(100, 500)generates a random decimal number between 100 and 500.- ROUND is used to convert the decimal value to an integer.
To update random string
BEGIN
UPDATE employees
SET password = DBMS_RANDOM.STRING('x', 8); -- 'x' specifies alphanumeric characters
COMMIT;
END;
DBMS_RANDOM.STRING('x', 8)generates an 8-character alphanumeric string.- ‘x’ specifies alphanumeric characters (letters and numbers). Other options include ‘a’ for alphabets and ‘u’ for uppercase only.
My plants
വഴിയമ്പലങ്ങൾ
ഹൃദയത്തിൽ വഴിയമ്പലങ്ങൾ കണക്കെ
ഇടങ്ങൾ ഉണ്ടായിരിക്കണം.
കോരിച്ചൊരിയുന്ന മഴയത്ത് ഓടിക്കയറാനും
ഒരു പുലരിയിൽ വിട പറയാതെ
യാത്ര തുടങ്ങാനും സാധിക്കുന്ന
മനോഹരയിടങ്ങൾ.
Migrating my posts from social media
I want to migrate my favorite memories from various social media platforms to this blog. I’m not sure it will work, but I still want to give it a try because I love the idea of having all my favorite things in one place.
Hopefully, I can do it gradually over time.
Update on 27 Oct: I already started migrating my posts from various social medias. Its a tedious task, but I am loving it.
My plants and my poems
My plants and my poems.

PL/SQL MINUS Operator
The PL/SQL MINUS operator returns all rows from the first query that are not present in the second query. Each SELECT statement defines a dataset, and the MINUS operator retrieves all records from the first dataset, excluding any that also appear in the second dataset.
select stock_id, stock_name
from stock_master
where active = 'Y'
minus
select stock_poid, stock_desc
from stock_ledger
where transaction_date > '01-JAN-24'
References
Basic rules for life
My winter rides
I like to ride by bicycle in the winter mornings. The long ride in the morning gives me a sense of happiness.
PS: This is my brother’s bicycle which I borrowed for few weeks.
