Posts Tagged ‘SQL’

Row Data Multiplication in Oracle

Row Data Multiplication in Oracle
Aggregate functions return a single result row based on a group of rows. This differentiates them from Single-Row functions which act on each row. These functions are extensively used with the GROUP BY clause in SQL statements. AVG (), COUNT (), SUM () ... are few aggregate functions which are quite commonly used. Today, one ...

Fast data copy with “Create Table Select From” in PL/SQL

Fast data copy with
Although I work mainly in Java/J2EE, recently I had a requirement in Oracle to take temporary backup of a table and compare the data of original table with this backup table. So I had to copy the data from table A to a temp table TA.First I tried creating temp table normally and copied the ...

Fetch Random rows from Database (MySQL, Oracle, MS SQL, PostgreSQL)

Fetch Random rows from Database (MySQL, Oracle, MS SQL, PostgreSQL)
Ever thought why would one need to fetch random rows from a database table? You may want to display some random information (like articles/pages/links) to your user. I had a requirement wherein I had to fetch 10 random rows from MySQL database and display it on screen. I used following simple query for retrieving random records ...
Copyright © 2012 ViralPatel.net. All rights reserved.