Useful tips for everyday
What is the first normal form state? The first normal form states that: Every column in the table must be unique. Separate tables must be…
Can we use aggregate function with ORDER BY? An aggregate function cannot be used directly in: an ORDER BY clause. Attempting to do so generates…
How to recover Oracle database from RMAN backup? [Solution] How to Recover My Database from RMAN On a high-level, the following three steps are performed…
Which RMAN command will perform a differential incremental backup? If no level 1 is available, RMAN copies all blocks changed since the level 0 backup.…
Can a unique key be composite? A composite unique key is a unique key made up of a combination of columns. Oracle creates an index…
How does replication work in PostgreSQL master slave? Replication distributes the database to several different machines. This way, we have a backup, and queries can…
How do you SET a variable value in a case statement in SQL? So you need to use ELSE, i.e.: IF (@check = ‘abc’) SET…
What is pg_dump and Pg_restore? pg_restore is a utility for restoring a PostgreSQL database from an archive created by pg_dump in one of the non-plain-text…
Can JSON value NULL? JSON has a special value called null which can be set on any type of data including arrays, objects, number and…
Can we add column to the existing table with data? The ALTER TABLE statement is used to add, delete, or modify columns in an existing…