Welcome -
Guest!
Login
/
Register Now
|
Search:
Home
Articles
Forum
Interview FAQ
Activities
News
Videos
Poll
Links
People
Groups
Oracle Articles
Submit Article
Home
»
Articles
»
Oracle
»
Operators
RSS Feeds
USING UNION WITH ORDER BY
Posted By:
Brooke Hughes
Category:
Oracle
Views:
2594
This article explains about using USING UNION WITH ORDER BY with example.
Customer - orders - salespeople database
USING UNION WITH ORDER BY
SELECT snum AS CODE,sname AS NAME FROM Salespeople WHERE city='ahmd'
UNION
SELECT cnum,cname FROM Customers WHERE city='ahmd'
ORDER BY 2;
Share:
Previous Post:
UNION QUERY
Next Post:
INTERSECTION OPERATOR
Didn't find what you were looking for? Find more on
USING UNION WITH ORDER BY
Or get
search suggestion and latest updates
.
Brooke Hughes
author of USING UNION WITH ORDER BY is from London,
United Kingdom
.
View All Articles
Related Articles and Code:
Display item details in descending order of item price using order by clause in select query
UNION
UNION QUERY
Structures And Unions
Example of union
Program to illustrate the relationship b/w union and structure
Prolog program to merge two ordered list generating an ordered list
Program to sort a list in alphabatic order using pointers
Program that prints first 20 integers in reverse order (using while loop )
Write a shell script to sort the given numbers in descending order using Bubble sort
Program to sort a list in ascending order using binary search
Display customers detail in a ascending order of customer name using order by clause in a select query
Program to read numbers from two files using fscanf function and write it in another file using fprintf function in ascending order
Prolog program of predicate ordered (List) which is true if List is an ordered list of numbers
Program to print a Single Ended Linked List in Original & Reverse order and sort it in Ascending & Decending Order
Sorting Rows with ORDER BY
Program to print Lower Case Letters from a to z in reverse order
Program to sort numbers in ascending order and use integer pointer to store numbers
Program to draw a 3D Piece-Wise Bezier Curve of nth degree with Zeroth Order Continuity
Program to draw a C-Curve of nth order
Other Interesting Articles in Oracle:
Display 2 items having lowest current stock
CREATING A TABLE FROM A TABLE
Create an SQL statement that will generate a series of GRANT statements to five new users
ROLLBACK TRANSACTION
Write a query to calculate the year difference
Cursor to update salary details of an employee
Database of Doctor information related to total patient age wise in his hospital
Display number of months from joining date to birth date of programmer
COMMIT TRANSACTION
Example to create table, primary key and foreign key in student, course and SC tables
CREATE INDEX
Display top 3 highest item price from item table
FROM clause
SET TRANSACTION
Display customers having city other than gujarat and mp using not in
Example to add constraint in a table
GRANT command
Display student details born in year 1980 to 1982 using to_char() function
Example to create table based on existing table
Cursor to display employees having salary greater than 1900
Please enter your Comment
*
*
Comment should be atleast 30 Characters.
Please put code inside [Code] your code [/Code].
Please login to post comment
No Comment Found, Be the First to post comment!
Oracle
View All
Aggregate Functions
Analytical Functions
Common Statements
Constraints
Cursor
Data Control Language
Data Definition Lang
Data Manipulation Lang
Data Type
Database
Date Time Functions
Functions
Index
Interview FAQ
Joins
Math Functions
Operators
Select Query
Sequence
Stored Procedures
String Functions
Sub Query
System Functions
Transaction Control La...
Trigger
View
Assembly Language
Artificial Intelligence
C Programming
C++ Programming
Visual C++
OOAD
Cobol
Java
SQL Server
Asp.net MVC
Rest and WCF Services
Entity Framework
Knockout.Js
Unix / Linux / Ubuntu
Networking
OOPs Concept
HTML
Dos
SQL
System Analysis & Design
Gadgets
Internet
CSS
Javascript
.Net Framework
Asp.net
C#
VB.Net
Python
Perl
Software Engineering
RDBMS Terms
AJAX Framework
Design Pattern
UML
WPF
WCF
SEO
PowerShell
Visual Studio
WWF
BizTalk Server
Azure
General
Testing
Online Certifications
PHP
My SQL
LinQ
Project Management
Silverlight
XML
MS Office
Windows OS
DHTML
Sharepoint