
Add Multiple Columns to a Table in a Single Statement in Oracle SQL
How to Add Multiple Columns to an Oracle Table Using ALTER TABLE In Oracle, you can use the ALTER TABLE command to add new columns to an existing table—even after

How to Add Multiple Columns to an Oracle Table Using ALTER TABLE In Oracle, you can use the ALTER TABLE command to add new columns to an existing table—even after

Sometimes, you need to see a list of all the tables in the database. In Oracle, you can query the data dictionary to see this. There are several views in

Month-start boundaries show up everywhere in reporting queries, billing cycles, cohort aggregations, and partition pruning. Hard-coding a date string works for one run but quickly rots. Deriving the first day

Get all the tables with a count of their records with the following query: CREATE TABLE #Temp ( TableName VARCHAR(MAX), Rows INT ); EXEC sp_MSForEachTable @command1 = ‘INSERT INTO #Temp(TableName,

If you want to do statistics in SQL, the following tests will be very useful to look into: Pearson’s Correlation Kendall’s Tau Rank Correlation Simple Linear Regressions The Kruskal-Wallis Test

Working with and comparing multiple queries at the same time can be a pain, at least for me. Two independent query windows take up more space on screen, or having

Sometimes you want to select all the columns, without using the *. Specifying column names speeds up your query. The problem comes in with large tables or tables with difficult

I hate repetitive tasks. I am not a robot. However, the problem is that there are some tasks that can be quite repetitive or just take too many steps to

This is a neat trick I have learnt recently. When dealing with large lists of information, we, as developers, sometimes need to copy them, then add commas manually. Say, for