When we are working on ORACLE SQL DEVELOPER, we come across many situations where we need to copy only column names of a table or column names along with all data from query result set to excel or notepad. This can be done by the following ways:
It is one place for SQL,ORACLE, datawarehouse and testing concepts
Showing posts with label ORACLE. Show all posts
Showing posts with label ORACLE. Show all posts
4 September 2016
14 August 2016
SQL - ADVANCED JOINS
In my earlier SQL- JOINS post , I had discussed about INNER JOIN , LEFT OUTER JOIN, RIGHT OUTER JOIN, SELF JOIN and CROSS JOIN. In this post, I am going to discuss about ADVANCED JOINS. Please visit my earlier post on JOINS in below URL if you have not visited.
We have seen that LEFT OUTER JOIN includes matching rows between left table and right table and non matching rows from left table. This is illustrated with table and venn diagram as below:
Select Name,Productname,Quantity,
|
P.Productid,Mrp
|
From Customerinfo C
|
LEFT Outer Join Productinfo P
|
On C.Productid=P.Productid;
|
11 August 2016
ORACLE- Guide to install Oracle 11g in your local machine
6 August 2016
ORACLE- ANALYTIC FUNCTIONS LEAD and LAG
LEAD : It is a analytic function which fetches value of a column from next row. If the value in next row goes out of table or partition, default NULL value is populated. The best part of this function is that it gives access to more than one row in a table without using SELF JOIN.
SYNTAX:
7 September 2014
ORACLE : ROWNUM and ROWID
ROWID is the physical location or address of row.It is permanent. It is the fastest means of accessing data.
ROWNUM is the sequential number which is assigned to each row during query execution. It basically represents the sequential order in which the rows are fetched. It is temporary.
Lets see below the illustration of ROWNUM and ROWID .
| ROWNUM and ROWID |
Subscribe to:
Posts (Atom)